/* NetLocalBiz - Tech/Connected Feel, Cyan/Teal with Purple Accents, Dot Grid Pattern */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --color-primary: #0e7490;
  --color-accent: #7c3aed;
  --color-cyan-50: #ecfeff;
  --color-cyan-100: #cffafe;
  --color-cyan-200: #a5f3fc;
  --color-cyan-400: #22d3ee;
  --color-cyan-600: #0891b2;
  --color-cyan-700: #0e7490;
  --color-cyan-800: #155e75;
  --color-purple-50: #faf5ff;
  --color-purple-100: #f3e8ff;
  --color-purple-500: #8b5cf6;
  --color-purple-600: #7c3aed;
  --color-text: #0f172a;
  --color-text-muted: #64748b;
  --color-bg: #f8fafc;
  --color-bg-white: #ffffff;
  --color-border: #e2e8f0;
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 16px rgba(14, 116, 144, 0.1);
  --shadow-lg: 0 8px 32px rgba(14, 116, 144, 0.12);
  --container: 1200px;
}

html {
  font-family: var(--font-sans);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.625rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn--primary {
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  color: #fff;
  border-color: transparent;
}

.btn--primary:hover {
  filter: brightness(1.1);
  box-shadow: 0 4px 16px rgba(124, 58, 237, 0.3);
}

.btn--outline {
  border-color: var(--color-primary);
  color: var(--color-primary);
  background: transparent;
}

.btn--outline:hover {
  background: var(--color-primary);
  color: #fff;
}

.btn--lg {
  padding: 0.875rem 2rem;
  font-size: 1.0625rem;
}

.btn--block {
  width: 100%;
}

/* Header */
.site-header {
  background: var(--color-bg-white);
  border-bottom: 1px solid var(--color-border);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(12px);
  background: rgba(255, 255, 255, 0.9);
}

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

.site-logo {
  font-size: 1.5rem;
  font-weight: 700;
  text-decoration: none;
  color: var(--color-primary);
}

.site-logo::before {
  content: '';
  display: inline-block;
  width: 10px;
  height: 10px;
  background: var(--color-accent);
  border-radius: 50%;
  margin-right: 0.5rem;
  vertical-align: middle;
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.2);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.site-nav a {
  text-decoration: none;
  color: var(--color-text-muted);
  font-weight: 500;
  font-size: 0.9375rem;
  transition: color 0.2s;
}

.site-nav a:hover {
  color: var(--color-primary);
}

/* Hero with Dot Grid */
.hero {
  background: linear-gradient(135deg, #0e7490 0%, #155e75 50%, #1e1b4b 100%);
  color: #fff;
  padding: 5rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.12) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.3) 0%, transparent 70%);
  pointer-events: none;
}

.hero h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}

.hero__subtitle {
  font-size: 1.25rem;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto 2rem;
  position: relative;
  z-index: 1;
}

.hero__search {
  display: flex;
  max-width: 600px;
  margin: 0 auto;
  background: var(--color-bg-white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255, 255, 255, 0.1);
  position: relative;
  z-index: 1;
}

.hero__search input {
  flex: 1;
  padding: 1rem 1.25rem;
  border: none;
  font-size: 1rem;
  outline: none;
  background: transparent;
  color: var(--color-text);
}

.hero__search .btn {
  border-radius: 0;
  padding: 1rem 2rem;
}

/* Section Titles */
.section-title {
  font-size: 1.75rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 2rem;
  color: var(--color-text);
}

.section-cta {
  text-align: center;
  margin-top: 2rem;
}

/* Categories */
.categories {
  padding: 4rem 0;
  background: var(--color-bg-white);
}

.categories__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}

.category-card {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 1.25rem;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--color-text);
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}

.category-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: linear-gradient(180deg, var(--color-primary), var(--color-accent));
  opacity: 0;
  transition: opacity 0.2s;
}

.category-card:hover {
  border-color: var(--color-cyan-400);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.category-card:hover::before {
  opacity: 1;
}

.category-card__name {
  font-weight: 600;
  font-size: 1rem;
}

.category-card__count {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
}

/* Featured */
.featured {
  padding: 4rem 0;
  background: var(--color-bg);
}

.featured__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.listing-card {
  background: var(--color-bg-white);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  color: var(--color-text);
  border: 1px solid var(--color-border);
  transition: all 0.25s ease;
}

.listing-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
  border-color: var(--color-cyan-200);
}

.listing-card__img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.listing-card__body {
  padding: 1.25rem;
}

.listing-card__title {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.listing-card__category {
  font-size: 0.8125rem;
  color: var(--color-accent);
  font-weight: 500;
}

.listing-card__location {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  margin-top: 0.25rem;
}

.listing-card__rating {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.listing-card__rating .stars {
  color: var(--color-cyan-400);
}

/* Stats */
.stats {
  padding: 4rem 0;
  background: linear-gradient(135deg, var(--color-cyan-800), #1e1b4b);
  color: #fff;
  position: relative;
}

.stats::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 20px 20px;
  pointer-events: none;
}

.stats__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  text-align: center;
  position: relative;
}

.stat__number {
  display: block;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-cyan-200);
}

.stat__label {
  font-size: 0.9375rem;
  opacity: 0.85;
}

/* How It Works */
.how-it-works {
  padding: 4rem 0;
  background: var(--color-bg-white);
}

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 1rem;
}

.step {
  text-align: center;
  padding: 2rem;
  background: var(--color-bg);
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
}

.step__number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  color: #fff;
  font-size: 1.5rem;
  font-weight: 700;
  border-radius: var(--radius);
  margin-bottom: 1rem;
}

.step h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  color: var(--color-text);
}

.step p {
  color: var(--color-text-muted);
  font-size: 0.9375rem;
}

/* CTA */
.cta {
  padding: 5rem 0;
  text-align: center;
  background: var(--color-cyan-50);
  position: relative;
}

.cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(14, 116, 144, 0.04) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
}

.cta h2 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 1rem;
  position: relative;
}

.cta p {
  font-size: 1.125rem;
  color: var(--color-text-muted);
  margin-bottom: 2rem;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
}

/* Listing Detail */
.listing-detail {
  padding: 2rem 0 4rem;
}

.breadcrumb {
  display: flex;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--color-text-muted);
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.breadcrumb a {
  color: var(--color-primary);
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.listing-detail__grid {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 2rem;
  align-items: start;
}

.listing-detail__hero-img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: 1.5rem;
}

.listing-detail__main h1 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.listing-detail__rating {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.listing-detail__rating .stars {
  color: var(--color-cyan-400);
  font-size: 1.25rem;
}

.listing-detail__desc {
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--color-text-muted);
  margin-bottom: 2rem;
}

.listing-detail__section {
  margin-bottom: 2rem;
}

.listing-detail__section h2 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  color: var(--color-primary);
}

.contact-card,
.claim-card {
  background: var(--color-bg-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.contact-card h3,
.claim-card h3 {
  font-size: 1.125rem;
  margin-bottom: 1rem;
  color: var(--color-text);
}

.contact-card__item {
  margin-bottom: 0.75rem;
  font-size: 0.9375rem;
}

.contact-card__item a {
  color: var(--color-primary);
  text-decoration: none;
}

.contact-card__item a:hover {
  text-decoration: underline;
}

.claim-card {
  background: var(--color-purple-50);
  border-color: var(--color-purple-100);
}

.claim-card p {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  margin-bottom: 1rem;
}

/* Footer */
.site-footer {
  background: #0f172a;
  color: #94a3b8;
  padding: 3rem 0 2rem;
  margin-top: auto;
}

.site-footer__brand strong {
  font-size: 1.25rem;
  color: var(--color-cyan-400);
}

.site-footer__brand p {
  font-size: 0.875rem;
  margin-top: 0.25rem;
  opacity: 0.7;
}

.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin: 1.5rem 0;
}

.site-footer__links a {
  color: #94a3b8;
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.2s;
}

.site-footer__links a:hover {
  color: var(--color-cyan-400);
}

.site-footer__copy {
  font-size: 0.8125rem;
  opacity: 0.5;
  margin-top: 1.5rem;
}

/* Responsive */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2rem;
  }

  .hero__search {
    flex-direction: column;
  }

  .hero__search .btn {
    border-radius: 0;
  }

  .listing-detail__grid {
    grid-template-columns: 1fr;
  }

  .site-header .container {
    flex-direction: column;
    gap: 0.75rem;
  }

  .site-nav {
    flex-wrap: wrap;
    justify-content: center;
  }
}
