/* Sambhal. Soft cards: white and soft-grey surfaces, rounded cards, one coral for actions, green for what was checked. */

@font-face {
  font-family: "DM Sans"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url(fonts/dm-sans-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Noto Sans Gurmukhi"; font-weight: 400 700; font-display: swap;
  src: url(fonts/noto-sans-gurmukhi-gurmukhi.woff2) format("woff2");
  unicode-range: U+0951-0952, U+0964-0965, U+0A01-0A76, U+200C-200D, U+20B9, U+25CC, U+262C, U+A830-A839;
}

:root {
  --bg: #FFFFFF; --tonal: #F4F5F7; --card: #FFFFFF;
  --ink: #0E1726; --soft: #56657E; --line: #E6E9EF; --line-strong: #D5DBE5;
  --coral: #D03E2A; --btn-ink: #FFFFFF; --coral-soft: #FFF0ED; --coral-ink: #B23523;
  --green: #15905C; --green-soft: #E4F6EE; --green-ink: #0D6E45;
  --indigo-soft: #EDF0FF; --indigo-ink: #3343B0; --mint: #DDF5EA;
  --panel: #0E1726; --panel-ink: #FFFFFF; --panel-soft: #A9B6CC;
  --tile: #0E1726; --tile-ink: #FFFFFF; --river: #9CCBF2; --river-ink: #2F6FAE;
  --text: "DM Sans", "Noto Sans Gurmukhi", system-ui, sans-serif;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --shadow: 0 1px 2px rgba(14, 23, 38, .05), 0 24px 48px -28px rgba(14, 23, 38, .3);
  --shadow-sm: 0 1px 2px rgba(14, 23, 38, .06), 0 6px 16px -10px rgba(14, 23, 38, .25);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.6 var(--text); -webkit-font-smoothing: antialiased; }
html:lang(pa) body { font-size: 19px; line-height: 1.65; }   /* Gurmukhi reads smaller at the same size */
h1, h2, h3, h4, p, ol, ul, figure { margin: 0; }
h1, h2 { font-weight: 700; letter-spacing: -.03em; text-wrap: balance; }
h3, h4 { font-weight: 700; letter-spacing: -.01em; line-height: 1.3; }
html:lang(pa) :is(h1, h2, h3, h4) { letter-spacing: 0; line-height: 1.3; }
ol, ul { padding: 0; list-style: none; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .22em; }
svg { display: block; }
::selection { background: var(--coral); color: var(--btn-ink); }
:focus-visible { outline: 2px solid var(--indigo-ink); outline-offset: 3px; border-radius: 8px; }
.num { font-variant-numeric: tabular-nums; }
.defs { position: absolute; width: 0; height: 0; }
.wrap { width: min(1200px, 100% - 40px); margin-inline: auto; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 54px; padding: 0 22px;
  border-radius: 14px; background: var(--coral); color: var(--btn-ink); text-decoration: none; font-weight: 600; font-size: 16.5px;
  transition: transform .2s var(--ease), filter .2s var(--ease);
}
.btn svg { width: 19px; height: 19px; flex: none; }
.btn:hover { transform: translateY(-1px); filter: brightness(.96); }
.btn:active { transform: translateY(1px); }
.btn.ghost { background: var(--card); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-strong); }
.badge { display: inline-grid; place-items: center; flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--indigo-soft); color: var(--indigo-ink); font: 700 12.5px/1 var(--text); }
.tag { font-size: 12.5px; font-weight: 600; color: var(--coral-ink); background: var(--coral-soft); border-radius: 999px; padding: 3px 10px; white-space: nowrap; }

/* ---------------------------------------------------------------- header */
.head { position: sticky; top: 0; z-index: 10; background: var(--bg); border-bottom: 1px solid var(--line); }
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 12px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; white-space: nowrap; }
.brand b { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--tile); color: var(--tile-ink); font: 700 18px/1 "Noto Sans Gurmukhi", sans-serif; }
.brand span { font-size: 19px; font-weight: 700; letter-spacing: -.01em; }
.top nav { display: flex; align-items: center; gap: 4px 24px; font-size: 15px; }
.top nav a { text-decoration: none; color: var(--soft); }
.top nav a:hover { color: var(--ink); }
.top nav .site, .top nav .time { display: none; }
.top nav .time { color: var(--soft); font-variant-numeric: tabular-nums; }
.top nav .lang { color: var(--ink); font-weight: 600; background: var(--tonal); border-radius: 12px; padding: 8px 14px; }

/* ---------------------------------------------------------------- first screen */
.hero { padding: 24px 0 clamp(56px, 7vw, 88px); }
.hero-body { display: grid; gap: 28px; }
.hero .text { background: var(--tonal); border-radius: 32px; padding: clamp(28px, 4vw, 52px) clamp(22px, 4vw, 48px); }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; background: var(--card); border-radius: 999px; padding: 6px 14px 6px 10px; font-size: 14px; font-weight: 600; color: var(--soft); }
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--green); }
html:lang(pa) .eyebrow { font-size: 15.5px; }
.hero h1 { font-size: clamp(2.5rem, 1.3rem + 3.6vw, 4rem); line-height: 1.05; margin-top: 22px; }
html:lang(pa) .hero h1 { font-size: clamp(2.2rem, 1.2rem + 3vw, 3.4rem); line-height: 1.3; }
.hero h1 em { font-style: normal; color: var(--coral); }
.deck { font-size: clamp(1.06rem, 1rem + .3vw, 1.18rem); line-height: 1.55; color: var(--soft); margin-top: 18px; max-width: 32em; }
.acts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.facts { display: grid; gap: 8px; margin-top: 28px; font-size: 15px; }
.facts li { display: flex; gap: 10px; align-items: center; background: var(--card); border-radius: 12px; padding: 10px 14px; font-weight: 500; }
.facts svg { width: 18px; height: 18px; flex: none; color: var(--green); }

/* the sample visit note: a white card, with the week's earlier notes tucked behind it */
.note-wrap { align-self: center; }
.note { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: 28px; box-shadow: var(--shadow); padding: 24px; max-width: 520px; margin-inline: auto; }
.note-head { display: flex; align-items: center; gap: 10px; }
.note-head h2 { flex: 1; display: flex; align-items: center; gap: 10px; font-size: 1.45rem; line-height: 1.15; letter-spacing: -.02em; }
.note-head h2::before { content: ""; width: 28px; height: 28px; flex: none; border-radius: 9px; background: var(--mint); }
.note-who { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 0 10px; margin-top: 16px; font-size: 15px; color: var(--soft); line-height: 1.35; }
.note-who .badge { grid-row: span 2; }
.note-who small { font-size: 13.5px; }
.note-who b { color: var(--ink); font-weight: 600; }
.reads { display: grid; grid-template-columns: 1.25fr 1fr .8fr; gap: 8px; margin-top: 16px; }
.reads div { background: var(--tonal); border-radius: 16px; padding: 12px 14px; }
.reads b { display: block; font-size: clamp(1.45rem, 1.2rem + 1vw, 1.75rem); line-height: 1.1; font-weight: 700; letter-spacing: -.02em; }
.reads span { display: block; font-size: 12.5px; line-height: 1.3; color: var(--soft); margin-top: 4px; }
.checks { display: grid; gap: 7px; margin-top: 16px; font-size: 15.5px; line-height: 1.4; }
.checks li { display: flex; gap: 10px; }
.checks svg { width: 18px; height: 18px; flex: none; margin-top: 2px; color: var(--green); }
.quote { margin-top: 12px; font-size: 15.5px; font-weight: 500; }
.photos { display: flex; align-items: center; gap: 8px; margin-top: 12px; font-size: 13.5px; color: var(--soft); }
.photos svg { width: 18px; height: 18px; flex: none; }
.signed { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--soft); }
.signed span:first-child::before { content: "● "; color: var(--green); }
.note-back { display: none; }
@media (min-width: 1020px) {
  .note-back { display: block; }
  .note-back p {
    display: flex; align-items: center; gap: 10px; margin: 0 auto; padding: 12px 18px 26px; border-radius: 22px 22px 0 0;
    background: var(--card); border: 1px solid var(--line); border-bottom: 0; box-shadow: var(--shadow-sm); color: var(--soft); font-size: 14px;
  }
  .note-back p:first-child { width: 84%; opacity: .7; }
  .note-back p + p { width: 92%; margin-top: -14px; opacity: .9; }
  .note-back b { color: var(--ink); font-weight: 600; flex: 1; }
  .note-back .badge { width: 22px; height: 22px; font-size: 11px; }
  .note-back + .note { margin-top: -14px; }
}
@media (min-width: 720px) {
  .top nav .site, .top nav .time { display: inline; }
}
@media (min-width: 1020px) {
  .hero-body { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 56px; align-items: center; }
  .note { padding: 26px; }
}

/* ---------------------------------------------------------------- sections: white and soft grey take turns */
.sec { padding-block: clamp(64px, 8vw, 104px); --surface: var(--tonal); }
main > .sec:nth-of-type(even) { background: var(--tonal); --surface: var(--card); }
.sec h2 { font-size: clamp(2rem, 1.3rem + 2.2vw, 3rem); line-height: 1.08; max-width: 18em; }
.lead { color: var(--soft); margin-top: 14px; max-width: 36em; font-size: 1.08rem; }

/* services: four cards */
.services { display: grid; gap: 16px; margin-top: 44px; }
.services li { background: var(--surface); border-radius: 24px; padding: 26px; display: grid; align-content: start; gap: 10px; }
.services h3 { display: grid; gap: 16px; font-size: 1.2rem; }
.services h3 .badge { width: 44px; height: 44px; border-radius: 14px; font-size: 16px; }
.services p { color: var(--soft); font-size: 16px; line-height: 1.6; }
@media (min-width: 640px) { .services { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1020px) { .services { grid-template-columns: repeat(4, 1fr); } }

/* rules: what we never do, what we always do */
.rules { display: grid; gap: 28px 32px; margin-top: 44px; }
.rules .part { display: inline-block; font-size: 14px; font-weight: 700; letter-spacing: 0; border-radius: 999px; padding: 6px 14px; margin-bottom: 14px; }
.rules section:first-child .part { background: var(--coral-soft); color: var(--coral-ink); }
.rules section:last-child .part { background: var(--green-soft); color: var(--green-ink); }
.rules ul { display: grid; gap: 10px; }
.rules li { background: var(--surface); border-radius: 18px; padding: 18px 20px; }
.rules h4 { font-size: 1.05rem; }
.rules p { color: var(--soft); font-size: 15.5px; margin-top: 4px; }
@media (min-width: 900px) { .rules { grid-template-columns: 1fr 1.7fr; } .rules section:last-child ul { grid-template-columns: 1fr 1fr; } }

/* how a visit works: the week's ledger as a stack of signed rows */
.visit { margin-top: 44px; }
.ledger { background: var(--tonal); border-radius: 28px; padding: 16px; }
.ledger-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 6px 8px 16px; }
.ledger-head h3 { font-size: 1.35rem; }
.ledger-head h3 span { color: var(--soft); margin-left: 6px; font-weight: 600; }
.ledger ol { display: grid; gap: 10px; }
.ledger li { display: grid; grid-template-columns: 62px 26px 1fr; gap: 6px 12px; align-items: center; background: var(--card); border-radius: 18px; padding: 16px; box-shadow: var(--shadow-sm); }
.ledger time { font-weight: 700; font-size: 15px; white-space: nowrap; }
.ledger li p { font-size: 15.5px; line-height: 1.45; color: var(--soft); }
.ledger li b { display: block; color: var(--ink); font-weight: 700; }
.ledger .sig { grid-column: 3; justify-self: start; font-size: 13px; font-weight: 600; color: var(--green-ink); background: var(--green-soft); border-radius: 999px; padding: 3px 10px; white-space: nowrap; }
html:lang(pa) .ledger li { grid-template-columns: 70px 26px 1fr; }
@media (min-width: 640px) {
  .ledger { padding: 20px; }
  .ledger li, html:lang(pa) .ledger li { grid-template-columns: 96px 28px 1fr auto; gap: 6px 18px; padding: 18px 20px; }
  .ledger li b { display: inline; margin-right: 8px; }
  .ledger .sig { grid-column: auto; }
}

/* how to start: four steps */
.steps { counter-reset: s; display: grid; gap: 16px; margin-top: 44px; }
.steps li { counter-increment: s; background: var(--surface); border-radius: 24px; padding: 24px; }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; margin-bottom: 18px; background: var(--indigo-soft); color: var(--indigo-ink); font-weight: 700; font-size: 16px; }
html:lang(pa) .steps li::before { content: counter(s, gurmukhi); }
.steps p { color: var(--soft); font-size: 16px; margin-top: 6px; }
@media (min-width: 640px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1020px) { .steps { grid-template-columns: repeat(4, 1fr); } }

/* prices: one soft card per service */
.prices { width: 100%; border-collapse: separate; border-spacing: 0 10px; margin-top: 34px; }
.prices th, .prices td { text-align: left; vertical-align: middle; background: var(--surface); padding: 20px 22px; }
.prices th { border-radius: 20px 0 0 20px; font-weight: 700; font-size: 1.08rem; }
.prices th small { display: block; font-weight: 400; font-size: 15px; color: var(--soft); margin-top: 3px; max-width: 34em; line-height: 1.5; }
.prices td { border-radius: 0 20px 20px 0; text-align: right; white-space: nowrap; font-weight: 700; font-size: clamp(1.2rem, 1rem + .8vw, 1.6rem); letter-spacing: -.02em; }
.prices td small { display: block; font-weight: 400; font-size: 14px; letter-spacing: 0; color: var(--soft); white-space: normal; }
@media (max-width: 639px) {   /* phones: the service name above its price, so neither gets squeezed */
  .prices, .prices tbody { display: block; }
  .prices tr { display: grid; margin-bottom: 10px; }
  .prices th { border-radius: 20px 20px 0 0; padding-bottom: 6px; }
  .prices td { border-radius: 0 0 20px 20px; text-align: left; padding-top: 6px; }
}
.after { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 32px; margin-top: 18px; }
.after p { color: var(--soft); font-size: 15.5px; max-width: 40em; }

/* the map: Jagraon and the places within 25 km, drawn from OpenStreetMap by tools/make_map.py */
.map { position: relative; margin-top: 36px; }
.lens { display: block; width: min(680px, 100%); height: auto; margin-inline: auto; overflow: visible; }
.m-bg { fill: var(--card); }
.m-dots { fill: url(#lens-dots); }
.lens pattern circle { fill: var(--line-strong); }
.m-area { fill: var(--green-soft); opacity: .75; }
.m-rings circle { fill: none; stroke: var(--line-strong); stroke-width: 1; vector-effect: non-scaling-stroke; }
.m-edge { fill: none; stroke: var(--green); stroke-width: 1.5; stroke-dasharray: 5 6; vector-effect: non-scaling-stroke; }
.lens path { fill: none; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.m-river { stroke: var(--river); stroke-width: 5; }
.m-trunk { stroke: var(--ink); stroke-opacity: .3; stroke-width: 2.2; }
.m-primary { stroke: var(--ink); stroke-opacity: .2; stroke-width: 1.4; }
.m-rail { stroke: var(--soft); stroke-opacity: .6; stroke-width: 1.2; stroke-dasharray: 3 4; }
.m-tag { font: 600 13px var(--text); fill: var(--soft); }
.m-water { fill: var(--river-ink); font-style: italic; }
.m-km { font: 700 12px var(--text); fill: var(--green-ink); }
.m-names text { font: 600 20px var(--text); fill: var(--ink); paint-order: stroke; stroke: var(--card); stroke-width: 5px; stroke-linejoin: round; }
.m-pins circle { fill: var(--ink); stroke: var(--card); stroke-width: 3; vector-effect: non-scaling-stroke; }
.m-north path { fill: var(--ink); }
.m-north text, .m-scale text { font: 700 11px var(--text); fill: var(--soft); }
.m-scale path { fill: none; stroke: var(--soft); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.credit { text-align: center; font-size: 12.5px; color: var(--soft); margin-top: 12px; }
.credit a { color: inherit; }
/* phones: the map shows where, the list below says what */
.villages { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 18px; }
.villages li { background: var(--surface); border-radius: 16px; padding: 12px 14px; }
.villages b { font: 700 1.12rem/1.35 "Noto Sans Gurmukhi", sans-serif; }
.villages span { display: block; margin-top: 2px; font-size: 14px; color: var(--soft); }
.villages .hub { background: var(--tile); color: var(--tile-ink); }
.villages .hub span { color: inherit; opacity: .75; }
@media (max-width: 759px) {
  .m-tag, .m-km { font-size: 20px; }
  .m-north text, .m-scale text { font-size: 18px; }
}
/* wider screens: the names sit on the map, next to their pins */
@media (min-width: 760px) {
  .m-names { display: none; }
  .villages { display: block; position: absolute; top: 0; left: 50%; width: min(680px, 100%); aspect-ratio: 1; margin: 0; transform: translateX(-50%); pointer-events: none; }
  .villages li { position: absolute; left: var(--x); top: var(--y); padding: 6px 12px; border-radius: 12px; background: var(--card); box-shadow: var(--shadow-sm); white-space: nowrap; pointer-events: auto; }
  .villages b { font-size: 1rem; }
  .villages span { font-size: 12.5px; margin-top: 0; }
  .villages .r { transform: translate(14px, -50%); }
  .villages .l { transform: translate(calc(-100% - 14px), -50%); }
  .villages .t { transform: translate(-50%, calc(-100% - 14px)); }
  .villages .b { transform: translate(-50%, 14px); }
  .villages .hub { left: 50%; top: 50%; transform: translate(-50%, -50%); padding: 10px 18px; border-radius: 16px; text-align: center; }
  .villages .hub b { font-size: 1.35rem; }
}
/* drawing in: the service area grows from Jagraon, then pins and names appear by distance. Transform and opacity only. */
.m-grow { transform-box: view-box; transform-origin: 50% 50%; }
.map.armed .m-grow { transform: scale(.55); opacity: 0; }
.map.armed .m-pins circle:not(.m-home), .map.armed .villages li:not(.hub) { opacity: 0; }
.map.armed .m-pins circle:not(.m-home) { transform: translateY(-10px); }
.map.in .m-grow { transform: none; opacity: 1; transition: transform 1s var(--ease), opacity .5s linear; }
.map.in .m-pins circle:not(.m-home) { opacity: 1; transform: none; transition: opacity .3s linear var(--d), transform .5s var(--ease) var(--d); }
.map.in .villages li:not(.hub) { opacity: 1; transition: opacity .4s linear var(--d, 0ms); }

/* questions: soft rows that open */
.faq { display: grid; gap: 10px; margin-top: 40px; }
.faq details { background: var(--surface); border-radius: 18px; padding: 0 22px; }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 18px; padding: 20px 0; font-weight: 600; font-size: 1.08rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { width: 32px; height: 32px; padding: 8px; flex: none; border-radius: 50%; background: var(--card); color: var(--ink); transition: transform .25s var(--ease); }
.faq details[open] summary svg { transform: rotate(45deg); }
.faq details p { color: var(--soft); padding: 0 0 20px; max-width: 42em; }
@media (min-width: 1020px) {
  .split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.55fr); gap: 64px; align-items: start; }
  .split h2 { position: sticky; top: 100px; }
  .split .faq { margin-top: 0; }
}

/* the close: one dark rounded panel */
.field { padding: 0 0 20px; }
.close { background: var(--panel); color: var(--panel-ink); border-radius: 32px; text-align: center; padding: clamp(64px, 8vw, 104px) clamp(22px, 5vw, 64px) 0; }
.close h2 { font-size: clamp(2.2rem, 1.3rem + 3vw, 3.6rem); line-height: 1.06; margin-inline: auto; max-width: 14em; }
.close p { color: var(--panel-soft); margin: 18px auto 30px; max-width: 34em; }
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 28px; margin-top: clamp(64px, 8vw, 96px); padding: 24px 0 30px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: 14.5px; color: var(--panel-soft); text-align: left; }
.foot a { color: var(--panel-ink); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .faq summary svg { transition: none; }
}
