/* Yatishara Links — app shell, Shara-style extreme rounding (matches yatishara.com) */
:root {
  --sand: #f5f2ed;
  --sand-muted: #d4cfc6;
  --navy-green: #2d3a3a;
  --navy-deep: #1e2828;
  --luxury: #c5a880;
  --luxury-dim: #a68b5b;
  --pale: #d9e3d8;
  --border: rgba(245, 242, 237, 0.1);

  /* Radii — yatishara.com uses rounded-3xl (~1.5rem) on cards */
  --r-pill: 9999px;
  --r-chip: 60px;
  --r-card: 1.5rem;
  --r-inset: 1.125rem;

  --page: 40rem;
  --ease: cubic-bezier(0, 0, 0.2, 1);
  --ease-slow: cubic-bezier(0.22, 1, 0.36, 1);
  --dur: 0.8s;

  /* Frosted glass */
  --glass: rgba(255, 255, 255, 0.09);
  --glass-strong: rgba(255, 255, 255, 0.13);
  --glass-border: rgba(255, 255, 255, 0.16);
  --glass-blur: 20px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: Inter, system-ui, sans-serif;
  background: var(--navy-green);
  color: var(--sand);
  line-height: 1.5;
  min-height: 100vh;
  min-height: 100svh;
  -webkit-font-smoothing: antialiased;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0ms !important;
    transition-duration: 0.01ms !important;
  }
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font: inherit; border: none; background: none; cursor: pointer; color: inherit; }

/* Ambient — subtle luxury glow like yatishara.com */
.app-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  background: var(--navy-green);
  pointer-events: none;
}

.app-bg::before {
  content: "";
  position: absolute;
  top: -10%;
  left: 50%;
  width: 130%;
  height: 55%;
  transform: translateX(-50%);
  background: rgba(197, 168, 128, 0.12);
  filter: blur(60px);
  border-radius: 100%;
  opacity: 0.35;
}

.app-bg::after {
  content: "";
  position: absolute;
  bottom: 0;
  right: -20%;
  width: 70%;
  height: 40%;
  background: rgba(217, 227, 216, 0.06);
  filter: blur(50px);
  border-radius: 100%;
}

/* Page container — yatishara.com style */
.app-shell {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--page);
  min-height: 100vh;
  min-height: 100svh;
  margin: 0 auto;
  padding:
    max(24px, env(safe-area-inset-top))
    max(24px, env(safe-area-inset-right))
    max(32px, env(safe-area-inset-bottom))
    max(24px, env(safe-area-inset-left));
  display: flex;
  flex-direction: column;
}

@media (min-width: 768px) {
  :root { --page: 48rem; }
  .app-shell { padding-top: 40px; padding-left: 1.5rem; padding-right: 1.5rem; }
}

@media (min-width: 1024px) {
  :root { --page: 56rem; }
}

/* Reveal animations — yatishara.com fade + easeOut */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  animation: revealIn var(--dur) var(--ease) forwards;
}

.reveal-1 { animation-delay: 0s; }
.reveal-2 { animation-delay: 0.08s; }
.reveal-3 { animation-delay: 0.16s; }
.reveal-4 { animation-delay: 0.22s; }

@keyframes revealIn {
  to { opacity: 1; transform: translateY(0); }
}

/* Hero — minimal, editorial */
.hero {
  position: relative;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  margin-bottom: 32px;
  text-align: center;
}

.hero-glow {
  position: absolute;
  top: 10%;
  left: 50%;
  width: 110%;
  height: 180%;
  transform: translate(-50%, -30%);
  background: rgba(197, 168, 128, 0.18);
  filter: blur(45px);
  border-radius: 100%;
  pointer-events: none;
  opacity: 0.25;
  z-index: 0;
}

.hero-lockup {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 14px;
  transition: opacity 0.5s var(--ease-slow);
}

.hero-lockup:hover { opacity: 0.88; }
.hero-lockup:hover .hero-agency { color: var(--luxury); }

/* Studio-style circular brand mark — compact, inline with wordmark */
.brand-mark {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06) inset;
}

.brand-mark--ambient::before,
.brand-mark--ambient::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  translate: -50% -50%;
  border-radius: 50%;
  pointer-events: none;
}

.brand-mark--ambient::before {
  width: 118%;
  height: 118%;
  background: radial-gradient(
    circle,
    rgba(197, 168, 128, 0.28) 0%,
    rgba(197, 168, 128, 0.08) 42%,
    transparent 72%
  );
  filter: blur(10px);
  animation: brand-halo-outer 3.8s cubic-bezier(0.45, 0, 0.55, 1) infinite;
}

.brand-mark--ambient::after {
  width: 72%;
  height: 72%;
  background: radial-gradient(
    circle,
    rgba(197, 168, 128, 0.22) 0%,
    transparent 68%
  );
  filter: blur(4px);
  animation: brand-halo-inner 3.8s cubic-bezier(0.45, 0, 0.55, 1) infinite;
  animation-delay: 0.55s;
}

@keyframes brand-halo-outer {
  0%, 100% { opacity: 0.2; transform: scale(0.95); }
  50% { opacity: 0.5; transform: scale(1.02); }
}

@keyframes brand-halo-inner {
  0%, 100% { opacity: 0.15; transform: scale(0.96); }
  50% { opacity: 0.42; transform: scale(1.04); }
}

.brand-logo {
  position: relative;
  z-index: 1;
  width: 16px;
  height: 16px;
  object-fit: contain;
  object-position: center;
}

.hero-eyebrow {
  position: relative;
  z-index: 1;
  font-family: Montserrat, Inter, sans-serif;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(245, 242, 237, 0.45);
  margin-bottom: 16px;
}

.hero-agency {
  font-family: Montserrat, Inter, sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(245, 242, 237, 0.4);
  line-height: 1;
  transition: color 0.5s var(--ease-slow);
}

.hero-sub {
  position: relative;
  z-index: 1;
  font-size: 15px;
  line-height: 1.55;
  color: rgba(245, 242, 237, 0.55);
  max-width: 340px;
  margin: 0 auto 28px;
}

/* Search — quiet, white/5 like main site cards */
.search-soft {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  max-width: 100%;
  height: 48px;
  padding: 0 18px;
  border-radius: var(--r-card);
  background: var(--glass);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.05) inset;
  transition: border-color 0.5s var(--ease-slow), background 0.5s var(--ease-slow);
}

.search-soft:focus-within {
  background: var(--glass-strong);
  border-color: rgba(255, 255, 255, 0.22);
}

.search-soft svg {
  width: 16px;
  height: 16px;
  color: rgba(245, 242, 237, 0.35);
  flex-shrink: 0;
}

.search-soft input {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  color: var(--sand);
  font: inherit;
  font-size: 14px;
  outline: none;
}

.search-soft input::placeholder { color: rgba(245, 242, 237, 0.3); }
.search-soft input::-webkit-search-cancel-button { -webkit-appearance: none; }

/* Filter chips */
.chip-row {
  display: flex;
  justify-content: center;
  gap: 8px;
  overflow-x: auto;
  padding: 16px 0 4px;
  margin-top: 4px;
  scrollbar-width: none;
}

.chip-row::-webkit-scrollbar { display: none; }

.chip {
  flex-shrink: 0;
  height: 36px;
  padding: 0 16px;
  font-family: Montserrat, Inter, sans-serif;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(245, 242, 237, 0.45);
  transition: all 0.5s var(--ease-slow);
}

.chip:hover { color: rgba(245, 242, 237, 0.7); }
.chip.is-on {
  background: rgba(197, 168, 128, 0.15);
  border-color: rgba(197, 168, 128, 0.3);
  color: var(--luxury);
}

/* ── Main scroll area ── */
.app-main {
  flex: 1;
  min-height: 0;
}

.grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}

@media (min-width: 700px) {
  .grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

/* ── Business card (extreme rounding) ── */
.biz-card {
  display: block;
  background: var(--glass);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  border-radius: var(--r-card);
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.04) inset;
  transition:
    transform 0.5s var(--ease-slow),
    border-color 0.5s var(--ease-slow),
    background 0.5s var(--ease-slow),
    box-shadow 0.5s var(--ease-slow);
  animation: cardIn 0.7s var(--ease) both;
  -webkit-user-select: none;
  user-select: none;
}

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

.biz-card:hover {
  background: var(--glass-strong);
  border-color: rgba(255, 255, 255, 0.22);
  transform: translateY(-4px);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.08) inset,
    0 20px 50px rgba(0, 0, 0, 0.2);
}

.biz-cover-wrap {
  padding: 14px 14px 0;
}

.biz-cover {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: calc(var(--r-card) - 4px);
  background: #1a2222;
}

.biz-cover > img:first-child {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}

.biz-card:hover .biz-cover > img:first-child { transform: scale(1.04); }

.biz-logo-wrap {
  position: absolute;
  bottom: 16px;
  left: 16px;
  z-index: 2;
  height: 34px;
  padding: 4px 10px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
}

.biz-logo {
  height: 22px;
  width: auto;
  max-width: 88px;
  object-fit: contain;
}

.biz-cat {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 8px 14px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: var(--luxury);
}

.biz-body {
  padding: 18px 20px 22px;
}

.biz-brand {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--luxury);
  margin-bottom: 4px;
}

.biz-name {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 26px;
  font-weight: 600;
  line-height: 1.08;
  margin-bottom: 6px;
}

.biz-tag {
  font-size: 14px;
  color: var(--sand-muted);
  line-height: 1.45;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.biz-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.biz-meta span {
  font-size: 12px;
  padding: 6px 14px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--sand-muted);
}

.biz-cta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.biz-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--luxury);
}

.biz-cta-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--r-pill);
  background: rgba(197, 168, 128, 0.15);
  border: 1px solid rgba(197, 168, 128, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, transform 0.2s;
}

.biz-cta-icon svg {
  width: 16px;
  height: 16px;
}

.biz-card:hover .biz-cta-icon {
  background: rgba(197, 168, 128, 0.25);
  border-color: rgba(197, 168, 128, 0.4);
  transform: translateX(3px);
}

/* ── Skeleton loading ── */
.skeleton-card {
  border-radius: var(--r-card);
  overflow: hidden;
  background: var(--glass);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  animation: pulse 1.4s ease-in-out infinite;
}

.sk-cover {
  margin: 10px 10px 0;
  aspect-ratio: 16 / 10;
  border-radius: calc(var(--r-card) - 4px);
  background: rgba(245, 242, 237, 0.06);
}

.sk-body { padding: 18px 20px 22px; }

.sk-line {
  height: 14px;
  border-radius: var(--r-pill);
  background: rgba(245, 242, 237, 0.06);
  margin-bottom: 10px;
}

.sk-line.w60 { width: 60%; }
.sk-line.w40 { width: 40%; }

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.55; }
}

/* ── Empty / error ── */
.empty, .load-err {
  text-align: center;
  padding: 40px 20px;
  color: var(--sand-muted);
  font-size: 15px;
  border-radius: var(--r-card);
  background: rgba(30, 40, 40, 0.5);
  border: 1px dashed var(--border);
}

/* ── Footer ── */
.app-foot {
  flex-shrink: 0;
  margin-top: 40px;
  text-align: center;
  font-family: Montserrat, Inter, sans-serif;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(245, 242, 237, 0.25);
}

.app-foot a {
  display: inline-block;
  padding: 8px 0;
  transition: color 0.5s var(--ease-slow);
}

.app-foot a:hover { color: var(--luxury); }
