@font-face {
  font-family: Poojan;
  src: url("assets/devanagari.woff") format("woff");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: Poojan;
  src: url("assets/devanagari-bold.woff") format("woff");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: Poojan Serif;
  src: url("assets/devanagari-display.woff") format("woff");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: Poojan Latin;
  src: url("assets/latin.woff") format("woff");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: Poojan Latin;
  src: url("assets/latin-bold.woff") format("woff");
  font-weight: 700;
  font-display: swap;
}

:root {
  --paper: #fffdf8;
  --cream: #fcf3e4;
  --cream-deep: #f8ecd6;
  --ink: #2e1a10;
  --muted: #6b5447;
  --rust: #b63a1a;
  --rust-dark: #8d2b15;
  --maroon: #491b12;
  --gold: #c38b49;
  --line: #ebd8c1;
  --display: "Poojan Serif", Poojan, Georgia, serif;
  --body: Poojan, "Poojan Latin", sans-serif;
  --shell: 1240px;
  --header: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 300px;
  background: var(--paper);
  color: var(--ink);
  font: 400 1rem/1.7 var(--body);
  -webkit-font-smoothing: antialiased;
}
main section { scroll-margin-top: calc(var(--header) + 16px); }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
button:not(:disabled) { cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #9a4b24; outline-offset: 4px; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.27; }
p { color: var(--muted); }
.shell { width: min(var(--shell), calc(100% - 96px)); margin-inline: auto; }
.sr-only, .skip-link:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip-link:focus { position: absolute; z-index: 10; top: 8px; left: 8px; padding: 8px 12px; background: white; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: var(--header);
  gap: 18px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; justify-self: start; }
.brand img { border-radius: 10px; flex-shrink: 0; }
.brand span { color: var(--maroon); font: 700 1.48rem/1.3 var(--display); padding-top: 4px; white-space: nowrap; }
.site-nav { display: flex; align-items: center; gap: clamp(20px, 3.2vw, 48px); }
.site-nav a { color: #533c2a; font-size: .96rem; font-weight: 700; padding: 8px 0; }
.site-nav a:hover, .footer-links a:hover { color: var(--rust); }
.header-app { justify-self: end; }
.menu-toggle, .site-nav .mobile-app-link { display: none; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 53px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.5;
  padding: 12px 22px 10px;
  text-align: center;
  transition: background .18s ease, color .18s ease, border-color .18s ease;
}
.button-primary { background: var(--rust); color: #fffaf2; }
.button-primary:hover { background: var(--rust-dark); }
.button-outline { border-color: #c99171; color: var(--rust-dark); background: transparent; }
.button-outline:hover { border-color: var(--rust); background: #f8e8d8; }
.button-compact { min-height: 42px; padding: 8px 17px 6px; font-size: .94rem; }
.button-ivory { background: #fff6e7; color: var(--maroon); }
.button-ivory:hover { background: #ffdfaa; }

.hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: radial-gradient(ellipse at 82% 46%, #efd5a8 0%, rgba(250, 231, 189, .45) 35%, transparent 67%), var(--cream);
  border-bottom: 1px solid var(--line);
}
.hero-inner {
  min-height: 595px;
  padding: 52px 0 60px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(18px, 4.5vw, 74px);
  align-items: center;
}
.hero-copy { padding: 4px 0 0; }
.hero-mark { display: flex; gap: 13px; align-items: center; color: var(--rust); margin-bottom: 12px; }
.hero-mark span:first-child { width: 33px; }
.hero-mark span:last-child { width: 52px; }
.hero-mark span { height: 1px; background: #b6804d; }
.hero-mark b { font: 700 1.66rem/1.3 var(--display); }
.hero h1 { font-size: clamp(3.35rem, 6.15vw, 6rem); letter-spacing: -.025em; line-height: 1.24; }
.hero h1 em { font-style: normal; color: var(--rust-dark); }
.hero p { margin-top: 16px; max-width: 450px; font-size: clamp(1.05rem, 1.6vw, 1.24rem); line-height: 1.66; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 27px; }
.hero-visual { position: relative; height: clamp(380px, 36vw, 513px); margin: 9px 17px 4px 5px; }
.arch-photo, .arch-outline {
  position: absolute;
  border-radius: 48% 48% 15px 15px / 36% 36% 15px 15px;
}
.arch-photo { inset: 0; overflow: hidden; background: #6f3d22; box-shadow: 0 24px 52px rgba(68, 35, 17, .2); }
.arch-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }
.arch-outline { inset: -14px -14px 14px 14px; border: 1px solid #b78348; }
.hero-visual::before {
  content: "";
  position: absolute;
  inset: -24px -50px 18px 34px;
  border: 1px solid rgba(160, 104, 48, .32);
  border-radius: 49% 49% 17px 17px / 35% 35% 17px 17px;
}
.hero-diya {
  position: absolute;
  bottom: 21px;
  left: -25px;
  width: 85px;
  height: 85px;
  padding: 7px;
  border-radius: 50%;
  background: #fff4d3;
  border: 1px solid #bb7f38;
  box-shadow: 0 8px 21px #4b2a1240;
}
.hero-diya img { width: 100%; height: 100%; border-radius: 50%; }

.section { padding: 64px 0; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 25px; }
.section-head h2, .app-copy h2 { font-size: clamp(1.9rem, 3.5vw, 3.35rem); letter-spacing: -.012em; }
.section-head p { margin-top: 8px; font-size: 1.04rem; }
.section-icon { width: 58px; height: 58px; border-radius: 11px; flex: 0 0 auto; }
.temple-grid { display: grid; grid-template-columns: 1.28fr 1fr 1fr; gap: 17px; }
.temple-card {
  position: relative;
  isolation: isolate;
  min-height: 318px;
  display: flex;
  align-items: end;
  border-radius: 15px;
  overflow: hidden;
  background: #6c432f;
  color: #fff8ea;
}
.temple-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: scale .35s ease; }
.temple-card:hover img { scale: 1.04; }
.temple-feature img { object-position: 42% center; }
.temple-kashi img { object-position: 55% 38%; }
.temple-om img { object-position: 50% 43%; }
.temple-card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, #1a0c0900 24%, #23100c3c 50%, #1c0b08ec 100%); }
.temple-copy { padding: 23px 23px 24px; }
.temple-copy h3 { margin: 6px 0 14px; font-size: clamp(1.34rem, 2.42vw, 2.3rem); }
.temple-city { font-size: .91rem; color: #fbe6ce; font-weight: 700; }

.puja-section { background: #faf0df; border-block: 1px solid var(--line); }
.filters { display: flex; flex-wrap: wrap; gap: 7px; align-items: center; max-width: 100%; }
.filter {
  border: 1px solid #e1c6a8;
  background: #fff9ef;
  color: #66452e;
  padding: 7px 14px 5px;
  min-height: 42px;
  border-radius: 25px;
  font-weight: 700;
  font-size: .93rem;
  white-space: nowrap;
  transition: background-color .16s ease, border-color .16s ease;
}
.filter:hover { border-color: var(--rust); }
.filter[aria-pressed="true"] { background: var(--maroon); color: #fff7e9; border-color: var(--maroon); }
.offering-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.offering-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: var(--paper);
  border: 1px solid #ead9c2;
  border-radius: 13px;
  overflow: hidden;
}
.offering-card > img { width: 100%; height: clamp(153px, 15.5vw, 207px); object-fit: cover; object-position: center; }
.offering-card:nth-child(2) > img, .offering-card:nth-child(4) > img { object-position: center 35%; }
.card-body { display: flex; flex: 1; flex-direction: column; align-items: start; padding: 17px 20px 20px; }
.card-tag { color: var(--rust-dark); font-size: .87rem; font-weight: 700; }
.card-body h3 { margin: 4px 0 6px; font-size: 1.6rem; }
.card-body p { margin-bottom: 11px; }
.text-button {
  min-height: 38px;
  color: var(--rust-dark);
  background: transparent;
  border: 0;
  padding: 0;
  font-weight: 700;
  text-align: left;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: #cfa28b;
}
.text-button:hover { color: var(--rust); text-decoration-color: currentColor; }
.card-body .text-button { margin-top: auto; }

.shop-section { padding-bottom: 57px; }
.shop-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; }
.shop-card {
  display: grid;
  grid-template-columns: 116px minmax(0,1fr);
  align-items: center;
  gap: 15px;
  min-height: 126px;
  padding: 11px;
  background: #fff9ef;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.shop-card img { width: 116px; height: 99px; border-radius: 7px; object-fit: cover; }
.shop-card h3 { font-size: clamp(1.12rem, 1.65vw, 1.48rem); line-height: 1.4; }
.shop-card .text-button { font-size: .91rem; }

.app-section { padding-top: 0; }
.app-panel {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(0, .92fr);
  align-items: center;
  min-height: 411px;
  padding: 40px clamp(30px, 6vw, 87px);
  overflow: hidden;
  border-radius: 20px;
  color: #fff8ed;
  background: radial-gradient(ellipse at 80% 45%, #924521 0%, #6a2c17 50%, var(--maroon) 85%);
}
.app-panel::before, .app-panel::after { content: ""; position: absolute; right: 7%; top: 48%; transform: translateY(-50%); width: min(40vw, 468px); aspect-ratio: 1; border: 1px solid #f5a95c65; border-radius: 50%; z-index: -1; }
.app-panel::after { right: 3%; width: min(47vw, 566px); border-color: #f5a95c2e; }
.app-brand { margin-bottom: 16px; border-radius: 12px; }
.app-copy h2 { color: #fff6e8; line-height: 1.32; }
.app-copy p { color: #ffebd6; margin-top: 11px; max-width: 405px; font-size: 1.08rem; }
.app-controls { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 23px; }
.app-tab { min-height: 42px; padding: 7px 13px 5px; border: 1px solid #c78962; border-radius: 7px; background: transparent; color: #fff5e6; font-weight: 700; font-size: .92rem; }
.app-tab:hover, .app-tab[aria-pressed="true"] { background: #fee7c8; color: var(--maroon); border-color: #fee7c8; }
.app-tab:focus-visible { outline-color: #ffcc86; }

.phone-stage { display: grid; place-items: center; }
.phone {
  width: min(100%, 244px);
  padding: 8px;
  background: #2d1816;
  border: 1px solid #e3a879;
  box-shadow: 11px 16px 35px #31140969;
  border-radius: 28px;
}
.phone-screen { min-height: 323px; display: flex; flex-direction: column; padding: 14px 11px 9px; background: #fcf1dd; color: var(--ink); border-radius: 21px; }
.phone-head { display: flex; align-items: center; gap: 6px; margin-bottom: 8px; color: var(--maroon); font: 700 .97rem/1.5 var(--display); }
.phone-head img { border-radius: 5px; }
.phone-view { flex: 1; font-size: .86rem; }
.phone-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 6px; margin: 8px 0 11px; }
.phone-grid span { display: grid; justify-items: center; align-content: start; gap: 2px; min-width: 0; padding: 3px; border: 1px solid #f0dfc0; border-radius: 7px; background: #fff7e7; font-size: .66rem; line-height: 1.45; text-align: center; }
.phone-grid img { width: 32px; height: 32px; border-radius: 6px; }
.phone-feature { position: relative; overflow: hidden; border-radius: 6px; height: 76px; background: #4c2119; }
.phone-feature img { width: 100%; height: 100%; object-fit: cover; object-position: center 34%; opacity: .76; }
.phone-feature span { position: absolute; bottom: 6px; left: 7px; padding: 2px 5px; border-radius: 4px; background: #261009c0; color: #fff9ed; font-size: .73rem; font-weight: 700; }
.phone-list { display: grid; gap: 7px; margin-top: 10px; }
.phone-list > div { display: flex; gap: 7px; align-items: center; padding: 4px; border-radius: 7px; background: #fff9ef; border: 1px solid #f0dec5; font-weight: 700; font-size: .78rem; line-height: 1.5; min-height: 53px; }
.phone-list img { width: 47px; height: 40px; border-radius: 5px; object-fit: cover; }
.phone-list small { display: block; color: var(--muted); font-size: .64rem; font-weight: 400; }
.phone-bottom { display: flex; justify-content: center; padding-top: 11px; }
.phone-bottom span { width: 65px; height: 4px; border-radius: 8px; background: #725043; }

.site-footer { border-top: 1px solid var(--line); background: #faf0df; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 20px; min-height: 93px; padding: 16px 0; }
.footer-inner .brand span { font-size: 1.23rem; }
.footer-links { display: flex; gap: clamp(12px, 3vw, 28px); align-items: center; flex-wrap: wrap; color: #654635; font-size: .91rem; font-weight: 700; }

.info-dialog {
  border: 1px solid #dbb788;
  border-radius: 17px;
  padding: 0;
  max-width: min(690px, calc(100vw - 28px));
  max-height: min(85dvh, 690px);
  color: var(--ink);
  background: var(--paper);
  box-shadow: 0 24px 60px #321a154f;
}
.info-dialog::backdrop { background: #2b1810b0; backdrop-filter: blur(4px); }
.dialog-inner { position: relative; display: grid; grid-template-columns: .85fr 1.15fr; min-width: 0; }
.dialog-image { width: 100%; height: 100%; min-height: 330px; object-fit: cover; }
.dialog-close {
  position: absolute;
  z-index: 1;
  top: 9px;
  right: 9px;
  border: 1px solid #d7ba98;
  background: #fff8ed;
  color: var(--maroon);
  border-radius: 8px;
  width: 38px;
  height: 38px;
  padding: 0;
  font-size: 1.45rem;
  line-height: 1;
}
.dialog-copy { padding: 31px 23px 24px; }
.dialog-copy h2 { margin: 4px 0 12px; font-size: clamp(1.65rem, 3vw, 2.25rem); }
.dialog-copy h3 { font-size: 1.14rem; margin-top: 15px; }
.dialog-copy ul { padding-left: 1.15rem; margin: 6px 0 16px; color: var(--muted); }
.dialog-copy li { margin-top: 6px; }
.credits-dialog .dialog-inner { display: block; }
.credits-dialog .dialog-copy { max-width: 600px; padding-right: 52px; }
.credits-dialog a { color: var(--rust-dark); text-decoration: underline; text-underline-offset: 4px; }

@media (max-width: 1050px) {
  .shell { width: calc(100% - 64px); }
  .hero-inner { min-height: 510px; padding: 49px 0 54px; gap: 29px; }
  .hero-visual { height: 420px; margin-inline: 6px 14px; }
  .temple-copy { padding: 18px; }
  .temple-card { min-height: 294px; }
  .shop-card { grid-template-columns: 91px minmax(0,1fr); gap: 12px; min-height: 112px; }
  .shop-card img { width: 91px; height: 84px; }
}

@media (max-width: 760px) {
  :root { --header: 64px; }
  .shell { width: calc(100% - 36px); }
  .header-inner { display: flex; justify-content: space-between; gap: 12px; }
  .brand img { width: 40px; height: 40px; }
  .brand span { font-size: 1.32rem; }
  .header-app { display: none; }
  .menu-toggle { display: grid; place-items: center; width: 46px; height: 43px; border: 1px solid var(--line); border-radius: 8px; background: #fff8eb; color: var(--maroon); }
  .menu-lines { width: 18px; display: grid; gap: 5px; }
  .menu-lines i { display: block; height: 2px; background: currentColor; border-radius: 2px; }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fffaf0; border-bottom: 1px solid var(--line); padding: 7px 18px 12px; box-shadow: 0 13px 17px #45322319; }
  .site-nav[data-open="true"] { display: grid; gap: 0; }
  .site-nav a, .site-nav .mobile-app-link { display: block; padding: 10px 0; }
  .site-nav a + a { border-top: 1px solid #eddec9; }

  .hero-inner { min-height: auto; grid-template-columns: 1fr; gap: 37px; padding: 42px 0 32px; }
  .hero-visual { height: clamp(292px, 77vw, 465px); margin: 0 11px 0 10px; }
  .hero-visual::before { display: none; }
  .arch-outline { inset: -8px -9px 10px 10px; }
  .hero h1 { font-size: clamp(3rem, 10vw, 4.25rem); line-height: 1.22; }
  .hero p { margin-top: 12px; }
  .hero-actions { margin-top: 19px; }
  .hero-mark { margin-bottom: 9px; }
  .hero-diya { left: -14px; bottom: 13px; width: 62px; height: 62px; padding: 5px; }
  .section { padding: 40px 0; }
  .section-head { margin-bottom: 19px; gap: 10px; }
  .section-head h2, .app-copy h2 { font-size: clamp(1.84rem, 6.7vw, 2.6rem); }
  .section-head p { font-size: .99rem; margin-top: 6px; }
  .section-icon { width: 42px; height: 42px; align-self: start; }
  .temple-grid { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }
  .temple-feature { grid-column: 1 / -1; }
  .temple-card { min-height: 220px; }
  .temple-copy h3 { font-size: 1.4rem; margin: 4px 0 11px; }
  .temple-city { font-size: .8rem; }
  .puja-heading { align-items: start; flex-direction: column; gap: 13px; }
  .offering-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 11px; }
  .offering-card > img { height: clamp(128px, 27vw, 172px); }
  .card-body { padding: 13px; }
  .card-body h3 { font-size: 1.35rem; }
  .card-body p { font-size: .92rem; }
  .shop-grid { grid-template-columns: 1fr; gap: 10px; }
  .shop-card { grid-template-columns: 95px minmax(0,1fr); }
  .shop-card h3 { font-size: 1.33rem; }
  .app-section { padding-top: 0; }
  .app-panel { grid-template-columns: 1fr; gap: 26px; padding: 28px 19px 24px; }
  .app-panel::before, .app-panel::after { top: auto; bottom: 0; right: 50%; transform: translateX(50%); width: min(70vw,440px); }
  .app-panel::after { bottom: -25px; width: min(86vw,500px); }
  .app-copy p { font-size: 1rem; }
  .app-controls { margin-top: 15px; }
  .footer-inner { flex-wrap: wrap; gap: 8px 16px; }
}

@media (max-width: 465px) {
  .temple-grid { grid-template-columns: 1fr; }
  .temple-card { min-height: 222px; }
  .temple-feature { grid-column: auto; min-height: 242px; }
  .temple-copy { padding: 16px 17px; }
  .temple-copy h3 { font-size: 1.63rem; }
  .offering-grid { grid-template-columns: 1fr; }
  .offering-card > img { height: 170px; }
  .card-body { padding: 13px 15px 14px; }
  .card-body p { font-size: .99rem; }
  .hero-actions .button { padding-inline: 14px; font-size: .93rem; }
  .filter { padding-inline: 11px; }
  .dialog-inner { grid-template-columns: 1fr; }
  .dialog-image { min-height: 0; height: 165px; }
  .dialog-copy { padding: 17px 15px 19px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
