/* ══════════════════════════════════════════
   LAYOUT — Premium Pet Parlour Directory
   ══════════════════════════════════════════ */

/* ── Hero ── */
.hero {
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--primary);
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 7rem 2.5rem 5rem;
  overflow: hidden;
}

/* Animated gradient mesh background */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 15% 85%, rgba(61,107,68,0.4) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 75% 20%, rgba(200,107,58,0.08) 0%, transparent 50%),
    radial-gradient(ellipse 70% 70% at 50% 50%, rgba(43,74,48,0.3) 0%, transparent 70%);
  pointer-events: none;
  animation: gradientShift 20s ease infinite;
  background-size: 200% 200%;
}

/* Decorative geometric accents */
.hero__decor {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(250,250,247,0.06);
  pointer-events: none;
}
.hero__decor--1 {
  top: -15%;
  right: -8%;
  width: 550px;
  height: 550px;
}
.hero__decor--2 {
  top: 10%;
  right: 8%;
  width: 320px;
  height: 320px;
  border-color: rgba(250,250,247,0.04);
}
.hero__decor--3 {
  bottom: -5%;
  left: -5%;
  width: 400px;
  height: 400px;
  border-color: rgba(250,250,247,0.03);
}

.hero__bg-text {
  position: absolute;
  top: 50%;
  right: -2rem;
  transform: translateY(-50%);
  font-family: var(--font-display);
  font-size: clamp(8rem, 18vw, 22rem);
  font-weight: 700;
  color: rgba(250,250,247,0.025);
  line-height: 1;
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
  letter-spacing: -0.03em;
}

.hero__eyebrow {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.75rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  position: relative;
  z-index: 1;
}
.hero__eyebrow::before {
  content: '';
  width: 40px;
  height: 1px;
  background: var(--accent);
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(3.2rem, 8vw, 6.5rem);
  font-weight: 400;
  line-height: 1.02;
  color: var(--surface);
  margin-bottom: 2rem;
  letter-spacing: -0.03em;
  max-width: 780px;
  position: relative;
  z-index: 1;
}
.hero__title em {
  font-style: italic;
  color: var(--gold-light);
  text-shadow: 0 0 80px rgba(212,184,122,0.15);
}

.hero__subtitle {
  font-size: 1.05rem;
  color: rgba(250,250,247,0.55);
  max-width: 460px;
  margin-bottom: 2.5rem;
  line-height: 1.75;
  font-weight: 400;
  position: relative;
  z-index: 1;
}

.hero__search-section {
  position: relative;
  z-index: 1;
}

.hero__search-label {
  font-size: 0.7rem;
  color: rgba(250,250,247,0.4);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
  font-weight: 500;
}

.hero__stats {
  display: flex;
  gap: 3.5rem;
  margin-top: 4rem;
  padding-top: 2.5rem;
  border-top: 1px solid rgba(250,250,247,0.08);
  position: relative;
  z-index: 1;
}
.hero__stat-num {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 500;
  color: var(--surface);
  line-height: 1;
  letter-spacing: -0.03em;
}
.hero__stat-label {
  font-size: 0.72rem;
  color: rgba(250,250,247,0.38);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-top: 0.4rem;
  font-weight: 450;
}

.hero__scroll-hint {
  position: absolute;
  bottom: 2.5rem;
  right: 2.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: rgba(250,250,247,0.3);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 450;
}
.hero__scroll-line {
  width: 40px;
  height: 1px;
  background: rgba(250,250,247,0.2);
  position: relative;
  overflow: hidden;
}
.hero__scroll-line::after {
  content: '';
  position: absolute;
  left: -100%;
  top: 0;
  width: 100%;
  height: 100%;
  background: var(--surface);
  animation: scrollLine 2.5s ease-in-out infinite;
}
@keyframes scrollLine {
  0% { left: -100%; }
  50% { left: 0%; }
  100% { left: 100%; }
}

/* ── Container ── */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2.5rem;
}
.section { padding: var(--space-20) 0; }

/* ── Toolbar ── */
.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}
.toolbar__left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.toolbar__count {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--text-tertiary);
}
.toolbar__count strong {
  color: var(--text-primary);
  font-weight: 600;
}
.sort-select {
  padding: 0.6rem 2.5rem 0.6rem 1.15rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-pill);
  font-size: 0.82rem;
  font-family: var(--font-body);
  background: var(--surface-elevated);
  color: var(--text-primary);
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%239B9B94'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.85rem center;
  outline: none;
  transition: all var(--duration-normal) ease;
  box-shadow: var(--shadow-xs);
  font-weight: 450;
}
.sort-select:hover {
  border-color: var(--primary-light);
  box-shadow: var(--shadow-sm);
}
.sort-select:focus {
  border-color: var(--primary-light);
  box-shadow: 0 0 0 3px rgba(61,107,68,0.08);
}

/* ── Directory Layout ── */
.directory-wrap {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 2.5rem;
  align-items: start;
}

/* ── Business Grid ── */
.business-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 1.75rem;
}

/* ── Map Sidebar ── */
.map-sidebar {
  position: sticky;
  top: 88px;
}

/* ── Footer ── */
.footer {
  background: var(--primary);
  color: rgba(250,250,247,0.55);
  padding: 5.5rem 2.5rem 2.5rem;
  position: relative;
  overflow: hidden;
}
.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(80%, 600px);
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), var(--gold), var(--accent), transparent);
  opacity: 0.3;
}
.footer::after {
  content: '';
  position: absolute;
  top: 0;
  right: -10%;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(43,74,48,0.2) 0%, transparent 70%);
  pointer-events: none;
}
.footer__inner {
  max-width: 1360px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.footer__top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 4rem;
  padding-bottom: 3.5rem;
  border-bottom: 1px solid rgba(250,250,247,0.06);
  margin-bottom: 2rem;
}
.footer__logo {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--surface);
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
}
.footer__tagline {
  font-size: 0.9rem;
  line-height: 1.75;
  margin-bottom: 1.5rem;
  max-width: 320px;
}
.footer__heading {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-light);
  margin-bottom: 1.15rem;
}
.footer__links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.footer__links a {
  font-size: 0.88rem;
  transition: all var(--duration-normal) ease;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}
.footer__links a:hover {
  color: var(--surface);
  transform: translateX(3px);
}
.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  flex-wrap: wrap;
  gap: 0.5rem;
  color: rgba(250,250,247,0.3);
}
.footer__bottom a {
  color: rgba(250,250,247,0.35);
  transition: color var(--duration-normal);
}
.footer__bottom a:hover { color: var(--surface); }

/* ══════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════ */

@media (max-width: 960px) {
  .directory-wrap { grid-template-columns: 1fr; }
  .map-sidebar { position: relative; top: 0; }
}

@media (max-width: 768px) {
  .hero {
    padding: 6rem 1.5rem 3.5rem;
  }
  .hero__title {
    font-size: clamp(2.6rem, 10vw, 4rem);
  }
  .hero__stats {
    gap: 2rem;
    flex-wrap: wrap;
  }
  .hero__stat-num { font-size: 2rem; }
  .hero__scroll-hint { display: none; }

  .nav {
    padding: 1rem 1.25rem;
  }
  .nav.scrolled { padding: 0.65rem 1.25rem; }
  .nav__links { display: none; }
  .nav__toggle { display: flex; }

  .container { padding: 0 1.25rem; }
  .section { padding: 3.5rem 0; }

  .toolbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .business-grid {
    gap: 1.25rem;
  }

  .footer {
    padding: 4rem 1.5rem 2rem;
  }
  .footer__top {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 5rem 1.25rem 2.5rem;
    min-height: auto;
  }
  .hero__subtitle { font-size: 0.92rem; }
  .search-bar {
    padding: 0.35rem 0.35rem 0.35rem 1rem;
  }
  .search-bar input {
    font-size: 0.92rem;
    height: 38px;
  }
  .filter-chips { gap: 0.35rem; }
  .chip {
    padding: 0.4rem 0.9rem;
    font-size: 0.75rem;
  }
  .business-grid {
    grid-template-columns: 1fr;
  }
  .nav__cta {
    font-size: 0.72rem;
    padding: 0.5rem 1rem;
  }
  .hero__stats { gap: 1.5rem; }
}
