/* Inner pages. Built only from the tokens in site.css; no new colours. */

/* ---------- Page top: nav, the page's name at display size, one picture ---------- */
.page-top { background: var(--ground); padding: 0 var(--m) var(--gap); }
.page-top .bar { animation: none; }
.top-grid { display: grid; grid-template-columns: 7fr 5fr; gap: 32px; align-items: end; padding-top: clamp(40px, 7vw, 110px); }
.top-grid h1 { font: 400 var(--step-giant)/0.92 var(--display); letter-spacing: -0.035em; text-wrap: balance; max-width: 9ch; }
.top-grid h1 [lang="bn"] { display: block; margin-top: 0.18em; font-size: 0.42em; letter-spacing: 0; color: var(--marigold); }
.top-lead { margin-top: clamp(24px, 3vw, 40px); font-size: var(--step-lead); line-height: 1.3; max-width: 26ch; color: var(--soft); }
.top-lead b { font-weight: 400; color: var(--cream); }
.top-actions { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; }
.top-pic.arch { margin: 0; grid-column: auto; align-self: end; } /* .arch alone pins columns 1-5 on the home grid */
.top-pic .arch-clip { height: min(60svh, 560px); min-height: 360px; }
.top-pic .arch-clip img { opacity: 1; }
.top-pic figcaption { margin-top: 28px; font-size: var(--step-small); color: var(--soft); max-width: 40ch; }
.bar a[aria-current="page"]::after { transform: none; }

/* ---------- Generic section on a field ---------- */
.sec { padding: var(--gap) var(--m); }
.sec-field { background: var(--field); }
.sec-wine { background: var(--wine); }
.sec-cream { background: var(--cream); color: var(--ink); }
.sec-head { display: grid; grid-template-columns: 7fr 5fr; gap: 32px; align-items: end; margin-bottom: clamp(48px, 6vw, 88px); }
.sec-head p { font-size: var(--step-lead); line-height: 1.3; max-width: 30ch; }
.sec-cream .sec-head p { color: var(--ink-soft); }

/* ---------- Services: a price list, not cards ---------- */
.price-list li { display: grid; grid-template-columns: 5fr 5fr 2fr; gap: 32px; align-items: baseline; padding: 36px 0; }
/* no lines between rows: every other row steps to paper */
.price-list li:nth-child(even) { background: var(--paper); margin: 0 calc(var(--m) * -1); padding-left: var(--m); padding-right: var(--m); }
.price-list h2 { font: 400 clamp(1.75rem, 1.1rem + 1.9vw, 3rem)/1 var(--display); letter-spacing: -0.02em; }
.price-list h2 a { text-decoration: none; transition: color 250ms ease; }
.price-list h2 [lang="bn"] { display: block; margin-top: 8px; font-size: 0.6em; color: var(--wine); }
.price-list p { font-size: var(--step-body); line-height: 1.45; max-width: 46ch; }
.price-list .fee { text-align: right; }
.price-list .fee b { display: block; font: 400 clamp(1.75rem, 1.2rem + 1.4vw, 2.75rem)/1 var(--display); letter-spacing: -0.02em; }
.price-list .fee span { display: block; margin-top: 8px; font-size: var(--step-small); color: var(--ink-soft); }
@media (hover: hover) and (pointer: fine) { .price-list h2 a:hover { color: var(--wine); } }

/* Core services: what the practice does, no prices. Three across, text only. */
.core { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(32px, 4vw, 56px) 32px; }
.core h3 { font: 400 clamp(1.5rem, 1.1rem + 1.1vw, 2.25rem)/1.05 var(--display); letter-spacing: -0.02em; color: var(--marigold); }
.core p { margin-top: 14px; font-size: var(--step-body); line-height: 1.45; max-width: 36ch; }

/* ---------- Facts block (service detail, contact) ---------- */
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 14px 40px; font-size: var(--step-body); }
.facts dt { color: var(--soft); }
.sec-cream .facts dt { color: var(--ink-soft); }
.split { display: grid; grid-template-columns: repeat(12, 1fr); gap: 32px; }
.split > :first-child { grid-column: 1 / 7; }
.split > :last-child { grid-column: 8 / 13; }
.prose { font-size: var(--step-body); line-height: 1.6; max-width: 62ch; }
.prose > * + * { margin-top: 1em; }
.prose h2 { font-size: clamp(1.75rem, 1.2rem + 1.5vw, 2.75rem); margin-top: 1.6em; }
.prose h3 { font: 400 1.5rem/1.15 var(--display); margin-top: 1.4em; }
.prose ul { list-style: disc; padding-left: 1.2em; }
.prose ol { list-style: decimal; padding-left: 1.4em; }
.prose a { color: inherit; text-underline-offset: 4px; }
.empty-note { font-size: var(--step-lead); line-height: 1.3; max-width: 32ch; color: var(--soft); }
.sec-cream .empty-note { color: var(--ink-soft); }

/* ---------- Forms: the sky form's fields, everywhere ---------- */
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 16px; align-items: start; }
.form .full { grid-column: 1 / -1; }
.form label { display: grid; gap: 8px; font-size: var(--step-small); color: var(--soft); }
.form input, .form select, .form textarea {
  width: 100%; min-height: 52px; padding: 0 14px;
  font: 400 1rem/1.4 var(--text); color: var(--cream);
  background: var(--wine); border: 0; border-radius: 0; color-scheme: dark;
  transition: background-color 200ms ease;
}
.form textarea { padding: 14px; min-height: 140px; resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { background: var(--ground); }
.sec-wine .form input, .sec-wine .form select, .sec-wine .form textarea { background: var(--field); }
.form .err { color: var(--marigold); font-size: var(--step-small); }
.form [aria-invalid="true"] { box-shadow: inset 6px 0 0 var(--marigold); }
.form .btn { justify-self: start; }
.notice { padding: 20px 24px; background: var(--marigold); color: var(--ink); font-size: var(--step-body); margin-bottom: 32px; }

/* What happens next: a real ordered list, numbered by the browser, not by index labels */
.steps { margin-top: 48px; display: grid; gap: 28px; padding-left: 1.4em; list-style: decimal; font-size: var(--step-body); max-width: 40ch; }
.steps li::marker { font-family: var(--display); color: var(--marigold); }
.steps b { display: block; font: 400 1.5rem/1.15 var(--display); margin-bottom: 4px; }

/* ---------- Booking: big choices, then times as square chips ---------- */
.choices { display: grid; gap: 8px; }
.choice { display: grid; gap: 6px; padding: 24px 28px; background: var(--wine); text-decoration: none; transition: background-color 200ms ease, transform 140ms var(--ease-out); }
.sec:not(.sec-field):not(.sec-wine):not(.sec-cream) .choice { background: var(--field); }
.choice b { font: 400 clamp(1.5rem, 1.1rem + 1vw, 2rem)/1.1 var(--display); }
.choice span { font-size: var(--step-small); color: var(--soft); }
.choice[aria-current="true"] { background: var(--cream); color: var(--ink); }
.choice[aria-current="true"] span { color: var(--ink-soft); }
.choice:active { transform: scale(0.99); }
@media (hover: hover) and (pointer: fine) { .choice:not([aria-current="true"]):hover { background: var(--ground); } }
.times { border: 0; margin: 40px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.times legend { width: 100%; margin-bottom: 14px; font: 400 1.5rem/1.1 var(--display); }
.times label { position: relative; cursor: pointer; }
.times input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.times span { display: inline-grid; place-items: center; min-width: 108px; min-height: 52px; padding: 0 18px; background: var(--field); font-weight: 500; transition: background-color 200ms ease, color 200ms ease; }
.times input:checked + span { background: var(--marigold); color: var(--ink); }
.times input:focus-visible + span { outline: 3px solid var(--marigold); outline-offset: 3px; }
@media (hover: hover) and (pointer: fine) { .times label:hover input:not(:checked) + span { background: var(--ground); } }

/* ---------- Kundli ---------- */
.chart-box { margin-top: 32px; max-width: 460px; background: var(--ground); padding: 12px; }
.chart-box svg { display: block; width: 100%; height: auto; }
.consent { grid-template-columns: auto 1fr; align-items: start; gap: 12px; color: var(--cream); }
.consent input { width: 22px; min-height: 22px; height: 22px; margin-top: 2px; accent-color: var(--marigold); }

/* ---------- Vastu calculator: the fee is the big thing ---------- */
.calc { display: grid; grid-template-columns: 5fr 7fr; gap: 32px; align-items: end; }
.calc-out { font: 400 clamp(3rem, 1rem + 7vw, 8.5rem)/0.9 var(--display); letter-spacing: -0.035em; font-variant-numeric: tabular-nums; }
.calc-note { margin-top: 18px; font-size: var(--step-body); color: var(--soft); max-width: 40ch; }

/* ---------- Reviews ---------- */
.voices { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.voice { background: var(--field); padding: 28px; display: grid; gap: 16px; }
.voice b { font: 400 1.5rem/1.1 var(--display); }
.voice p { font-size: var(--step-body); }
.voice audio { width: 100%; color-scheme: dark; }

/* ---------- Pop-up offer ---------- */
/* Any open dialog or menu holds the page still behind it (two rules: an unknown selector would void a shared list). */
html:has(dialog[open]) { overflow: hidden; }
html:has(.menu-sheet:popover-open) { overflow: hidden; }
.popup { padding: 0; border: 0; border-radius: 16px; overflow: hidden; background: var(--paper); color: var(--ink); width: min(560px, calc(100vw - 32px)); max-height: calc(100svh - 32px); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45); /* it floats: the one shadow on the site */ }
.popup::backdrop { background: rgba(42, 9, 13, 0.72); }
.popup-body { padding: 28px 72px 28px 28px; display: grid; gap: 18px; }
.popup h2 { font-size: clamp(1.75rem, 1.2rem + 1.6vw, 2.5rem); }
.popup-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.popup-x { position: absolute; top: 10px; right: 10px; z-index: 1; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(42, 9, 13, 0.6); color: var(--cream); font: 400 1.75rem/1 var(--text); cursor: pointer; }
/* With a picture: the picture is the card, as tall as the screen allows, rounded; the words sit over its foot. */
.popup:has(> img) { width: fit-content; max-width: calc(100vw - 32px); background: var(--ground); color: var(--cream); }
.popup > img { width: auto; height: auto; max-width: calc(100vw - 32px); max-height: calc(100svh - 32px); }
.popup:has(> img) .popup-body { position: absolute; inset: auto 0 0; padding: 64px 20px 20px; gap: 14px; background: linear-gradient(transparent, rgba(42, 9, 13, 0.92) 45%); }
.popup:has(> img) h2 { font-size: clamp(1.375rem, 1.1rem + 1vw, 1.875rem); }
@media (prefers-reduced-motion: no-preference) {
  .popup[open] { animation: rise 500ms var(--ease-out); }
}

/* ---------- Phone ---------- */
@media (max-width: 860px) {
  .top-grid, .sec-head, .calc { grid-template-columns: 1fr; }
  .top-pic { margin-top: 24px; }
  .top-pic .arch-clip { height: 52svh; min-height: 300px; }
  .price-list li { grid-template-columns: 1fr; gap: 12px; padding: 28px 0; }
  .price-list .fee { text-align: left; }
  .core { grid-template-columns: 1fr; }
  .split > :first-child, .split > :last-child { grid-column: 1 / -1; }
  .form { grid-template-columns: 1fr; }
  .quotes blockquote:nth-child(n) { grid-column: 1 / -1; }
  .voices { grid-template-columns: 1fr; }
}

/* ---------- Store ---------- */
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.shop-cats { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: var(--step-body); }
.shop-cats a { text-decoration: none; padding: 6px 0; color: var(--ink-soft); }
.shop-cats a[aria-current="page"] { color: var(--ink); box-shadow: inset 0 -2px 0 var(--wine); }
.shop { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 40px 24px; }
.shop a { display: grid; gap: 10px; text-decoration: none; }
.shop-pic { display: block; aspect-ratio: 4 / 5; background: var(--paper); overflow: hidden; }
.shop-pic img { width: 100%; height: 100%; object-fit: cover; transition: transform 600ms var(--ease-out); }
.shop b { font: 400 clamp(1.35rem, 1.1rem + 0.6vw, 1.75rem)/1.1 var(--display); letter-spacing: -0.01em; }
.shop-price { font-size: var(--step-body); color: var(--ink-soft); }
.shop-price em { font-style: normal; color: var(--wine); }
@media (hover: hover) and (pointer: fine) { .shop a:hover .shop-pic img { transform: scale(1.03); } .shop a:hover b { color: var(--wine); } }
.shop-more { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 32px; }
.shop-more img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.cart-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; margin-top: 40px; }
.price-list select { margin-left: 8px; min-height: 44px; padding: 0 10px; font: inherit; }
.progress { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; counter-reset: s; }
.progress li { counter-increment: s; padding: 18px 16px; background: var(--paper); color: var(--ink-soft); font-size: var(--step-small); }
.progress li::before { content: counter(s); display: block; font: 400 1.75rem/1 var(--display); margin-bottom: 8px; }
.progress li.done { background: var(--wine); color: var(--cream); }
@media (max-width: 860px) { .progress { grid-template-columns: 1fr; } .cart-foot { flex-direction: column; align-items: stretch; } }
/* Quantity: − field + (store and cart). Colours follow the section through currentColor. */
.qty { display: inline-flex; justify-self: start; align-items: stretch; height: 48px; box-shadow: inset 0 0 0 1px currentColor; }
.qty button { width: 48px; border: 0; background: none; color: inherit; font: 400 1.4rem/1 var(--text); cursor: pointer; transition: background-color 150ms ease; }
.qty button:active { transform: scale(0.94); }
.qty input { width: 3.2em; border: 0; background: none; color: inherit; font: 500 1.05rem/1 var(--text); text-align: center; -moz-appearance: textfield; appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.form .qty input { width: 3.2em; min-height: 0; padding: 0; background: none; }
@media (hover: hover) and (pointer: fine) { .qty button:hover { background: color-mix(in srgb, currentColor 12%, transparent); } }
.cart-qty { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.cart-qty span { color: var(--ink-soft); }
button.link { background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer; }

/* ---------- FAQ (Services): native details/summary, no script ---------- */
.faq { display: grid; gap: 8px; max-width: 900px; }
.faq details { background: var(--wine); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 24px; align-items: baseline;
  padding: 22px 28px; font: 400 clamp(1.2rem, 1rem + 0.6vw, 1.6rem)/1.25 var(--display); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; display: inline-block; flex: none; font-family: var(--text); color: var(--marigold); transition: transform 200ms var(--ease-out); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:focus-visible { outline: 3px solid var(--marigold); outline-offset: -3px; }
.faq details p { padding: 0 28px 26px; font-size: var(--step-body); line-height: 1.6; max-width: 68ch; color: var(--cream); }
@media (hover: hover) and (pointer: fine) { .faq summary:hover { color: var(--marigold); } }

/* ---------- Kundli: the free reading fades out where the paid report takes over ---------- */
.teaser > :last-child:not(.calc-note) { -webkit-mask-image: linear-gradient(#000 20%, transparent); mask-image: linear-gradient(#000 20%, transparent); }
.teaser-more { margin-top: 24px; max-width: 62ch; font-size: var(--step-body); color: var(--soft); }
.sec-cream .top-lead { color: var(--ink); }
.sec-cream .top-lead b { font-weight: 500; color: var(--wine); }

/* ---------- Store menu: rounded tabs with icons, set apart from the square action buttons ---------- */
.shop-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; padding-top: 20px; border-top: 1px solid rgba(214, 194, 166, 0.18); }
.shop-nav a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px 0 14px; border: 1px solid rgba(214, 194, 166, 0.4); border-radius: 999px; color: var(--soft); font: 500 var(--step-small)/1 var(--text); text-decoration: none; transition: background-color 200ms ease, color 200ms ease, border-color 200ms ease; }
.shop-nav svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.shop-nav a[aria-current="page"] { background: var(--cream); border-color: var(--cream); color: var(--ink); }
.shop-count { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--marigold); color: var(--ink); font-size: 0.8125rem; line-height: 22px; text-align: center; }
@media (hover: hover) and (pointer: fine) { .shop-nav a:not([aria-current="page"]):hover { border-color: var(--marigold); color: var(--cream); } }
@media (max-width: 480px) { .shop-nav { display: grid; grid-template-columns: 1fr 1fr; } .shop-nav a:last-child { grid-column: 1 / -1; } .shop-nav a { justify-content: center; } }

/* Phone: +91 is fixed in front, the ten digits are typed */
.form .tel { display: flex; }
.form .tel > span { display: grid; place-items: center; padding: 0 12px; background: var(--ground); color: var(--soft); font: 400 1rem/1 var(--text); }
.form .tel input { flex: 1; min-width: 0; }
.form .hint { font-size: var(--step-small); color: var(--soft); }
.form .hint:empty { display: none; }
/* Submit stays greyed until every required field is filled in; while sending it says so */
.btn:disabled { filter: grayscale(1) opacity(0.45); pointer-events: none; } /* filter: the section fade-in owns opacity */
.btn.busy:disabled { filter: opacity(0.8); }

/* Town of birth: the list of matches under the field */
.combo { position: relative; display: block; }
.places {
  position: absolute; z-index: 20; inset: 100% 0 auto; margin: 4px 0 0; padding: 4px 0; list-style: none;
  max-height: min(300px, 50vh); overflow-y: auto; overscroll-behavior: contain;
  background: var(--cream); color: var(--ink); box-shadow: 0 12px 32px rgb(0 0 0 / 0.35);
}
.places li { padding: 12px 14px; font-size: 1rem; line-height: 1.3; cursor: pointer; }
.places [aria-selected="true"] { background: var(--marigold); }
@media (hover: hover) and (pointer: fine) { .places [role="option"]:hover { background: var(--paper); } }
.places .note { color: var(--ink-soft); cursor: default; }
.code-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }

/* A photograph in a section: the arch's marigold offset, squared */
.photo { margin: 40px 0 0; max-width: 560px; }
.photo img { display: block; width: calc(100% - 18px); height: auto; box-shadow: 18px 18px 0 var(--marigold); filter: sepia(0.15) saturate(0.92); }
.photo figcaption { margin-top: 32px; font-size: var(--step-small); color: var(--soft); max-width: 40ch; }
