/* Sector7xNoida - design system */
:root {
  /* Palette matched to vastusoftware.call-astro.com: cream bg, maroon headings/links, gold CTAs */
  --bg: #fff9ee; --surface: #ffffff; --soft: #fdeed2;
  --ink: #2a2017; --muted: #8a7a63; --line: #f3ddb9;
  --primary: #7c2335; --primary-ink: #ffffff; --primary-soft: #f6e2e2;
  --accent: #eda23a; --accent-ink: #3a2300;
  --wa: #168a47; --wa-soft: #e4f5ea; --call-soft: #fdeed2;
  --err: #b42318; --err-soft: #fdecea; --ok: #176b3a; --ok-soft: #e4f5ea;
  --shadow: 0 1px 2px rgba(58,34,30,.07), 0 8px 24px rgba(58,34,30,.08);
  --radius: 14px;
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Noto Sans Devanagari", Arial, sans-serif;
}
/* Always the cream/maroon/gold theme, even when the visitor's system is in dark mode
   (matches vastusoftware.call-astro.com, which never switches to a dark palette). */
:root[data-theme="dark"] {
  --bg: #241a12; --surface: #2f2317; --soft: #3a2b1a;
  --ink: #f8ecd9; --muted: #cdb48d; --line: #4a3822;
  --primary: #e8899d; --primary-ink: #2a0b14; --primary-soft: #4a2730;
  --accent: #f0b354; --accent-ink: #2a1800;
  --wa: #4fcf86; --wa-soft: #1c3324; --call-soft: #4a3215;
  --err: #ff8d84; --err-soft: #3a1d1b; --ok: #6fdb9b; --ok-soft: #1c3324;
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.25);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 16px; line-height: 1.55; }
img, svg { max-width: 100%; }
a { color: var(--primary); text-underline-offset: 3px; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0; letter-spacing: -.01em; }
p { margin: 0 0 .75rem; }
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--primary); color: var(--primary-ink); padding: 8px 12px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.center { text-align: center; }
.pad { padding: 1rem 0 .5rem; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 6px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 62px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--primary); text-decoration: none; font-weight: 700; font-size: 1.15rem; letter-spacing: -.02em; }
.brand b { color: var(--accent); }
.brand span { color: var(--primary); }
.mark { width: 32px; height: 32px; color: var(--primary); flex: none; }
.nav { display: flex; align-items: center; gap: 6px; }
.nav > a:not(.btn) { color: var(--ink); text-decoration: none; padding: 8px 10px; border-radius: 8px; font-weight: 500; font-size: .95rem; }
.nav > a:not(.btn):hover, .nav a[aria-current] { background: var(--soft); }
.who { font-size: .85rem; color: var(--muted); padding: 0 4px; white-space: nowrap; }
.inline { display: inline; margin: 0; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid transparent; border-radius: 10px; padding: 10px 16px; font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; line-height: 1.2; min-height: 44px; transition: transform .08s ease, background .15s ease, box-shadow .15s ease; }
.btn:active { transform: translateY(1px); }
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; flex: none; }
.btn-sm { min-height: 38px; padding: 7px 13px; font-size: .9rem; }
.btn-block { width: 100%; }
/* Main calls-to-action use the gold accent (like the reference site's "Buy now" button); maroon stays for headings/links/chips */
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { filter: brightness(1.06); }
.btn-accent { background: var(--accent); color: var(--accent-ink); }
.btn-accent:hover { filter: brightness(1.06); }
.btn-ghost { background: transparent; color: var(--primary); border-color: var(--line); }
.btn-ghost:hover { background: var(--soft); }
.btn-call { background: var(--call-soft); color: var(--primary); flex: 1 1 auto; justify-content: flex-start; }
.btn-call:hover { background: var(--primary); color: var(--primary-ink); }
.btn-wa { background: var(--wa-soft); color: var(--wa); }
.btn-wa:hover { background: var(--wa); color: #fff; }

/* Hero */
.hero { padding: 40px 0 28px; background:
  radial-gradient(900px 340px at 85% -10%, color-mix(in srgb, var(--accent) 28%, transparent), transparent 70%),
  radial-gradient(700px 320px at 0% 0%, color-mix(in srgb, var(--primary) 14%, transparent), transparent 70%); }
.hero-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: 32px; align-items: center; }
.eyebrow { font-size: .8rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--accent); margin-bottom: .6rem; }
.hero h1 { font-size: clamp(2rem, 5vw, 3.2rem); letter-spacing: -.03em; }
.hero h1 span { color: var(--primary); }
.lead { font-size: 1.1rem; color: var(--muted); max-width: 46ch; margin-top: 14px; }
.hero-search { display: flex; gap: 8px; margin-top: 22px; max-width: 560px; }
.hero-search input { flex: 1; min-width: 0; }
.stats { display: flex; gap: 28px; margin: 26px 0 0; }
.stats div { display: flex; flex-direction: column-reverse; }
.stats dt { font-size: 1.7rem; font-weight: 800; letter-spacing: -.03em; color: var(--primary); }
.stats dd { margin: 0; color: var(--muted); font-size: .85rem; }
.hero-art { display: flex; justify-content: center; }
.phone-card { width: 100%; max-width: 330px; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 14px; box-shadow: var(--shadow); transform: rotate(2deg); }
.pc-head { display: flex; gap: 6px; padding: 2px 4px 10px; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--line); }
.pc-row { display: flex; align-items: center; gap: 12px; padding: 11px; border-radius: 12px; }
.pc-row + .pc-row { margin-top: 2px; }
.pc-row:nth-child(odd) { background: var(--soft); }
.pc-row i { font-style: normal; font-size: 1.4rem; width: 38px; height: 38px; display: grid; place-items: center; background: var(--surface); border-radius: 10px; }
.pc-row div { flex: 1; line-height: 1.2; }
.pc-row b { display: block; font-size: .95rem; }
.pc-row small { color: var(--muted); }
.pc-row em { font-style: normal; font-size: .78rem; font-weight: 700; background: var(--call-soft); color: var(--primary); padding: 5px 10px; border-radius: 999px; }
.pc-row em.wa { background: var(--wa-soft); color: var(--wa); }

/* Inputs */
input[type="search"], input[type="text"], input[type="tel"], select {
  width: 100%; min-height: 46px; padding: 10px 14px; border: 1.5px solid var(--line); border-radius: 10px;
  background: var(--surface); color: var(--ink); font: inherit; appearance: none; -webkit-appearance: none;
}
select { background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 18px) 52%, calc(100% - 12px) 52%; background-size: 6px 6px, 6px 6px; background-repeat: no-repeat; padding-right: 34px; }
input::placeholder { color: color-mix(in srgb, var(--muted) 75%, transparent); }
input:focus, select:focus { border-color: var(--primary); outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 22%, transparent); }

/* Sections */
.section { padding: 40px 0; }
.section-alt { background: var(--soft); }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.section-head h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); }
.section-head p { margin: 4px 0 0; }
.filterbox { width: 100%; max-width: 320px; }
.soc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.soc { display: grid; grid-template-columns: 44px 1fr; grid-template-rows: auto auto; column-gap: 12px; align-items: center; padding: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); transition: transform .12s ease, box-shadow .15s ease, border-color .15s; }
.soc:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--primary) 40%, var(--line)); }
.soc-initial { grid-row: 1 / 3; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-weight: 800; font-size: 1.15rem; background: var(--primary-soft); color: var(--primary); }
.soc-name { font-weight: 650; line-height: 1.25; }
.soc-meta { font-size: .82rem; color: var(--muted); }
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.cat { display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; text-decoration: none; color: var(--ink); font-weight: 550; }
.cat:hover { border-color: var(--primary); }
.cat-ico { font-size: 1.4rem; width: 38px; height: 38px; display: grid; place-items: center; background: var(--soft); border-radius: 10px; flex: none; }
.section-alt .cat-ico { background: var(--bg); }
.cat-name { flex: 1; line-height: 1.25; font-size: .95rem; }
.cat-n { font-size: .8rem; color: var(--muted); background: var(--soft); padding: 2px 9px; border-radius: 999px; }
.section-alt .cat-n { background: var(--bg); }
.empty { text-align: center; color: var(--muted); padding: 2rem 0; }
.empty-state { text-align: center; padding: 3rem 0; }
.empty-state h2 { margin-bottom: 8px; }

/* Page head / breadcrumbs / chips */
.page-head { padding: 26px 0 0; border-bottom: 1px solid var(--line); background: var(--surface); }
.page-head h1 { font-size: clamp(1.7rem, 4vw, 2.4rem); letter-spacing: -.025em; margin-bottom: 6px; }
.crumbs { font-size: .85rem; color: var(--muted); margin-bottom: 10px; display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs a { color: var(--muted); }
.toolbar { margin: 16px 0 14px; max-width: 620px; }
.notice { background: var(--primary-soft); border-radius: 10px; padding: 10px 14px; font-size: .95rem; margin: 12px 0; }
.chips-wrap { border-top: 1px solid var(--line); background: var(--surface); position: sticky; top: 62px; z-index: 20; }
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 10px 0; scrollbar-width: thin; -webkit-overflow-scrolling: touch; }
.chip { flex: none; border: 1px solid var(--line); background: var(--bg); color: var(--ink); border-radius: 999px; padding: 7px 13px; font: inherit; font-size: .88rem; font-weight: 550; cursor: pointer; white-space: nowrap; }
.chip small { color: var(--muted); margin-left: 3px; }
.chip:hover { border-color: var(--primary); }
.chip.is-on { background: var(--primary); border-color: var(--primary); color: var(--primary-ink); }
.chip.is-on small { color: inherit; opacity: .8; }

/* Provider cards */
.listing { padding-top: 24px; padding-bottom: 56px; }
.cat-section { margin-bottom: 34px; scroll-margin-top: 130px; }
.cat-section h2 { font-size: 1.25rem; margin-bottom: 14px; display: flex; align-items: center; gap: 10px; }
.cat-section h2 .ico { flex: none; width: 36px; height: 36px; display: grid; place-items: center; background: var(--soft); border-radius: 10px; font-size: 1.2rem; }
.cat-section h2 .t { min-width: 0; }
.cat-section h2 small { flex: none; font-size: .8rem; color: var(--muted); background: var(--soft); padding: 2px 9px; border-radius: 999px; font-weight: 600; }
.pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 12px; }
.pcard { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; display: flex; flex-direction: column; gap: 8px; }
.pcard-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.pcard h4 { font-size: 1.02rem; font-weight: 650; overflow-wrap: anywhere; }
.badge { font-size: .68rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; padding: 3px 8px; border-radius: 999px; flex: none; }
.badge-new { background: var(--accent); color: var(--accent-ink); }
.pspec { margin: 0; align-self: flex-start; font-size: .82rem; font-weight: 600; background: var(--primary-soft); color: var(--primary); padding: 2px 10px; border-radius: 999px; }
.paddr { margin: 0; font-size: .88rem; color: var(--muted); display: flex; gap: 6px; align-items: flex-start; }
.paddr svg { width: 16px; height: 16px; flex: none; margin-top: 3px; fill: none; stroke: currentColor; stroke-width: 2; }
.pphones { display: flex; flex-direction: column; gap: 8px; margin-top: auto; padding-top: 4px; }
.prow { display: flex; gap: 8px; }
.nophone { font-size: .88rem; color: var(--muted); }
.pweb { font-size: .88rem; font-weight: 600; }
.result-count { margin: 4px 0 16px; color: var(--muted); }
.pager { display: flex; justify-content: center; align-items: center; gap: 16px; margin-top: 26px; color: var(--muted); }

/* Filters (search page) */
.filters { display: grid; grid-template-columns: 2fr 1.3fr 1.3fr auto; gap: 12px; align-items: end; padding: 14px 0 22px; }
.f label { display: block; font-size: .8rem; font-weight: 650; color: var(--muted); margin-bottom: 5px; }

/* Auth */
.auth { padding: 40px 0 64px; }
.auth-card { max-width: 420px; margin: 0 auto; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 26px; box-shadow: var(--shadow); }
.auth-card h1 { font-size: 1.6rem; margin-bottom: 6px; }
.auth-card label { display: block; font-weight: 600; font-size: .9rem; margin: 16px 0 6px; }
.phone-in { display: flex; align-items: stretch; border: 1.5px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--surface); }
.phone-in span { display: grid; place-items: center; padding: 0 12px; background: var(--soft); color: var(--muted); font-weight: 600; }
.phone-in input { border: 0; border-radius: 0; box-shadow: none !important; }
.phone-in:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 22%, transparent); }
.otp-in { text-align: center; font-size: 1.6rem; letter-spacing: .5em; font-weight: 700; }
.methods { margin: 16px 0 18px; display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: center; }
.methods .mlabel { width: 100%; font-weight: 600; font-size: .9rem; }
.methods label { margin: 0; font-weight: 500; display: inline-flex; align-items: center; gap: 6px; }
.auth-card .small { margin-top: 16px; margin-bottom: 0; }
.alert { border-radius: 10px; padding: 10px 14px; font-size: .93rem; margin-top: 12px; }
.alert-err { background: var(--err-soft); color: var(--err); }
.alert-ok { background: var(--ok-soft); color: var(--ok); }
.inline-links { margin-top: 14px; text-align: center; }
.linkbtn { background: none; border: 0; color: var(--primary); text-decoration: underline; cursor: pointer; font: inherit; font-size: .92rem; padding: 6px; }
.actions { display: flex; gap: 10px; justify-content: center; margin-top: 18px; flex-wrap: wrap; }
.page-head .center { padding-bottom: 40px; }

/* Footer */
.site-footer { background: var(--surface); border-top: 1px solid var(--line); padding: 36px 0 28px; margin-top: 20px; font-size: .92rem; color: var(--muted); }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1.2fr; gap: 28px; }
.foot-grid h5 { font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink); margin: 0 0 10px; }
.foot-grid a { display: block; color: var(--muted); padding: 3px 0; }
.foot-grid p a { display: inline; }
.brand-foot { margin-bottom: 8px; }
.disclaimer { margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--line); font-size: .82rem; }
.copy { font-size: .82rem; margin: 0; }

[hidden] { display: none !important; }

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { display: none; }
  .filters { grid-template-columns: 1fr 1fr; }
  .filters .f-q { grid-column: 1 / -1; }
  .filters .btn { grid-column: 1 / -1; }
  .foot-grid { grid-template-columns: 1fr; gap: 20px; }
}
@media (max-width: 560px) {
  .hero { padding: 28px 0 20px; }
  .hero-search { flex-direction: column; }
  .stats { gap: 22px; }
  .nav > a:not(.btn) { padding: 8px 6px; font-size: .9rem; }
  .nav > a[href$="#societies"] { display: none; }
  .brand { font-size: 1.05rem; gap: 8px; }
  .who { display: none; }
  .filters { grid-template-columns: 1fr; }
  .pgrid { grid-template-columns: 1fr; }
  .section { padding: 30px 0; }
  .chips-wrap { top: 62px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

/* ---------- Ratings & reviews ---------- */
.stars { position: relative; display: inline-block; font-size: .95rem; line-height: 1; letter-spacing: 1px; color: var(--line); white-space: nowrap; }
.stars::before { content: "★★★★★"; position: absolute; inset: 0; width: var(--pct, 0%); overflow: hidden; color: var(--accent); white-space: nowrap; }
.stars-lg { font-size: 1.4rem; }
.pcard-rating { margin: -2px 0 2px; }
.pcard-rating a { text-decoration: none; display: inline-flex; }
.prating { display: inline-flex; align-items: center; gap: 6px; font-size: .86rem; color: var(--ink); }
.prating b { font-weight: 700; }
.prating-empty { font-size: .84rem; }
.prate-link { align-self: flex-start; margin-top: 2px; }
.prate-link svg { width: 15px; height: 15px; fill: var(--accent); stroke: var(--accent); }

.prov-rating-row { display: flex; align-items: center; gap: 10px; margin-top: 10px; }
.prov-avg { font-size: 1.1rem; font-weight: 800; }
.provider-wrap { padding-top: 26px; }
.prov-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 20px; align-items: start; }
.prov-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; margin-bottom: 16px; }
.prov-card h2 { font-size: 1.05rem; margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.prov-card h2 small { font-size: .78rem; color: var(--muted); background: var(--soft); padding: 2px 9px; border-radius: 999px; font-weight: 600; }
.prov-card .pphones { margin-top: 10px; }
.prov-listings { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.prov-listings li { font-size: .92rem; }

.star-input { border: 0; padding: 0; margin: 0 0 14px; }
.star-input legend { font-weight: 600; font-size: .9rem; margin-bottom: 6px; padding: 0; }
.star-input-row { display: inline-flex; flex-direction: row-reverse; gap: 2px; }
.star-input-row input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.star-input-row label { font-size: 1.8rem; line-height: 1; color: var(--line); cursor: pointer; transition: color .1s ease; }
.star-input-row input:checked ~ label,
.star-input-row label:hover,
.star-input-row label:hover ~ label,
.star-input-row input:checked + label:hover,
.star-input-row input:checked + label:hover ~ label { color: var(--accent); }
.star-input-row input:focus-visible + label { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.review-form-card textarea { width: 100%; min-height: 96px; padding: 10px 14px; border: 1.5px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink); font: inherit; resize: vertical; margin-bottom: 14px; }
.review-form-card textarea:focus { border-color: var(--primary); outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 18%, transparent); }
.review-form-card label[for="comment"] { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 6px; }

.review-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.review-item { padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.review-item:last-child { border-bottom: 0; padding-bottom: 0; }
.review-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.review-who { font-size: .85rem; font-weight: 600; }
.review-date { font-size: .8rem; }
.review-comment { margin: 6px 0 0; font-size: .93rem; }

@media (max-width: 860px) {
  .prov-grid { grid-template-columns: 1fr; }
}
