/**
 * services.css — the catalogue browser: the maroon search hero, the
 * "browse by occasion" accordion grid, popular/festival cards and the dark
 * green "all services" band.
 */

/* ================= SEARCH HERO ================= */
.search-hero { text-align: center; }
.search-hero__inner {
  position: relative;
  max-width: 900px;
  margin-inline: auto;
  padding: clamp(40px, 6.5vw, 68px) var(--gutter) clamp(34px, 5vw, 52px);
}
.search-hero h1 {
  margin: 18px 0 12px;
  font-size: clamp(30px, 5.6vw, 46px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  text-shadow: 0 4px 40px rgba(224, 163, 37, .26);
}
.search-hero__lede {
  margin: 0 auto 26px;
  font-size: clamp(15px, 1.8vw, 17px);
  line-height: 1.6;
  color: rgba(255, 248, 240, .82);
  max-width: 52ch;
}

.searchbox { position: relative; max-width: 660px; margin-inline: auto; }
.searchbox__icon {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--ink-6);
  pointer-events: none;
  display: flex;
}
.searchbox__icon svg { width: 20px; height: 20px; }
.searchbox input {
  width: 100%;
  padding: 18px 52px;
  min-height: 60px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(224, 163, 37, .5);
  background: var(--surface);
  color: var(--ink);
  font-size: clamp(15px, 1.8vw, 16.5px);
  box-shadow: 0 14px 40px -18px rgba(0, 0, 0, .7), 0 0 34px -10px rgba(224, 163, 37, .6);
}
.searchbox__clear {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  background: var(--gold-tint);
  color: var(--gold-deep);
  display: flex;
  align-items: center;
  justify-content: center;
}
.searchbox__clear svg { width: 15px; height: 15px; }

.popular-row {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  justify-content: center;
}
.popular-row__label { font-size: 13px; color: rgba(255, 248, 240, .6); align-self: center; }

.search-results {
  margin-top: 22px;
  text-align: left;
  background: var(--surface);
  color: var(--ink);
  border-radius: var(--radius-xl);
  border: 1px solid rgba(224, 163, 37, .45);
  box-shadow: 0 24px 60px -28px rgba(0, 0, 0, .7);
  overflow: hidden;
  animation: om-expand .35s ease both;
}
.search-results__head {
  padding: 14px clamp(16px, 3vw, 22px);
  border-bottom: 1px solid var(--line-soft);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  align-items: center;
  justify-content: space-between;
}
.search-results__head strong {
  font-size: 13.5px;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--ink-5);
}
.search-result {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 14px clamp(16px, 3vw, 22px);
  text-decoration: none;
  color: inherit;
  border-bottom: 1px solid #f3ece0;
  transition: background var(--t-fast);
}
.search-result:hover { background: #faf3e6; color: inherit; }
.search-result__name { display: block; font-size: 15px; font-weight: 600; line-height: 1.3; }
.search-result__meta { display: block; font-size: 12.5px; color: var(--ink-5); margin-top: 3px; }
.search-results__empty {
  padding: 26px clamp(16px, 3vw, 22px);
  font-size: 14.5px;
  color: var(--ink-3);
  line-height: 1.6;
}

/* ================= HELP ME CHOOSE ================= */
.helper {
  position: relative;
  overflow: hidden;
  padding: clamp(22px, 3.6vw, 32px);
  border-radius: var(--radius-2xl);
  background: var(--gold-wash);
  border: 1px solid var(--line-gold);
  box-shadow: 0 0 44px -18px rgba(224, 163, 37, .9);
  display: flex;
  flex-wrap: wrap;
  gap: clamp(18px, 3vw, 32px);
  align-items: center;
  justify-content: space-between;
}
.helper__copy { flex: 1 1 320px; min-width: 0; }
.helper__copy h2 {
  margin: 10px 0 8px;
  font-size: clamp(21px, 3.2vw, 27px);
  line-height: 1.16;
  max-width: 24ch;
}
.helper__copy p { font-size: 14.5px; color: #5c4a26; line-height: 1.6; max-width: 48ch; }
.helper__prompts { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.helper__prompt {
  cursor: pointer;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  min-height: 52px;
  border-radius: 14px;
  border: 1px solid #e3cfa2;
  background: var(--surface);
  color: var(--ink-2);
  font-size: 14.5px;
  font-weight: 600;
  transition: all var(--t);
}
.helper__prompt:hover {
  border-color: var(--gold);
  transform: translateX(3px);
  box-shadow: 0 8px 24px -14px rgba(224, 163, 37, 1);
}
.helper__prompt svg:first-child { width: 18px; height: 18px; flex-shrink: 0; color: var(--amber); }
.helper__prompt span { flex: 1 1 auto; min-width: 0; }
.helper__prompt svg:last-child { width: 16px; height: 16px; flex-shrink: 0; color: #a89e8c; }

/* ================= BROWSE BY OCCASION ================= */
.occasions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(255px, 1fr));
  gap: clamp(14px, 2vw, 18px);
  align-items: start;
}
.occasion {
  position: relative;
  border-radius: var(--radius-xl);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: border-color var(--t-slow), box-shadow var(--t-slow);
}
.occasion[data-open="true"] {
  grid-column: 1 / -1;
  border-color: var(--gold);
  box-shadow: 0 18px 50px -24px rgba(224, 163, 37, 1);
}
.occasion__toggle {
  width: 100%;
  cursor: pointer;
  text-align: left;
  border: none;
  background: transparent;
  padding: clamp(20px, 2.6vw, 26px);
  display: flex;
  gap: 16px;
  align-items: flex-start;
  transition: background var(--t);
}
.occasion__toggle:hover { background: #fdf8ee; }
.occasion__head {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  align-items: baseline;
}
.occasion__name {
  font-family: var(--font-display);
  font-size: clamp(18px, 2.1vw, 20px);
  font-weight: 600;
  line-height: 1.2;
  color: var(--ink);
}
.occasion__desc {
  display: block;
  margin-top: 8px;
  font-size: 14px;
  color: var(--ink-3);
  line-height: 1.6;
}
.occasion__action {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 12px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--maroon-600);
}
.occasion__action svg { width: 15px; height: 15px; flex-shrink: 0; transition: transform var(--t-slow); }
.occasion[data-open="true"] .occasion__action svg { transform: rotate(180deg); }

.occasion__panel {
  display: none;
  padding: 0 clamp(16px, 2.4vw, 24px) clamp(20px, 2.6vw, 26px);
}
.occasion[data-open="true"] .occasion__panel { display: block; animation: om-expand .34s ease both; }
.occasion__rule { height: 1px; background: var(--line-soft); margin-bottom: clamp(16px, 2.2vw, 22px); }
.occasion__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(238px, 1fr));
  gap: clamp(12px, 1.8vw, 16px);
}
.occasion__foot {
  margin-top: clamp(14px, 2vw, 18px);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
}
.occasion__foot p { margin: 0; font-size: 13px; color: var(--ink-5); line-height: 1.55; max-width: 52ch; }

.puja-card {
  display: flex;
  flex-direction: column;
  padding: 18px;
  border-radius: var(--radius);
  background: var(--surface-warm);
  border: 1px solid #e8dcc6;
  transition: all var(--t-slow);
}
.puja-card:hover {
  transform: translateY(-4px);
  border-color: var(--gold);
  background: var(--surface);
  box-shadow: 0 12px 32px -18px rgba(224, 163, 37, 1);
}
.puja-card h4 { margin: 0 0 7px; font-family: var(--font-body); font-size: 15.5px; font-weight: 700; line-height: 1.3; }
.puja-card > p { margin: 0 0 14px; font-size: 13.5px; color: var(--ink-3); line-height: 1.6; flex: 1 1 auto; }
.puja-card__foot {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid #ece2cf;
}

/* ================= POPULAR ================= */
.popular-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: clamp(14px, 2vw, 18px);
}
.popular-card {
  display: flex;
  flex-direction: column;
  padding: 22px;
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: inherit;
  background: var(--maroon-800);
  border: 1px solid rgba(224, 163, 37, .32);
  box-shadow: 0 10px 30px -20px rgba(61, 17, 25, .9);
  transition: all var(--t-slow);
}
.popular-card:hover {
  color: inherit;
  transform: translateY(-5px);
  border-color: var(--gold);
  box-shadow: 0 18px 44px -20px rgba(224, 163, 37, .95);
}
.popular-card__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.popular-card__rank {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .05em;
  color: var(--gold-soft);
  padding: 5px 10px;
  border-radius: var(--radius-pill);
  background: rgba(224, 163, 37, .14);
}
.popular-card__rank svg { width: 12px; height: 12px; flex-shrink: 0; }
.popular-card__name {
  display: block;
  margin-top: 16px;
  font-family: var(--font-display);
  font-size: 18.5px;
  font-weight: 600;
  line-height: 1.22;
  color: var(--on-dark);
}
.popular-card__info {
  display: block;
  margin-top: 8px;
  font-size: 13.5px;
  color: rgba(255, 248, 240, .74);
  line-height: 1.6;
  flex: 1 1 auto;
}
.popular-card__foot {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: center;
  justify-content: space-between;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 248, 240, .16);
}
.popular-card__cta {
  font-size: 13px;
  font-weight: 700;
  color: var(--on-dark);
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.popular-card__cta svg { width: 14px; height: 14px; flex-shrink: 0; }

/* ================= FESTIVALS ================= */
.festival-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(228px, 1fr));
  gap: clamp(14px, 2vw, 18px);
}
.festival {
  position: relative;
  overflow: hidden;
  padding: 22px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid #e8dcc6;
  transition: all var(--t-slow);
}
.festival:hover {
  transform: translateY(-5px);
  border-color: var(--gold);
  box-shadow: 0 14px 40px -20px rgba(224, 163, 37, 1);
}
.festival::before {
  content: "";
  position: absolute;
  right: -30px;
  top: -30px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle, rgba(224, 163, 37, .22), rgba(224, 163, 37, 0) 68%);
}
.festival > * { position: relative; }
.festival__top { display: flex; align-items: center; gap: 12px; }
.festival__countdown {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--amber);
}
.festival h3 { margin: 16px 0 6px; font-size: 18.5px; line-height: 1.22; }
.festival__date {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  color: var(--ink-4);
  margin-bottom: 10px;
}
.festival__date svg { width: 14px; height: 14px; flex-shrink: 0; color: #a89e8c; }
.festival p { margin: 0 0 16px; font-size: 13.5px; color: var(--ink-3); line-height: 1.6; }

/* ================= ALL SERVICES ================= */
.all-services__controls {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-bottom: 18px;
}
.all-services__search { position: relative; flex: 1 1 260px; min-width: 0; }
.all-services__search input {
  width: 100%;
  padding: 13px 16px 13px 44px;
  min-height: 50px;
  border-radius: 14px;
  border: 1px solid rgba(238, 246, 242, .24);
  background: rgba(255, 253, 248, .96);
  color: var(--ink);
  font-size: 15px;
}
.all-services__search > span {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--ink-6);
  pointer-events: none;
  display: flex;
}
.all-services__search svg { width: 17px; height: 17px; }
.all-services__sort { position: relative; flex: 0 1 230px; min-width: 180px; }
.all-services__sort select {
  width: 100%;
  appearance: none;
  cursor: pointer;
  padding: 13px 42px 13px 44px;
  min-height: 50px;
  border-radius: 14px;
  border: 1px solid rgba(238, 246, 242, .24);
  background: rgba(255, 253, 248, .96);
  color: var(--ink);
  font-size: 14.5px;
}
.all-services__sort > span {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: var(--ink-5);
  pointer-events: none;
  display: flex;
}
.all-services__sort > span:first-of-type { left: 16px; }
.all-services__sort > span:last-of-type { right: 16px; }
.all-services__sort svg { width: 17px; height: 17px; }
.all-services__sort > span:last-of-type svg { width: 15px; height: 15px; }

.all-services__filters { display: flex; flex-wrap: wrap; gap: 8px 9px; margin-bottom: 24px; }

.all-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: clamp(12px, 1.8vw, 16px);
}
.all-card {
  display: flex;
  flex-direction: column;
  padding: 20px;
  border-radius: 18px;
  background: rgba(255, 253, 248, .06);
  border: 1px solid rgba(238, 246, 242, .16);
  backdrop-filter: blur(6px);
  transition: all var(--t-slow);
}
.all-card:hover {
  transform: translateY(-4px);
  border-color: rgba(224, 163, 37, .6);
  background: rgba(255, 253, 248, .1);
  box-shadow: 0 14px 36px -20px rgba(224, 163, 37, .9);
}
.all-card__top { display: flex; align-items: center; gap: 11px; }
.all-card__cat {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: rgba(238, 246, 242, .6);
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.all-card h3 { margin: 14px 0 7px; font-family: var(--font-body); font-size: 16px; font-weight: 700; line-height: 1.28; }
.all-card > p { margin: 0 0 14px; font-size: 13.5px; color: rgba(238, 246, 242, .72); line-height: 1.6; flex: 1 1 auto; }
.all-card__foot {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: center;
  justify-content: space-between;
  padding-top: 13px;
  border-top: 1px solid rgba(238, 246, 242, .16);
}
.all-card__foot small { display: block; font-size: 12px; color: rgba(238, 246, 242, .56); margin-top: 3px; }
.all-card__book {
  font-size: 12.5px;
  font-weight: 700;
  text-decoration: none;
  padding: 9px 14px;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: var(--radius-pill);
  background: var(--gold);
  color: var(--gold-ink);
  transition: all var(--t);
}
.all-card__book:hover { background: var(--gold-bright); color: var(--gold-ink); transform: translateY(-2px); }
.all-card__book svg { width: 13px; height: 13px; flex-shrink: 0; }
