:root {
  color-scheme: light;
  --primary: #ff6b35;
  --primary-pressed: #e65424;
  --coral: #ff7e5f;
  --indigo: #1e2a78;
  --text: #172554;
  --secondary: #64748b;
  --muted: #94a3b8;
  --border: #e2e8f0;
  --divider: #eef2f6;
  --surface: #f8fafc;
  --peach: #fff0e8;
  --teal: #14b8a6;
  --teal-light: #e5f8f5;
  --indigo-light: #eef1ff;
  --warning: #f59e0b;
  --success: #087f72;
  --heading: "Poppins", "Segoe UI", sans-serif;
  --body: "Inter", "Segoe UI", sans-serif;
  --shadow: 0 4px 16px rgba(30, 42, 120, 0.05);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  background: #ffffff;
  color: var(--text);
  font-family: var(--body);
  font-size: 15px;
  line-height: 1.55;
}

button,
input,
select {
  font: inherit;
}

button,
a,
select {
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

:focus-visible {
  outline: 3px solid rgba(255, 107, 53, 0.4);
  outline-offset: 3px;
}

::selection {
  background: var(--peach);
  color: var(--text);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  font-family: var(--heading);
  font-weight: 600;
  letter-spacing: -0.035em;
}

h1 em,
h2 em {
  color: var(--primary);
  font-style: normal;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: 72px;
  padding: 0 clamp(20px, 5vw, 72px);
  display: flex;
  align-items: center;
  gap: 32px;
  background: #ffffff;
  border-bottom: 1px solid var(--divider);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.brand-mark {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  color: var(--primary);
}

.brand-mark svg {
  width: 100%;
  height: 100%;
}

.brand-name {
  color: var(--indigo);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.05em;
}

.brand-name strong {
  font-weight: 700;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 32px;
  margin-left: auto;
}

.main-nav a,
.site-footer nav a {
  color: var(--secondary);
  font-size: 14px;
  font-weight: 500;
}

.main-nav a:hover,
.site-footer nav a:hover {
  color: var(--primary);
}

.menu-toggle {
  display: none;
}

.button {
  min-height: 46px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid transparent;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  cursor: pointer;
  transition:
    background-color 0.18s ease,
    border-color 0.18s ease,
    transform 0.18s ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button span {
  font-size: 18px;
  line-height: 1;
}

.button-primary {
  background: var(--primary);
  color: #ffffff;
}

.button-primary:hover {
  background: var(--primary-pressed);
}

.header-cta {
  min-height: 42px;
  margin-left: 4px;
  padding-inline: 16px;
}

.section {
  width: min(1180px, calc(100% - 48px));
  margin-inline: auto;
}

.hero {
  padding-top: 48px;
  padding-bottom: 44px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.82fr);
  align-items: center;
  gap: clamp(36px, 6vw, 80px);
}

.hero-copy {
  max-width: 590px;
}

.eyebrow {
  margin-bottom: 12px;
  color: var(--primary);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.hero h1 {
  max-width: 570px;
  margin-bottom: 16px;
  color: var(--indigo);
  font-size: clamp(36px, 4.3vw, 52px);
  line-height: 1.18;
}

.hero-intro {
  max-width: 500px;
  margin-bottom: 22px;
  color: var(--secondary);
  font-size: 16px;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.text-link {
  color: var(--indigo);
  font-size: 14px;
  font-weight: 600;
}

.text-link:hover {
  color: var(--primary);
}

.hero-search {
  padding: 24px;
  display: grid;
  gap: 14px;
  background: var(--peach);
  border: 1px solid #ffe2d5;
  border-radius: 20px;
}

.search-heading {
  display: grid;
  gap: 3px;
  margin-bottom: 2px;
}

.search-heading strong {
  color: var(--indigo);
  font-family: var(--heading);
  font-size: 20px;
  font-weight: 600;
}

.search-heading > span {
  color: var(--secondary);
  font-size: 14px;
}

.search-field,
.form-field {
  display: grid;
  gap: 6px;
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
}

.search-field input,
.search-field select,
.form-field input,
.form-field select {
  width: 100%;
  min-height: 46px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #ffffff;
  color: var(--text);
  font-size: 14px;
  font-weight: 400;
}

.search-field input::placeholder,
.form-field input::placeholder {
  color: var(--muted);
}

.search-button {
  width: 100%;
  margin-top: 2px;
}

.ceremonies-section {
  padding-top: 20px;
  padding-bottom: 60px;
}

.section-heading {
  margin-bottom: 22px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
}

.section-heading .eyebrow {
  margin-bottom: 4px;
}

.section-heading h2,
.pandit-heading h2 {
  margin-bottom: 0;
  color: var(--indigo);
  font-size: clamp(24px, 3vw, 30px);
  line-height: 1.3;
}

.section-aside {
  max-width: 310px;
  margin: 0 0 3px;
  color: var(--secondary);
  font-size: 14px;
}

.ceremony-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.ceremony-card {
  min-height: 214px;
  padding: 20px 16px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #ffffff;
  text-align: center;
  cursor: pointer;
  transition:
    box-shadow 0.18s ease,
    border-color 0.18s ease,
    transform 0.18s ease;
}

.ceremony-card:hover {
  transform: translateY(-2px);
  border-color: #ffd2bf;
  box-shadow: var(--shadow);
}

.ceremony-art {
  width: 104px;
  height: 104px;
  margin-bottom: 2px;
  border: 1.5px solid #f0c66b;
  border-radius: 50%;
  background-image: url("assets/ceremony-symbols.png");
  background-repeat: no-repeat;
  background-size: 300% 200%;
  background-color: #fff0dc;
}

.artwork-home {
  background-position: 0% 0%;
}

.artwork-puja {
  background-position: 50% 0%;
}

.artwork-wedding {
  background-position: 100% 0%;
}

.artwork-naming {
  background-position: 0% 100%;
}

.ceremony-title {
  color: var(--indigo);
  font-family: var(--heading);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.35;
}

.ceremony-link {
  color: var(--success);
  font-size: 13px;
  font-weight: 600;
}

.ceremony-link span {
  color: var(--primary);
  font-size: 16px;
}

.pandit-section {
  padding: 52px 0 56px;
  background: var(--surface);
}

.pandit-inner {
  padding: 0;
}

.pandit-heading {
  margin-bottom: 20px;
}

.filter-bar {
  margin-bottom: 16px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #ffffff;
}

.filter-title {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex: 0 0 auto;
}

.filter-title strong {
  color: var(--indigo);
  font-family: var(--heading);
  font-size: 16px;
  font-weight: 600;
}

.filter-title span {
  color: var(--secondary);
  font-size: 13px;
}

.filters {
  display: flex;
  align-items: center;
  gap: 8px;
}

.filter-select select,
.filter-city {
  min-height: 40px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  color: var(--secondary);
  font-size: 13px;
}

.filter-select select {
  min-width: 142px;
  padding: 0 28px 0 10px;
  cursor: pointer;
}

.filter-city {
  padding: 0 10px;
  display: flex;
  align-items: center;
}

.filter-city input {
  width: 92px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font-size: 13px;
}

.filter-city input::placeholder {
  color: var(--muted);
}

.saved-toggle {
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #ffffff;
  color: var(--secondary);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
}

.saved-toggle[aria-pressed="true"] {
  border-color: var(--primary);
  background: var(--peach);
  color: var(--primary-pressed);
}

.pandit-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.pandit-card {
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #ffffff;
}

.pandit-card[hidden] {
  display: none;
}

.profile-header {
  min-width: 0;
  margin-bottom: 12px;
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) 36px;
  align-items: center;
  gap: 10px;
}

.profile-avatar {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--peach);
  color: var(--primary);
}

.profile-avatar svg {
  width: 28px;
  height: 28px;
  stroke: currentColor;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.profile-header h3 {
  margin-bottom: 2px;
  color: var(--indigo);
  font-size: 16px;
  line-height: 1.35;
}

.profile-location {
  margin-bottom: 0;
  color: var(--secondary);
  font-size: 13px;
}

.save-button {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: #ffffff;
  color: var(--secondary);
  font-size: 19px;
  line-height: 1;
  cursor: pointer;
}

.save-button.is-saved {
  border-color: #ffd2bf;
  background: var(--peach);
  color: var(--primary);
}

.profile-description {
  min-height: 48px;
  margin-bottom: 12px;
  color: var(--secondary);
  font-size: 14px;
  line-height: 1.55;
}

.language-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.language-tags span {
  padding: 4px 9px;
  border-radius: 999px;
  background: var(--surface);
  color: var(--secondary);
  font-size: 12px;
}

.profile-bottom {
  margin-top: 14px;
  padding-top: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-top: 1px solid var(--divider);
}

.profile-fit {
  color: var(--secondary);
  font-size: 12px;
}

.button-outline {
  min-height: 38px;
  padding: 0 13px;
  border-color: var(--teal);
  background: #ffffff;
  color: var(--success);
  font-size: 13px;
}

.button-outline:hover {
  background: var(--teal-light);
}

.empty-state {
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #ffffff;
  text-align: center;
}

.empty-state[hidden] {
  display: none;
}

.empty-state h3 {
  margin-bottom: 6px;
  color: var(--indigo);
  font-size: 18px;
}

.empty-state p {
  margin-bottom: 14px;
  color: var(--secondary);
  font-size: 14px;
}

.site-footer {
  padding: 22px max(24px, calc((100% - 1180px) / 2));
  background: #ffffff;
}

.footer-main {
  padding-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 22px;
}

.site-footer nav {
  margin-left: auto;
  display: flex;
  gap: 20px;
}

.footer-cta {
  min-height: 40px;
}

.footer-bottom {
  padding-top: 12px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid var(--divider);
  color: var(--secondary);
  font-size: 12px;
}

.booking-dialog {
  width: min(560px, calc(100% - 24px));
  max-width: 560px;
  max-height: calc(100vh - 24px);
  padding: 28px;
  position: relative;
  overflow-y: auto;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: #ffffff;
  color: var(--text);
  box-shadow: 0 16px 48px rgba(30, 42, 120, 0.14);
}

.booking-dialog::backdrop {
  background: rgba(23, 37, 84, 0.28);
  backdrop-filter: blur(2px);
}

.dialog-close {
  width: 36px;
  height: 36px;
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: var(--surface);
  color: var(--secondary);
  font-size: 23px;
  cursor: pointer;
}

.booking-dialog h2 {
  max-width: 430px;
  margin-bottom: 8px;
  color: var(--indigo);
  font-size: 26px;
  line-height: 1.3;
}

.dialog-copy {
  margin-bottom: 18px;
  color: var(--secondary);
  font-size: 14px;
}

#booking-form {
  display: grid;
  gap: 12px;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.place-field {
  min-width: 0;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  border: 0;
}

.place-field legend {
  grid-column: 1 / -1;
  margin-bottom: 2px;
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
}

.place-option {
  min-height: 44px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #ffffff;
  color: var(--secondary);
  font-size: 13px;
  cursor: pointer;
}

.place-option:has(input:checked) {
  border-color: var(--primary);
  background: var(--peach);
  color: var(--text);
}

.place-option input {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--primary);
}

.dialog-submit {
  width: 100%;
  margin-top: 2px;
}

.booking-success {
  padding: 24px 8px 8px;
  text-align: center;
}

.booking-success[hidden] {
  display: none;
}

.success-mark {
  width: 48px;
  height: 48px;
  margin: 0 auto 16px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--teal-light);
  color: var(--success);
  font-size: 24px;
}

.booking-success .eyebrow {
  justify-content: center;
}

.booking-success h2 {
  margin-inline: auto;
}

.booking-success > p:not(.eyebrow) {
  color: var(--secondary);
  font-size: 14px;
}

.toast {
  position: fixed;
  z-index: 30;
  left: 50%;
  bottom: 18px;
  max-width: calc(100vw - 32px);
  padding: 11px 16px;
  transform: translate(-50%, 14px);
  border-radius: 12px;
  background: var(--primary);
  box-shadow: var(--shadow);
  color: #ffffff;
  font-size: 14px;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.18s ease,
    transform 0.18s ease;
}

.toast.show {
  transform: translate(-50%, 0);
  opacity: 1;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 980px) {
  .hero {
    grid-template-columns: minmax(0, 1fr) minmax(300px, 0.9fr);
    gap: 32px;
  }

  .filter-bar {
    align-items: flex-start;
    flex-direction: column;
  }

  .filters {
    width: 100%;
    flex-wrap: wrap;
  }

  .pandit-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  html {
    scroll-padding-top: 74px;
  }

  .site-header {
    min-height: 64px;
    padding-inline: 20px;
    gap: 12px;
  }

  .brand-mark {
    width: 32px;
    height: 32px;
  }

  .brand-name {
    font-size: 18px;
  }

  .menu-toggle {
    width: 38px;
    height: 38px;
    margin-left: auto;
    padding: 8px;
    display: grid;
    align-content: center;
    gap: 5px;
    border: 0;
    background: transparent;
    cursor: pointer;
  }

  .menu-toggle span {
    width: 22px;
    height: 2px;
    border-radius: 2px;
    background: var(--indigo);
  }

  .main-nav {
    display: none;
    position: absolute;
    top: 63px;
    right: 0;
    left: 0;
    padding: 14px 20px 18px;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    border-bottom: 1px solid var(--border);
    background: #ffffff;
    box-shadow: var(--shadow);
  }

  .main-nav.open {
    display: flex;
  }

  .header-cta {
    min-height: 40px;
    margin: 0;
    padding-inline: 12px;
    font-size: 13px;
  }

  .hero {
    width: min(100% - 40px, 580px);
    padding-top: 36px;
    padding-bottom: 30px;
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .hero h1 {
    font-size: clamp(32px, 9vw, 42px);
  }

  .hero-intro {
    margin-bottom: 18px;
    font-size: 15px;
  }

  .hero-search {
    padding: 18px;
    border-radius: 16px;
  }

  .ceremonies-section {
    padding-top: 10px;
    padding-bottom: 40px;
  }

  .section-heading {
    margin-bottom: 16px;
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }

  .section-aside {
    font-size: 13px;
  }

  .ceremony-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .ceremony-card {
    min-height: 188px;
    padding: 14px 10px 12px;
    gap: 6px;
  }

  .ceremony-art {
    width: 84px;
    height: 84px;
  }

  .ceremony-title {
    font-size: 14px;
  }

  .ceremony-link {
    font-size: 12px;
  }

  .pandit-section {
    padding: 38px 0 40px;
  }

  .pandit-heading {
    margin-bottom: 14px;
  }

  .filter-bar {
    padding: 12px;
    gap: 10px;
  }

  .filter-title {
    align-items: center;
    gap: 8px;
  }

  .filters {
    gap: 7px;
  }

  .filter-select {
    flex: 1 1 42%;
  }

  .filter-select select {
    width: 100%;
    min-width: 0;
  }

  .filter-city {
    flex: 1 1 42%;
  }

  .filter-city input {
    width: 100%;
    min-width: 0;
  }

  .saved-toggle {
    flex: 1 1 auto;
  }

  .pandit-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .pandit-card {
    padding: 14px;
  }

  .profile-description {
    min-height: 0;
  }

  .site-footer {
    padding: 20px;
  }

  .footer-main {
    flex-wrap: wrap;
    gap: 12px;
  }

  .site-footer nav {
    margin-left: auto;
    gap: 14px;
  }

  .footer-cta {
    min-height: 40px;
  }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .booking-dialog {
    padding: 24px 18px 18px;
    border-radius: 18px;
  }

  .booking-dialog h2 {
    padding-right: 20px;
    font-size: 23px;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .place-field {
    gap: 6px;
  }

  .place-option {
    padding-inline: 8px;
    font-size: 12px;
  }
}

@media (max-width: 420px) {
  .site-header {
    padding-inline: 14px;
  }

  .brand-name {
    font-size: 16px;
  }

  .header-cta {
    gap: 5px;
    padding-inline: 9px;
    font-size: 12px;
  }

  .hero-actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .section {
    width: calc(100% - 28px);
  }

  .hero {
    width: calc(100% - 28px);
  }

  .section-aside {
    margin-top: 2px;
  }

  .profile-header {
    grid-template-columns: 52px minmax(0, 1fr) 34px;
    gap: 8px;
  }

  .profile-avatar {
    width: 52px;
    height: 52px;
  }

  .profile-bottom {
    align-items: flex-start;
    flex-direction: column;
  }

  .profile-bottom .button {
    width: 100%;
  }

  .place-field {
    grid-template-columns: 1fr;
  }
}
