/* Known In Town — Seattle Directory */

:root {
  /* Brand */
  --color-navy: #1a365d;
  --color-blue: #2563eb;
  --color-blue-light: #3b82f6;
  --color-orange: #e87c3e;
  --color-gold: #d4972a;
  --color-orange-light: #f4a261;

  /* Surfaces */
  --bg-dark: #ffffff;
  --bg-dark-2: #f8fafc;

  /* Text */
  --text-main: #1a202c;
  --text-muted: #4a5568;
  --text-dim: #718096;

  /* Gradients */
  --gradient-brand: linear-gradient(135deg, #2563eb 0%, #e87c3e 100%);
  --gradient-orange: linear-gradient(135deg, #e87c3e 0%, #d4972a 100%);
  --gradient-navy: linear-gradient(135deg, #1a365d 0%, #0f2240 100%);

  --border-soft: rgba(26, 54, 93, 0.08);
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --shadow-card: 0 2px 12px rgba(26, 54, 93, 0.06);
  --shadow-lift: 0 16px 32px rgba(26, 54, 93, 0.12);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Inter", system-ui, sans-serif;
  font-weight: 400;
  line-height: 1.65;
  color: var(--text-main);
  background: var(--bg-dark);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: "Outfit", system-ui, sans-serif;
  line-height: 1.2;
  color: var(--color-navy);
}

p { color: var(--text-muted); }

a { color: var(--color-blue); text-decoration: none; }

img { max-width: 100%; display: block; }

.container {
  width: min(1160px, 100% - 3rem);
  margin-inline: auto;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-soft);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.6rem;
}

.brand-link { display: flex; align-items: center; }

.brand-link img { height: 85px; width: auto; }

.header-actions { display: flex; align-items: center; gap: 0.75rem; }

.nav-links {
  display: flex;
  gap: 1.75rem;
  list-style: none;
  margin-right: 1rem;
}

.nav-links a {
  font-family: "Outfit", sans-serif;
  font-weight: 500;
  color: var(--color-navy);
  font-size: 1rem;
}

.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--color-blue); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: "Outfit", sans-serif;
  font-weight: 600;
  font-size: 1rem;
  border-radius: 9999px;
  padding: 0.9rem 2rem;
  cursor: pointer;
  border: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease, background 0.25s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--gradient-orange);
  color: #fff;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 24px rgba(232, 124, 62, 0.35);
}

.btn-secondary {
  background: transparent;
  border: 2px solid rgba(26, 54, 93, 0.2);
  color: var(--color-navy);
}

.btn-secondary:hover {
  border-color: var(--color-blue);
  background: rgba(37, 99, 235, 0.06);
}

.btn-sm { padding: 0.6rem 1.4rem; font-size: 0.9rem; }

.btn svg { width: 18px; height: 18px; flex: none; }

/* ---------- Section pattern ---------- */

.section { padding-block: 5rem; }

.section-alt { background: var(--bg-dark-2); }

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 3rem;
}

.section-label {
  font-family: "Outfit", sans-serif;
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-orange);
  display: block;
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  margin-bottom: 0.9rem;
}

.section-sub { font-size: 1.05rem; max-width: 600px; margin-inline: auto; }

.grad-text {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* ---------- Hero ---------- */

.hero {
  padding: 5.5rem 0 4.5rem;
  text-align: center;
  background:
    radial-gradient(ellipse 60% 50% at 20% 0%, rgba(37, 99, 235, 0.07), transparent),
    radial-gradient(ellipse 60% 50% at 85% 10%, rgba(232, 124, 62, 0.07), transparent),
    var(--bg-dark);
}

.hero h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  max-width: 820px;
  margin: 0 auto 1.1rem;
}

.hero-sub {
  font-size: 1.15rem;
  max-width: 620px;
  margin: 0 auto 2.25rem;
}

.hero-kicker {
  font-family: "Outfit", sans-serif;
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-orange);
  display: block;
  margin-bottom: 1rem;
}

/* ---------- Search bar ---------- */

.search-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  max-width: 620px;
  margin: 0 auto;
  background: #fff;
  border: 1.5px solid rgba(26, 54, 93, 0.14);
  border-radius: 9999px;
  padding: 0.4rem 0.4rem 0.4rem 1.35rem;
  box-shadow: var(--shadow-card);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.search-bar:focus-within {
  border-color: var(--color-blue);
  box-shadow: 0 6px 24px rgba(37, 99, 235, 0.14);
}

.search-bar svg {
  width: 20px;
  height: 20px;
  color: var(--color-blue);
  flex: none;
}

.search-bar input {
  flex: 1;
  min-width: 0;
  border: none;
  outline: none;
  font-family: "Inter", sans-serif;
  font-size: 1.05rem;
  color: var(--text-main);
  background: transparent;
  padding-block: 0.55rem;
}

.search-bar input::placeholder { color: var(--text-dim); }

.hero-trust {
  margin-top: 1.4rem;
  font-size: 0.92rem;
  color: var(--text-dim);
}

/* ---------- Category grid ---------- */

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.category-card {
  position: relative;
  display: block;
  background: #fff;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem;
  box-shadow: var(--shadow-card);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: inherit;
}

a.category-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lift);
}

.category-card h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.category-card p { font-size: 0.95rem; }

.category-card .icon-tile { margin-bottom: 1.1rem; }

.category-card .cat-count {
  display: inline-block;
  margin-top: 0.9rem;
  font-family: "Outfit", sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--color-blue);
}

.category-card.coming-soon {
  opacity: 0.72;
  background: var(--bg-dark-2);
}

.soon-badge {
  position: absolute;
  top: 1.1rem;
  right: 1.1rem;
  font-family: "Outfit", sans-serif;
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-navy);
  background: rgba(26, 54, 93, 0.08);
  border-radius: 9999px;
  padding: 0.28rem 0.75rem;
}

.icon-tile {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: rgba(37, 99, 235, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
}

.icon-tile svg { width: 26px; height: 26px; color: var(--color-blue); }

/* ---------- How it works ---------- */

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.step-card { text-align: center; padding: 1rem; }

.step-num {
  font-family: "Outfit", sans-serif;
  font-weight: 800;
  font-size: 1.1rem;
  color: #fff;
  background: var(--gradient-brand);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}

.step-card h3 { font-size: 1.15rem; margin-bottom: 0.4rem; }

.step-card p { font-size: 0.95rem; }

/* ---------- Listing cards ---------- */

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

.listing-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-card);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.listing-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lift);
}

.listing-card.featured {
  border: 1.5px solid transparent;
  background:
    linear-gradient(#fff, #fff) padding-box,
    var(--gradient-brand) border-box;
}

.featured-badge {
  position: absolute;
  top: 1.2rem;
  right: 1.2rem;
  font-family: "Outfit", sans-serif;
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  background: var(--gradient-orange);
  border-radius: 9999px;
  padding: 0.28rem 0.75rem;
}

.listing-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
  padding-right: 5rem;
}

.rank-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.1em;
  font-family: "Outfit", sans-serif;
  font-weight: 700;
  font-size: 0.82rem;
  color: #fff;
  background: var(--gradient-navy);
  border-radius: 9999px;
  padding: 0.22rem 0.6rem;
}

.listing-card .rank-badge {
  position: absolute;
  top: 1.4rem;
  right: 1.4rem;
}

.listing-card.top-three .rank-badge { background: var(--gradient-orange); }

.rank-line {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 0.7rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.rating-note {
  font-size: 0.8rem;
  color: var(--text-dim);
  margin-top: 0.8rem;
}

.rating-row {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.7rem;
  font-size: 0.92rem;
  color: var(--text-muted);
}

.stars { color: var(--color-gold); letter-spacing: 0.08em; font-size: 0.95rem; }

.rating-num { font-weight: 600; color: var(--text-main); }

.listing-meta {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.92rem;
  color: var(--text-muted);
  margin-bottom: 0.85rem;
}

.listing-meta svg { width: 16px; height: 16px; color: var(--color-blue); flex: none; margin-top: 3px; }

.tag-row { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-bottom: 1.25rem; }

.tag {
  font-family: "Outfit", sans-serif;
  font-weight: 500;
  font-size: 0.78rem;
  color: var(--color-navy);
  background: rgba(37, 99, 235, 0.08);
  border-radius: 9999px;
  padding: 0.28rem 0.8rem;
}

.listing-actions {
  margin-top: auto;
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

/* ---------- Search toolbar (category page) ---------- */

.search-toolbar {
  position: sticky;
  top: 102px;
  z-index: 40;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  padding-block: 1rem;
  border-bottom: 1px solid var(--border-soft);
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 0.9rem;
}

.chip {
  font-family: "Outfit", sans-serif;
  font-weight: 500;
  font-size: 0.85rem;
  color: var(--color-navy);
  background: #fff;
  border: 1.5px solid rgba(26, 54, 93, 0.16);
  border-radius: 9999px;
  padding: 0.4rem 1.05rem;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
  min-height: 36px;
}

.chip:hover { border-color: var(--color-blue); }

.chip.active {
  background: var(--color-blue);
  border-color: var(--color-blue);
  color: #fff;
}

.results-count {
  text-align: center;
  font-size: 0.95rem;
  color: var(--text-dim);
  margin-bottom: 1.75rem;
}

.empty-state {
  text-align: center;
  padding: 4rem 1rem;
}

.empty-state h3 { font-size: 1.4rem; margin-bottom: 0.5rem; }

/* ---------- Detail page ---------- */

.profile-hero {
  background:
    radial-gradient(ellipse 60% 60% at 15% 0%, rgba(37, 99, 235, 0.07), transparent),
    var(--bg-dark-2);
  padding: 3.5rem 0 3rem;
}

.breadcrumb {
  font-size: 0.9rem;
  color: var(--text-dim);
  margin-bottom: 1.5rem;
}

.breadcrumb a { color: var(--color-blue); }

.profile-hero h1 {
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 800;
  margin-bottom: 0.6rem;
}

.profile-hero .rating-row { font-size: 1rem; margin-bottom: 0.9rem; }

.profile-hero .listing-meta { font-size: 1rem; margin-bottom: 1.6rem; }

.profile-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; }

.profile-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 2.5rem;
  align-items: start;
}

.profile-main h2 { font-size: 1.5rem; margin-bottom: 1rem; }

.profile-main .about-text { margin-bottom: 2.5rem; font-size: 1.05rem; }

.service-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.9rem;
}

.service-list li {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  background: #fff;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  padding: 0.85rem 1.1rem;
  font-family: "Outfit", sans-serif;
  font-weight: 500;
  color: var(--color-navy);
  box-shadow: var(--shadow-card);
}

.service-list svg { width: 18px; height: 18px; color: var(--color-blue); flex: none; }

.sidebar-card {
  background: #fff;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-card);
  margin-bottom: 1.5rem;
}

.sidebar-card h3 { font-size: 1.15rem; margin-bottom: 1rem; }

.sidebar-card .btn { width: 100%; margin-bottom: 0.7rem; }

.sidebar-card .btn:last-child { margin-bottom: 0; }

.fact-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.95rem;
  padding-block: 0.55rem;
  border-bottom: 1px solid var(--border-soft);
}

.fact-row:last-child { border-bottom: none; }

.fact-row .fact-label { color: var(--text-dim); }

.fact-row .fact-value { font-weight: 600; color: var(--text-main); text-align: right; }

.claim-card {
  border: 1.5px solid transparent;
  background:
    linear-gradient(#fff, #fff) padding-box,
    var(--gradient-brand) border-box;
}

.claim-card p { font-size: 0.95rem; margin-bottom: 1.1rem; }

/* ---------- Funnel band ---------- */

.funnel-band {
  background: var(--gradient-navy);
  border-radius: var(--radius-xl);
  padding: 3.5rem 2.5rem;
  text-align: center;
  color: #fff;
}

.funnel-band h2 {
  color: #fff;
  font-size: clamp(1.7rem, 3.5vw, 2.5rem);
  font-weight: 800;
  margin-bottom: 0.8rem;
}

.funnel-band p {
  color: rgba(255, 255, 255, 0.82);
  max-width: 560px;
  margin: 0 auto 1.9rem;
  font-size: 1.05rem;
}

.funnel-band .btn-secondary {
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff;
}

.funnel-band .btn-secondary:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.funnel-actions { display: flex; gap: 0.85rem; justify-content: center; flex-wrap: wrap; }

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--border-soft);
  background: var(--bg-dark-2);
  padding: 3rem 0 2rem;
  margin-top: 5rem;
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 2rem;
}

.footer-brand img { height: 90px; width: auto; margin-bottom: 0.75rem; }

.footer-brand p { font-size: 0.95rem; max-width: 300px; }

.footer-col h4 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.8rem;
}

.footer-col ul { list-style: none; }

.footer-col li { margin-bottom: 0.5rem; font-size: 0.95rem; }

.footer-col a { color: var(--text-muted); }

.footer-col a:hover { color: var(--color-blue); }

.footer-legal {
  border-top: 1px solid var(--border-soft);
  padding-top: 1.5rem;
  font-size: 0.85rem;
  color: var(--text-dim);
  text-align: center;
}

/* ---------- Reveal animation ---------- */

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.reveal.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .listing-card, .category-card { transition: none; }
}

/* ---------- Responsive ---------- */

@media (max-width: 860px) {
  .profile-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .search-toolbar { top: 86px; }
}

@media (max-width: 640px) {
  .section { padding-block: 3.5rem; }
  .brand-link img { height: 64px; }
  .header-actions .btn-secondary { display: none; }
  .search-toolbar { top: 81px; }
  .funnel-band { padding: 2.5rem 1.5rem; }
  .listing-grid { grid-template-columns: 1fr; }
}
