/* Mahalaxmi Jewellers website. Shop palette: ivory, maroon, gold (as on the reels and invoices).
   Type: Noto Sans throughout, Noto Sans Devanagari for the Hindi name; both self-hosted and cut down by
   build.py. Product photos sit on a dark velvet-coloured frame, always 4:5, so the shop's own phone
   shots look consistent. */
@font-face { font-family: "Noto Sans"; src: url("fonts/noto-sans.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }
@font-face { font-family: "Noto Sans Devanagari"; src: url("fonts/noto-sans-devanagari.woff2") format("woff2"); font-weight: 400 700; font-display: swap; unicode-range: U+0900-097F, U+200C-200D, U+25CC; }

:root {
  --bg: #fcfaf7; --bg-2: #f4eee4; --white: #fff;
  --ink: #1c1917; --ink-2: #3d3530; --muted: #635b54;
  --maroon: #6b1717; --maroon-d: #521010;
  --gold: #a37e2c; --gold-ink: #7d5f1c; --gold-l: #d9bf86;
  --line: #eadecb; --velvet: #171412; --foot: #2a1513;
  --text: "Noto Sans", "Noto Sans Devanagari", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --hindi: "Noto Sans Devanagari", "Noto Sans", sans-serif;
  --pad: 20px;
  --block: 40px;
}
@media (min-width: 761px) { :root { --pad: 40px; --block: 64px; } }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 16px/1.6 var(--text); color: var(--ink-2); background: var(--bg); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--maroon); text-underline-offset: .2em; text-decoration-thickness: 1px; }
h1, h2, h3 { font-weight: 600; color: var(--ink); margin: 0; letter-spacing: -.01em; }
h1 { font-size: 30px; line-height: 38px; }
h2 { font-size: 24px; line-height: 32px; }
@media (min-width: 761px) { h1 { font-size: 42px; line-height: 50px; } h2 { font-size: 30px; line-height: 38px; } }
p, address, blockquote, figure { margin: 0; }
address { font-style: normal; }
ul { margin: 0; padding: 0; list-style: none; }
[lang="hi"] { font-family: var(--hindi); letter-spacing: 0; }
.wrap { width: min(1160px, 100% - 2 * var(--pad)); margin-inline: auto; }
.i { width: 20px; height: 20px; flex: none; }
.muted { color: var(--muted); font-size: 15px; }
.small { font-size: 14.5px; margin-top: 18px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* Focus, skip link, motion */
a:focus-visible, summary:focus-visible { outline: 2px solid var(--maroon); outline-offset: 3px; border-radius: 2px; }
.foot a:focus-visible { outline-color: var(--gold-l); }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 50; padding: 10px 16px; background: var(--ink); color: var(--bg); }
.skip:focus { left: 8px; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* Buttons */
.acts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.btn { display: inline-flex; align-items: center; gap: 9px; min-height: 48px; padding: 0 20px; border: 1px solid var(--maroon); border-radius: 6px; background: var(--maroon); color: #fff; font-size: 15.5px; font-weight: 600; text-decoration: none; transition: background .15s, border-color .15s; }
.btn:hover { background: var(--maroon-d); border-color: var(--maroon-d); }
.btn-line { background: var(--white); color: var(--ink); border-color: rgba(28, 25, 23, .24); }
.btn-line:hover { background: var(--white); border-color: var(--ink); }

/* Header */
.top { position: relative; z-index: 10; background: var(--bg); border-bottom: 1px solid var(--line); }
.top-in { display: flex; align-items: center; gap: 28px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; margin-right: auto; padding: 10px 0; color: var(--ink); text-decoration: none; }
.brand img { border-radius: 50%; }
.brand span { display: flex; flex-direction: column; }
.brand b { white-space: nowrap; font-size: 19px; font-weight: 700; line-height: 1.2; letter-spacing: -.005em; }
.brand-hi { font-size: 14px; font-weight: 600; line-height: 1.3; color: var(--gold-ink); }
.nav { display: flex; gap: 24px; }
.nav a { padding: 10px 0; color: var(--ink-2); font-size: 15px; font-weight: 500; text-decoration: none; border-bottom: 2px solid transparent; }
.nav a:hover { color: var(--maroon); }
.nav a[aria-current="page"] { color: var(--maroon); border-bottom-color: var(--maroon); }
.top-tel { display: inline-flex; align-items: center; gap: 8px; color: var(--maroon); font-weight: 600; font-size: 15px; text-decoration: none; white-space: nowrap; }
.top-tel .i { width: 18px; height: 18px; }
.menu { display: none; }
.menu summary { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border: 1px solid rgba(28, 25, 23, .2); border-radius: 6px; color: var(--ink); font-weight: 600; font-size: 15px; cursor: pointer; list-style: none; }
.menu summary::-webkit-details-marker { display: none; }
.menu nav { position: absolute; left: 0; right: 0; top: 100%; padding: 6px var(--pad) 14px; background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: 0 12px 24px rgba(28, 25, 23, .08); }
.menu nav a { display: flex; align-items: center; gap: 10px; min-height: 50px; color: var(--ink); font-size: 17px; font-weight: 500; text-decoration: none; border-bottom: 1px solid var(--line); }
.menu nav a:last-child { border-bottom: 0; color: var(--maroon); font-weight: 600; }
.menu nav a[aria-current="page"] { color: var(--maroon); }
@media (max-width: 1000px) {
  .nav, .top-tel { display: none; }
  .menu { display: block; }
}
@media (max-width: 420px) { .top-in { gap: 12px; } .brand { gap: 10px; } .brand b { font-size: 17px; } .brand img { width: 38px; height: 38px; } .menu summary { padding: 0 11px; } }

/* Sections */
.block { padding: var(--block) 0 0; }
main > :last-child { padding-bottom: var(--block); }
.intro { padding: 36px 0 0; }
.intro h1 { max-width: 20ch; }
.lead { margin-top: 14px; max-width: 58ch; font-size: 17px; line-height: 1.6; color: var(--ink-2); }
@media (min-width: 761px) { .intro { padding-top: 56px; } .lead { font-size: 18px; } }
.doors { padding-top: 32px; }
.head-row { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 24px; margin-bottom: 24px; }
.head-link { display: flex; gap: 18px; font-size: 15px; font-weight: 600; }

/* Photo frame */
.frame { display: block; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 8px; background: var(--velvet); }
.frame img { width: 100%; height: 100%; object-fit: cover; }
.frame img.whole { object-fit: contain; }

/* Cards: a photo and a name that lead to a page */
.cards { display: grid; gap: 28px 24px; grid-template-columns: repeat(3, 1fr); }
.card { display: flex; flex-direction: column; color: inherit; text-decoration: none; }
.card .frame { margin-bottom: 14px; }
.card-t { font-size: 19px; font-weight: 600; line-height: 1.3; color: var(--ink); }
.card-d { margin-top: 6px; font-size: 15px; color: var(--muted); }
.card-go { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; color: var(--maroon); font-size: 14.5px; font-weight: 600; }
.card-go .i { width: 17px; height: 17px; transition: transform .15s; }
.card:hover .card-t { color: var(--maroon); }
.card:hover .card-go .i { transform: translateX(3px); }
@media (max-width: 900px) { .cards { grid-template-columns: repeat(2, 1fr); } }
/* Phones: photo beside the text, so the three ways in fit on one screen */
@media (max-width: 560px) {
  .cards { grid-template-columns: 1fr; gap: 16px; }
  .card { display: grid; grid-template-columns: 40% 1fr; column-gap: 16px; align-items: center; }
  .card .frame { grid-row: span 3; margin: 0; }
  .card-t { font-size: 20px; }
  .card-d { font-size: 14px; }
  .card-go { margin-top: 6px; }
}

/* What you can count on */
.assure { margin-top: var(--block); background: var(--white); border-block: 1px solid var(--line); }
.assure-list { display: grid; grid-template-columns: repeat(3, 1fr); }
.assure-list li { display: grid; grid-template-columns: auto 1fr; align-content: start; column-gap: 12px; padding: 26px 20px 26px 0; }
.assure-list li + li { padding-left: 20px; border-left: 1px solid var(--line); }
.assure-list .i { grid-row: span 2; width: 26px; height: 26px; color: var(--gold); margin-top: 1px; }
.assure-list b { color: var(--ink); font-size: 15.5px; font-weight: 600; line-height: 1.4; }
.assure-list span { font-size: 14px; color: var(--muted); line-height: 1.5; }
@media (max-width: 760px) {
  .assure-list { grid-template-columns: 1fr; }
  .assure-list li, .assure-list li + li { padding: 16px 0; border-left: 0; }
  .assure-list li + li { border-top: 1px solid var(--line); }
}

/* Reviews: drawn like Google's own review cards (white card, avatar, Google yellow stars, G mark) */
.revs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: start; }
.g-rev { padding: 16px 18px 18px; border: 1px solid #dadce0; border-radius: 8px; background: var(--white); }
.g-head { display: flex; align-items: center; gap: 12px; }
.g-av { position: relative; display: grid; place-items: center; flex: none; width: 40px; height: 40px; overflow: hidden; border-radius: 50%; background: var(--av); color: #fff; font-size: 18px; font-weight: 500; }
.g-av img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.g-who { display: flex; flex-direction: column; min-width: 0; margin-right: auto; line-height: 1.35; }
.g-who b { color: #202124; font-size: 15px; font-weight: 600; }
.g-who time { color: #70757a; font-size: 13px; }
.g-logo { flex: none; align-self: flex-start; }
.g-stars { display: flex; gap: 1px; margin-top: 12px; }
.g-stars svg { width: 16px; height: 16px; }
.g-stars .on { fill: #fbbc04; }
.g-stars .off { fill: #dadce0; }
.g-rev blockquote { margin-top: 8px; color: #3c4043; font-size: 15px; line-height: 1.6; }
@media (max-width: 900px) { .revs { grid-template-columns: 1fr; gap: 12px; } }

/* Visit */
.visit-in { display: grid; grid-template-columns: 1fr 1.5fr; gap: 40px; align-items: start; }
.visit address { margin-top: 16px; font-size: 17px; line-height: 1.6; color: var(--ink); }
.facts { margin-top: 14px; font-size: 15px; color: var(--muted); }
.facts li { padding: 3px 0; }
.map { overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: var(--bg-2); }
.map iframe { display: block; width: 100%; height: 400px; border: 0; }
@media (max-width: 900px) { .visit-in { grid-template-columns: 1fr; gap: 24px; } .map iframe { height: 320px; } }

/* Inner pages */
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 20px; font-size: 14px; color: var(--muted); }
.crumbs a { color: var(--muted); }
.crumbs [aria-current] { color: var(--ink); }
.page { padding-top: 22px; }
.page-head { margin-bottom: 32px; }
.page-hi { display: block; margin-top: 4px; font-size: 19px; font-weight: 600; color: var(--gold-ink); }
.also { margin-top: 44px; padding-top: 28px; border-top: 1px solid var(--line); }
.also ul { display: flex; flex-wrap: wrap; gap: 10px 26px; margin: 14px 0 12px; font-size: 16.5px; color: var(--ink); }
.also li::before { content: ""; display: inline-block; width: 6px; height: 6px; margin: 0 10px 2px 0; border-radius: 50%; background: var(--gold); }

/* Product pages */
.prod { display: grid; grid-template-columns: 5fr 7fr; gap: 48px; align-items: start; }
.prod-copy { position: sticky; top: 24px; }
.prod .page-head { margin-bottom: 0; }
.prod-solo { grid-template-columns: minmax(0, 680px); }
.points { margin-top: 22px; }
.points li { position: relative; padding: 9px 0 9px 28px; border-top: 1px solid var(--line); color: var(--ink); }
.points li:last-child { border-bottom: 1px solid var(--line); }
.points li::before { content: ""; position: absolute; left: 4px; top: 16px; width: 10px; height: 5px; border: solid var(--gold); border-width: 0 0 2px 2px; transform: rotate(-45deg); }
.prod .muted { margin-top: 16px; }
.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.g-1 { grid-template-columns: minmax(0, 520px); }
.g-3 figure:first-child, .g-5 figure:first-child { grid-column: span 2; }
@media (max-width: 900px) {
  .prod { grid-template-columns: 1fr; gap: 32px; }
  .prod-copy { position: static; }
  .gallery { gap: 10px; }
}
.related h2 { margin-bottom: 24px; }

/* Jewellery page: one section per metal, photo cards then WhatsApp tiles for the rest */
.jump { display: flex; flex-wrap: wrap; gap: 8px; margin: -8px 0 8px; }
.jump a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border: 1px solid rgba(28, 25, 23, .2); border-radius: 6px; background: var(--white); color: var(--ink); font-size: 15px; font-weight: 600; text-decoration: none; }
.jump a:hover { border-color: var(--ink); }
.metal { padding-top: 44px; scroll-margin-top: 12px; }
.metal + .metal { margin-top: 44px; border-top: 1px solid var(--line); }
.metal-line { margin: 6px 0 22px; color: var(--muted); }
.more-h { margin: 32px 0 14px; font-size: 17px; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.tiles a { display: flex; flex-direction: column; gap: 6px; height: 100%; padding: 16px; border: 1px solid var(--line); border-radius: 8px; background: var(--white); color: var(--ink); text-decoration: none; }
.tiles a:hover { border-color: var(--gold); }
.tiles b { font-size: 16px; font-weight: 600; }
.tiles span { display: inline-flex; align-items: center; gap: 6px; color: #1e7e34; font-size: 14px; font-weight: 600; }
.tiles .i { width: 17px; height: 17px; }
@media (max-width: 560px) { .tiles { grid-template-columns: 1fr 1fr; } }

/* Services and visit pages */
.svcs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px 32px; }
.svc { padding-top: 18px; border-top: 2px solid var(--gold-l); scroll-margin-top: 20px; }
.svc h2 { font-size: 24px; line-height: 32px; }
.svc p { margin-top: 8px; }
.svc-acts { display: flex; flex-wrap: wrap; gap: 8px 20px; font-weight: 600; font-size: 15px; }
.svc-acts a { display: inline-flex; align-items: center; gap: 7px; min-height: 40px; text-decoration: none; }
.svc-acts .i { width: 18px; height: 18px; }
@media (max-width: 900px) { .svcs { grid-template-columns: 1fr; } }
.contact { display: flex; flex-wrap: wrap; gap: 10px; }
.contact a { display: inline-flex; align-items: center; gap: 9px; min-height: 48px; padding: 0 18px; border: 1px solid rgba(28, 25, 23, .2); border-radius: 6px; background: var(--white); color: var(--ink); font-weight: 600; font-size: 15px; text-decoration: none; }
.contact a:hover { border-color: var(--ink); }
.contact .i { color: var(--maroon); }
.about .page-head { margin-bottom: 22px; }

/* Services line above the footer */
.subfoot { margin-top: 0; background: var(--bg-2); border-top: 1px solid var(--line); }
.subfoot-in { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 22px; padding: 18px 0; font-size: 15px; }
.subfoot p a { color: var(--ink); font-weight: 600; text-decoration: none; }
.subfoot ul { display: flex; flex-wrap: wrap; gap: 4px 22px; }
.subfoot ul a { color: var(--ink-2); }

/* Footer */
.foot { background: var(--foot); color: #e6dccd; font-size: 15px; }
.foot-in { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 32px 48px; padding: 44px 0 48px; }
.foot a { color: #f6ecdb; text-decoration: none; }
.foot a:hover { text-decoration: underline; }
.foot-name { display: flex; flex-direction: column; margin-bottom: 10px; color: #fff; font-size: 19px; font-weight: 700; line-height: 1.35; }
.foot-name .hi { font-size: 15px; font-weight: 600; color: var(--gold-l); }
.foot address { max-width: 34ch; line-height: 1.6; }
.foot-contact li a { display: inline-flex; align-items: center; gap: 10px; min-height: 36px; }
.foot-contact .i { color: var(--gold-l); width: 18px; height: 18px; }
.foot-pages { columns: 2; column-gap: 24px; }
.foot-pages li a { display: inline-block; padding: 6px 0; }
@media (max-width: 900px) { .foot-in { grid-template-columns: 1fr; gap: 24px; padding: 36px 0 40px; } }

/* Phone action dock */
.dock { display: none; }
@media (max-width: 760px) {
  body { padding-bottom: calc(62px + env(safe-area-inset-bottom)); }
  .dock { display: grid; grid-template-columns: repeat(3, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; padding-bottom: env(safe-area-inset-bottom); background: var(--white); border-top: 1px solid var(--line); box-shadow: 0 -4px 14px rgba(28, 25, 23, .06); }
  .dock a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 62px; color: var(--ink); font-size: 12.5px; font-weight: 600; text-decoration: none; }
  .dock a + a { border-left: 1px solid var(--line); }
  .dock .i { width: 22px; height: 22px; color: var(--maroon); }
  .dock a:first-child .i { color: #1e7e34; }
}
