:root {
  --bg: #fcf8ef;
  --paper: #fffdf8;
  --ink: #1f2933;
  --muted: #5d6a75;
  --accent: #e76f51;
  --accent-soft: #fde5dd;
  --secondary: #2a9d8f;
  --line: #e8ddca;
  --shadow: 0 12px 30px rgba(67, 53, 27, 0.14);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Manrope, "Trebuchet MS", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 10% 20%, #fef4df 0%, transparent 30%),
    radial-gradient(circle at 85% 18%, #dff5f1 0%, transparent 26%),
    linear-gradient(180deg, #fffdf9 0%, var(--bg) 100%);
  padding: 3rem 1rem 4rem;
  position: relative;
  overflow-x: hidden;
}

.background-shape {
  position: fixed;
  width: 34rem;
  height: 34rem;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.26;
  pointer-events: none;
}

.bg-one {
  top: -14rem;
  right: -8rem;
  background: #ffd49d;
}

.bg-two {
  bottom: -12rem;
  left: -8rem;
  background: #8dd8cf;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.hero {
  margin-bottom: 1.7rem;
}

.eyebrow {
  margin: 0 0 0.3rem;
  font-size: 0.92rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--secondary);
  font-weight: 800;
}

h1 {
  margin: 0;
  font-family: Sora, Verdana, sans-serif;
  font-size: clamp(1.8rem, 4vw, 3rem);
  letter-spacing: -0.03em;
}

.subtitle {
  margin-top: 0.6rem;
  color: var(--muted);
  max-width: 56ch;
  line-height: 1.5;
}

.credit-line {
  margin-top: 0.8rem;
  max-width: 70ch;
  font-size: 0.93rem;
  line-height: 1.45;
  color: #43505b;
}

.credit-line a {
  color: #1a6f81;
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px dotted #1a6f81;
}

.credit-line a:hover {
  color: #0e4e5e;
}

.credit-cta {
  display: inline-block;
  white-space: nowrap;
}

.controls {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 0.9rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.control {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.control span {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--muted);
}

input,
select {
  border: 1px solid #d8ccb6;
  border-radius: 10px;
  padding: 0.8rem 0.9rem;
  font: inherit;
  background: #fffefb;
  color: var(--ink);
}

input:focus,
select:focus {
  outline: 2px solid #f3b9a8;
  outline-offset: 2px;
  border-color: var(--accent);
}

.result-count {
  margin: 1rem 0;
  color: var(--muted);
  font-weight: 600;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  gap: 1rem;
}

.business-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--paper);
  box-shadow: var(--shadow);
  padding: 1rem;
  transform: translateY(10px);
  opacity: 0;
  animation: rise 0.45s ease forwards;
  height: 100%;
}

.card-top {
  display: flex;
  justify-content: space-between;
  gap: 0.6rem;
}

.card-category {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--secondary);
}

.card-name {
  margin: 0.2rem 0 0;
  font-size: 1.2rem;
  line-height: 1.2;
}

.card-type {
  margin: 0.7rem 0 0.8rem;
  color: var(--muted);
}

.card-links {
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
}

.icon-link {
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  border: 1px solid #e4d8c3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  background: #fff8ea;
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.icon-link:hover {
  transform: translateY(-1px);
  border-color: var(--accent);
}

.icon-link svg {
  width: 1rem;
  height: 1rem;
}

.card-details {
  margin: 0;
  display: grid;
  gap: 0.55rem;
}

.card-details > div {
  border-top: 1px solid #f0e6d5;
  padding-top: 0.55rem;
}

.card-details dt {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  margin-bottom: 0.12rem;
}

.card-details dd {
  margin: 0;
  line-height: 1.35;
  font-size: 0.93rem;
}

.contact-link {
  color: #1a6f81;
  text-decoration: none;
  border-bottom: 1px dotted #1a6f81;
}

.contact-link:hover {
  color: #0e4e5e;
}

.empty {
  border: 1px dashed #d9ccb5;
  border-radius: 16px;
  padding: 2rem;
  text-align: center;
  color: var(--muted);
  background: #fffdf7;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 760px) {
  body {
    padding: 1.4rem 0.8rem 2rem;
  }

  .controls {
    grid-template-columns: 1fr;
  }

  .cards-grid {
    grid-template-columns: 1fr;
  }

  .credit-cta {
    white-space: normal;
  }
}

@media (min-width: 761px) and (max-width: 1020px) {
  .cards-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
