/* =========================================================
   UBnux
   Global Styles
========================================================= */

:root {

  --primary: #2563eb;
  --primary-dark: #1d4ed8;

  --text: #111827;
  --muted: #6b7280;

  --border: #e5e7eb;

  --background: #f8fafc;
  --white: #ffffff;

  --success: #16a34a;

  --radius: 16px;

  --shadow:
    0 10px 30px rgba(15, 23, 42, 0.08);

}


* {

  box-sizing: border-box;

  margin: 0;

  padding: 0;

}


html {

  scroll-behavior: smooth;

}


body {

  font-family:
    Inter,
    Arial,
    Helvetica,
    sans-serif;

  background: var(--background);

  color: var(--text);

  line-height: 1.5;

}


button,
select {

  font: inherit;

}


button {

  cursor: pointer;

}


a {

  color: inherit;

  text-decoration: none;

}


.container {

  width: min(
    1180px,
    calc(100% - 32px)
  );

  margin: auto;

}


/* =========================================================
   LOADER
========================================================= */

.page-loader {

  position: fixed;

  inset: 0;

  z-index: 9999;

  background:
    rgba(255, 255, 255, 0.96);

  display: flex;

  align-items: center;

  justify-content: center;

  opacity: 1;

  visibility: visible;

  transition:
    opacity .25s ease,
    visibility .25s ease;

}


.page-loader.hidden {

  opacity: 0;

  visibility: hidden;

}


.loader-box {

  text-align: center;

}


.spinner {

  width: 42px;

  height: 42px;

  margin: auto;

  border: 4px solid #dbeafe;

  border-top-color: var(--primary);

  border-radius: 50%;

  animation:
    spin .8s linear infinite;

}


.loader-text {

  margin-top: 14px;

  color: var(--muted);

  font-size: 14px;

}


@keyframes spin {

  to {

    transform: rotate(360deg);

  }

}


/* =========================================================
   HEADER
========================================================= */

.site-header {

  position: sticky;

  top: 0;

  z-index: 100;

  background:
    rgba(255, 255, 255, .95);

  backdrop-filter:
    blur(10px);

  border-bottom:
    1px solid var(--border);

}


.header-inner {

  min-height: 70px;

  display: flex;

  align-items: center;

  justify-content: space-between;

}


.brand {

  font-size: 25px;

  font-weight: 800;

  letter-spacing: -.7px;

}


.brand-main {

  color: var(--primary);

}


.brand-dot {

  color: var(--text);

}


.main-nav {

  display: flex;

  gap: 28px;

}


.main-nav a {

  color: #374151;

  font-size: 14px;

  font-weight: 600;

}


.main-nav a:hover {

  color: var(--primary);

}


.mobile-menu-button {

  display: none;

  border: 0;

  background: transparent;

  font-size: 25px;

}


/* =========================================================
   HERO
========================================================= */

.hero {

  padding:
    80px 0 70px;

  background:
    linear-gradient(
      180deg,
      #eff6ff 0%,
      #f8fafc 100%
    );

}


.hero-content {

  max-width: 900px;

  margin: auto;

  text-align: center;

}


.hero-badge {

  display: inline-block;

  padding:
    7px 13px;

  border-radius: 999px;

  background: #dbeafe;

  color: #1d4ed8;

  font-size: 12px;

  font-weight: 700;

  text-transform: uppercase;

  letter-spacing: .5px;

}


.hero h1 {

  margin-top: 18px;

  font-size:
    clamp(38px, 6vw, 66px);

  line-height: 1.05;

  letter-spacing: -2px;

}


.hero h1 span {

  color: var(--primary);

}


.hero p {

  max-width: 650px;

  margin:
    20px auto 0;

  color: var(--muted);

  font-size: 17px;

}


/* =========================================================
   SELECTOR
========================================================= */

.selector-card {

  margin-top: 38px;

  padding: 25px;

  text-align: left;

  background: var(--white);

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

  border-radius: 20px;

  box-shadow: var(--shadow);

}


.selector-title {

  display: flex;

  justify-content: space-between;

  align-items: center;

  gap: 20px;

  margin-bottom: 20px;

}


.selector-title strong {

  font-size: 19px;

}


.selector-title span {

  color: var(--muted);

  font-size: 13px;

}


.selector-grid {

  display: grid;

  grid-template-columns:
    repeat(3, 1fr);

  gap: 15px;

}


.field-group {

  display: flex;

  flex-direction: column;

  gap: 7px;

}


.field-group label,
.sort-wrapper label {

  font-size: 12px;

  font-weight: 700;

  color: #374151;

}


select {

  width: 100%;

  min-height: 48px;

  padding:
    0 14px;

  border:
    1px solid #d1d5db;

  border-radius: 11px;

  background: #fff;

  color: var(--text);

  outline: none;

}


select:focus {

  border-color: var(--primary);

  box-shadow:
    0 0 0 3px
    rgba(37, 99, 235, .12);

}


select:disabled {

  background: #f3f4f6;

  cursor: not-allowed;

}


.selection-message {

  margin-top: 14px;

  color: var(--muted);

  font-size: 13px;

}


/* =========================================================
   BUSINESS SECTION
========================================================= */

.business-section {

  padding:
    70px 0;

}


.section-header {

  display: flex;

  justify-content: space-between;

  align-items: end;

  gap: 30px;

  margin-bottom: 30px;

}


.section-kicker {

  color: var(--primary);

  font-size: 11px;

  font-weight: 800;

  letter-spacing: 1.2px;

}


.section-header h2 {

  margin-top: 5px;

  font-size: 32px;

  letter-spacing: -.8px;

}


.business-summary {

  margin-top: 5px;

  color: var(--muted);

  font-size: 14px;

}


.sort-wrapper {

  width: 160px;

}


.sort-wrapper select {

  margin-top: 6px;

}


/* =========================================================
   BUSINESS GRID
========================================================= */

.business-grid {

  display: grid;

  grid-template-columns:
    repeat(3, 1fr);

  gap: 22px;

}


.business-card {

  overflow: hidden;

  background: var(--white);

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

  border-radius: var(--radius);

  box-shadow:
    0 5px 20px
    rgba(15, 23, 42, .05);

  transition:
    transform .2s ease,
    box-shadow .2s ease;

}


.business-card:hover {

  transform:
    translateY(-3px);

  box-shadow:
    0 14px 35px
    rgba(15, 23, 42, .1);

}


.business-cover {

  height: 145px;

  background:
    linear-gradient(
      135deg,
      #dbeafe,
      #eff6ff
    );

  overflow: hidden;

}


.business-cover img {

  width: 100%;

  height: 100%;

  object-fit: cover;

}


.business-body {

  padding: 18px;

}


.business-top {

  display: flex;

  align-items: start;

  gap: 12px;

}


.business-logo {

  width: 54px;

  height: 54px;

  flex-shrink: 0;

  margin-top: -42px;

  border:
    3px solid white;

  border-radius: 13px;

  overflow: hidden;

  background: white;

  box-shadow:
    0 4px 12px
    rgba(0, 0, 0, .1);

}


.business-logo img {

  width: 100%;

  height: 100%;

  object-fit: cover;

}


.business-name {

  font-size: 17px;

  font-weight: 750;

  line-height: 1.25;

}


.business-area {

  margin-top: 4px;

  color: var(--muted);

  font-size: 12px;

}


.business-description {

  margin-top: 12px;

  color: #4b5563;

  font-size: 13px;

  display:
    -webkit-box;

  -webkit-line-clamp: 2;

  -webkit-box-orient: vertical;

  overflow: hidden;

}


.business-meta {

  display: flex;

  align-items: center;

  gap: 10px;

  margin-top: 14px;

}


.rating {

  color: #b45309;

  font-size: 13px;

  font-weight: 700;

}


.verified {

  color: var(--success);

  font-size: 12px;

  font-weight: 700;

}


.featured-badge {

  display: inline-block;

  margin-bottom: 8px;

  padding:
    4px 8px;

  border-radius: 999px;

  background: #fef3c7;

  color: #92400e;

  font-size: 10px;

  font-weight: 800;

}


/* =========================================================
   SKELETON
========================================================= */

.skeleton-card {

  height: 340px;

  border-radius: var(--radius);

  background:
    linear-gradient(
      90deg,
      #f1f5f9,
      #e5e7eb,
      #f1f5f9
    );

  background-size: 200% 100%;

  animation:
    skeleton 1.2s infinite;

}


@keyframes skeleton {

  0% {

    background-position: 200% 0;

  }

  100% {

    background-position: -200% 0;

  }

}


/* =========================================================
   EMPTY
========================================================= */

.empty-state {

  padding: 70px 20px;

  text-align: center;

}


.empty-icon {

  font-size: 40px;

}


.empty-state h3 {

  margin-top: 12px;

  font-size: 21px;

}


.empty-state p {

  margin-top: 6px;

  color: var(--muted);

}


.hidden {

  display: none !important;

}


/* =========================================================
   LOAD MORE
========================================================= */

.load-more-wrapper {

  margin-top: 30px;

  text-align: center;

}


.load-more-button {

  min-width: 150px;

  padding:
    12px 20px;

  border: 0;

  border-radius: 10px;

  background: var(--primary);

  color: white;

  font-weight: 700;

}


.load-more-button:hover {

  background: var(--primary-dark);

}


.load-more-button:disabled {

  opacity: .6;

  cursor: not-allowed;

}


/* =========================================================
   ABOUT
========================================================= */

.about-section {

  padding:
    20px 0 80px;

}


.about-card {

  padding: 40px;

  background: white;

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

  border-radius: 20px;

}


.about-card h2 {

  margin-top: 7px;

  font-size: 30px;

}


.about-card p {

  max-width: 750px;

  margin-top: 12px;

  color: var(--muted);

}


/* =========================================================
   FOOTER
========================================================= */

.site-footer {

  padding:
    25px 0;

  background: #111827;

  color: white;

}


.footer-inner {

  display: flex;

  justify-content: space-between;

  gap: 20px;

  font-size: 13px;

}


.footer-inner span {

  color: #9ca3af;

}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 900px) {

  .business-grid {

    grid-template-columns:
      repeat(2, 1fr);

  }

  .selector-grid {

    grid-template-columns: 1fr;

  }

}


@media (max-width: 650px) {

  .container {

    width:
      min(
        100% - 22px,
        1180px
      );

  }


  .main-nav {

    display: none;

    position: absolute;

    top: 70px;

    left: 0;

    right: 0;

    padding: 18px;

    background: white;

    border-bottom:
      1px solid var(--border);

    flex-direction: column;

  }


  .main-nav.open {

    display: flex;

  }


  .mobile-menu-button {

    display: block;

  }


  .hero {

    padding:
      55px 0;

  }


  .hero h1 {

    letter-spacing: -1.2px;

  }


  .selector-card {

    padding: 18px;

  }


  .selector-title {

    flex-direction: column;

    align-items: start;

  }


  .section-header {

    align-items: start;

    flex-direction: column;

  }


  .sort-wrapper {

    width: 100%;

  }


  .business-grid {

    grid-template-columns: 1fr;

  }


  .about-card {

    padding: 25px;

  }


  .footer-inner {

    flex-direction: column;

  }

}