/* Mahalaxmi Jewellers website. Shop palette: cream, maroon, gold (same as the reels and invoices).
   Display type is Bodoni Moda (self-hosted, SIL OFL), the web cousin of the Didot used on the shop's
   Instagram carousels. Body copy stays in the phone's own sans so pages load fast. */
@font-face { font-family: "Bodoni Moda"; src: url("fonts/bodoni-moda.woff2") format("woff2"); font-weight: 400 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Bodoni Moda"; src: url("fonts/bodoni-moda-italic.woff2") format("woff2"); font-weight: 400 600; font-style: italic; font-display: swap; }

:root {
  --cream: #f6f2ea; --paper: #fbf8f2; --sand: #ebe3d4;
  --ink: #1f1813; --ink-2: #463c33; --muted: #685d50;
  --maroon: #7a1f1f; --maroon-d: #5e1616; --night: #3a1010;
  --gold: #9c7a1e; --gold-ink: #77590d; --gold-l: #dcc48e;
  --line: #ddd1bd;
  --display: "Bodoni Moda", Didot, "Bodoni 72", "Bodoni MT", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Noto Sans Devanagari", sans-serif;
  --pad: 20px;
  --gap: 8px;
}
@media (min-width: 761px) { :root { --pad: 40px; --gap: 14px; } }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 16px/1.65 var(--sans); color: var(--ink-2); background: var(--cream); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--maroon); text-underline-offset: .22em; text-decoration-thickness: 1px; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.06; color: var(--ink); margin: 0; letter-spacing: -.005em; font-optical-sizing: auto; }
h1 em, h2 em, h3 em, .promise em { font-style: italic; color: var(--maroon); }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
figure { margin: 0; }
.wrap { width: min(1320px, 100% - 2 * var(--pad)); margin-inline: auto; }
.i { width: 20px; height: 20px; flex: none; }
.hi { display: block; margin-top: 10px; font: 500 15px/1.4 var(--sans); color: var(--gold-ink); letter-spacing: 0; }

/* Focus, skip link, motion */
a:focus-visible { outline: 2px solid var(--maroon); outline-offset: 3px; border-radius: 1px; }
.foot a:focus-visible, .dock 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(--cream); }
.skip:focus { left: 8px; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

/* Buttons: square-cornered, one solid and one outlined */
.btn { display: inline-flex; align-items: center; gap: 10px; min-height: 50px; padding: 0 22px; border: 1px solid var(--maroon); background: var(--maroon); color: #fff8ee; font-size: 15.5px; font-weight: 600; text-decoration: none; border-radius: 2px; transition: background .15s, border-color .15s; }
.btn:hover { background: var(--maroon-d); border-color: var(--maroon-d); }
.btn-line { background: transparent; color: var(--ink); border-color: rgba(31, 24, 19, .32); }
.btn-line:hover { background: transparent; border-color: var(--ink); }
.btn .i { width: 19px; height: 19px; }
.acts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }

/* Header */
.top { border-bottom: 1px solid var(--line); background: var(--cream); }
.top-in { display: flex; align-items: center; gap: 32px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; margin-right: auto; padding: 8px 0; }
.brand img { border-radius: 50%; }
.brand span { display: flex; flex-direction: column; line-height: 1.15; }
.brand b { font: 500 21px/1.1 var(--display); letter-spacing: .005em; }
.brand small { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.nav { display: flex; gap: 28px; }
.nav a { color: var(--ink-2); text-decoration: none; font-size: 15px; padding: 12px 0; }
.nav a:hover { color: var(--maroon); text-decoration: underline; }
.top-act { display: flex; align-items: center; gap: 2px; }
.ico { display: grid; place-items: center; width: 44px; height: 44px; color: var(--ink); border-radius: 50%; }
.ico:hover { color: var(--maroon); }
.top-tel { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin-left: 10px; padding-left: 18px; border-left: 1px solid var(--line); color: var(--ink); text-decoration: none; font-size: 15px; font-variant-numeric: tabular-nums; }
.top-tel:hover { color: var(--maroon); }

/* Home: hero */
.hero { padding-top: 64px; }
.hero-head { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 64px; align-items: end; padding-bottom: 52px; }
.hero h1 { font-size: clamp(38px, 5.3vw, 84px); line-height: 1.02; }
.lead { font-size: 17px; line-height: 1.65; color: var(--ink-2); max-width: 46ch; }
.hero-aside .acts { margin-top: 24px; }
.hero-photos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; max-width: 1920px; margin-inline: auto; }
.hero-photos img { width: 100%; aspect-ratio: 4 / 5; max-height: 86vh; object-fit: cover; background: var(--sand); }
.hero-photos figcaption { padding: 4px var(--pad) 0 16px; font: italic 400 18px/1.3 var(--display); }
.hero-photos figcaption a { color: var(--ink); text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; }
.hero-photos figcaption a:hover { text-decoration: underline; }

/* Home: promise */
.promise { padding: 104px 0 96px; }
.promise-in { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 32px; max-width: 1080px; }
.promise-mark { width: 48px; height: 48px; border-radius: 50%; margin-top: 8px; }
.promise p { font: 400 clamp(23px, 2.6vw, 36px)/1.38 var(--display); color: var(--ink); }

/* Home: collections, one chapter per collection */
.cols { padding-bottom: 32px; }
.cols-h { display: flex; align-items: center; gap: 20px; font: italic 400 20px/1.3 var(--display); color: var(--muted); margin-bottom: 8px; }
.cols-h::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.ch { padding: 48px 0 56px; }
.ch + .ch { border-top: 1px solid var(--line); }
.ch h3 { font-size: clamp(32px, 3.3vw, 48px); }
.ch h3 a { color: inherit; text-decoration: none; }
.ch h3 a:hover { text-decoration: underline; text-decoration-thickness: 1px; }
.ch-text > p:not(.ch-links) { margin-top: 14px; max-width: 40ch; }
.ch-links { display: flex; flex-wrap: wrap; gap: 0 24px; margin-top: 12px; }
.ch-links a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-size: 15px; text-decoration: none; }
.ch-links a:hover { text-decoration: underline; }
.ch-links .more { color: var(--maroon); font-weight: 600; }
.ch-links .ask { color: var(--ink-2); }
.ch-links .i { width: 18px; height: 18px; }
.tile { display: block; overflow: hidden; background: var(--sand); align-self: start; }
.tile img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; transition: transform .5s ease; }
.tile:hover img { transform: scale(1.025); }
.cols-note { padding: 28px 0 0; border-top: 1px solid var(--line); font-size: 15px; color: var(--muted); }

@media (min-width: 761px) {
  .ch { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); grid-auto-flow: dense; }
  .ch-photos { display: contents; }
  /* header line above the photos */
  .ch-row .ch-text, .ch-mosaic-r .ch-text { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--gap); align-items: end; padding-bottom: 22px; }
  .ch-row h3, .ch-mosaic-r h3 { grid-row: 1 / 3; align-self: end; }
  .ch-row .ch-text > p:not(.ch-links), .ch-mosaic-r .ch-text > p:not(.ch-links) { margin-top: 0; }
  /* text in the first cell */
  .ch-inline .ch-text { align-self: center; padding-right: 24px; }
  /* large photo plus small ones */
  .ch-mosaic .tile-big { grid-column: 1 / 3; grid-row: 1 / 3; }
  .ch-mosaic .ch-text { grid-column: 4; grid-row: 2; align-self: end; padding-left: 8px; }
  .ch-mosaic .ch-text > p:not(.ch-links) { font-size: 15px; }
  .ch-mosaic-r .tile-big { grid-column: 3 / 5; grid-row: 2 / 4; }
  .tile-big { position: relative; align-self: stretch; }
  .tile-big img { position: absolute; inset: 0; height: 100%; aspect-ratio: auto; }
  .ch-pair { display: block; }
  .pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); }
  .pair-item { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); align-items: end; }
  .pair-item .ch-text { padding: 0 16px 0 10px; }
}

/* Visit */
.visit { background: var(--paper); border-top: 1px solid var(--line); }
.visit-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.visit-copy { padding: 88px 64px 88px max(var(--pad), calc((100vw - 1320px) / 2)); }
.visit h2 { font-size: clamp(34px, 3.8vw, 56px); }
.addr { margin-top: 18px; font-size: 17px; max-width: 40ch; }
.facts { margin: 28px 0 0; max-width: 520px; }
.facts div { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 16px; padding: 12px 0; border-top: 1px solid var(--line); }
.facts div:last-child { border-bottom: 1px solid var(--line); }
.facts dt { font-size: 14px; color: var(--muted); }
.facts dd { margin: 0; color: var(--ink); }
.reviews { display: flex; gap: 10px; margin-top: 28px; max-width: 520px; font-size: 15px; color: var(--muted); }
.reviews .i { color: var(--gold); margin-top: 3px; }
.reviews a { font-weight: 600; white-space: nowrap; }
.map { min-height: 520px; background: var(--sand); }
.map iframe { display: block; width: 100%; height: 100%; min-height: 520px; border: 0; }

/* Services line, above the footer */
.services { border-top: 1px solid var(--line); background: var(--cream); }
.services-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 3fr); gap: 32px; align-items: baseline; padding: 30px 0 32px; }
.services-t { font: italic 400 20px/1.3 var(--display); color: var(--ink); }
.services ul { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px var(--gap); font-size: 15px; }
.services li { position: relative; padding-left: 20px; }
.services li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 6px; height: 6px; background: var(--gold); transform: rotate(45deg); }
.services a { font-weight: 600; }

/* Footer */
.foot { background: var(--night); color: #eadbc4; padding: 56px 0 48px; font-size: 15px; }
.foot-in { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1fr); gap: 40px; }
.foot-name { font: 400 24px/1.2 var(--display); color: #fbf3e4; margin-bottom: 12px; }
.foot-name span { display: block; font: 15px/1.6 var(--sans); color: var(--gold-l); margin-top: 4px; }
.foot a { color: #f6ead6; text-decoration: none; }
.foot a:hover { text-decoration: underline; }
.foot-links a, .foot-cols a { display: inline-flex; align-items: center; gap: 12px; min-height: 40px; }
.foot-links .i { color: var(--gold-l); width: 19px; height: 19px; }
.foot-cols a { font-family: var(--display); font-size: 18px; }

/* Product pages */
.crumbs-w { padding-top: 22px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 10px; font-size: 14px; color: var(--muted); }
.crumbs a { color: var(--muted); display: inline-block; padding: 12px 0; }
.crumbs span { padding: 12px 0; }
.product { padding: 8px 0 80px; }
.p-in { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 64px; align-items: start; }
.gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.gallery-lead figure:first-child { grid-column: 1 / -1; }
.gallery img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; background: var(--sand); }
.product-one .p-in { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); }
.p-copy { position: sticky; top: 32px; padding-top: 8px; }
.p-copy h1 { font-size: clamp(38px, 4.2vw, 62px); }
.p-hi { margin-top: 12px; font-size: 17px; color: var(--gold-ink); }
.p-copy .lead { margin-top: 24px; }
.points { margin: 28px 0 20px; }
.points li { position: relative; padding: 12px 0 12px 26px; 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: 3px; top: 50%; width: 7px; height: 7px; margin-top: -4px; background: var(--gold); transform: rotate(45deg); }
.muted { font-size: 14.5px; color: var(--muted); }
.p-dir { margin-top: 10px; }
.p-dir a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-size: 15px; }
.product-solo .p-in { grid-template-columns: minmax(0, 720px); }
.product-solo .p-copy { position: static; padding-top: 32px; }

.others { padding: 64px 0 88px; border-top: 1px solid var(--line); }
.others h2 { font-size: clamp(28px, 2.6vw, 38px); margin-bottom: 28px; }
.others-row { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: var(--gap); }
.other { color: var(--ink); text-decoration: none; }
.other img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; background: var(--sand); transition: opacity .2s; }
.other:hover img { opacity: .88; }
.other span { display: block; padding: 12px 0 4px; font: 400 19px/1.25 var(--display); }
.other:hover span { text-decoration: underline; text-decoration-thickness: 1px; }

/* Mobile action dock: hidden on wide screens */
.dock { display: none; }

@media (max-width: 1080px) and (min-width: 761px) {
  .nav { display: none; }
  .hero-head { grid-template-columns: 1fr; gap: 28px; }
  .p-in { gap: 40px; }
  .ch-mosaic .ch-text > p:not(.ch-links) { display: none; }
  .ch-inline { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ch-inline .ch-text { grid-column: 1 / -1; padding: 0 0 22px; }
  .pair { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  body { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
  .top-in { min-height: 64px; gap: 12px; }
  .brand b { font-size: 19px; }
  .brand img { width: 36px; height: 36px; }
  .nav, .top-tel, .top-act a[aria-label="WhatsApp"] { display: none; }

  .hero { padding-top: 28px; }
  .hero { display: flex; flex-direction: column; }
  .hero-head { display: contents; }
  .hero h1, .hero-aside { width: calc(100% - 2 * var(--pad)); margin-inline: auto; }
  .hero h1 { font-size: 39px; line-height: 1.04; padding-bottom: 24px; }
  .hero-photos { order: 1; }
  .hero-aside { order: 2; padding-top: 28px; }
  .hero-photos { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 14px; gap: 14px 6px; }
  .hero-photos figure:nth-child(2) { grid-column: 1 / -1; order: -1; }
  .hero-photos figure:nth-child(2) img { aspect-ratio: 1 / 1; }
  .hero-photos figcaption { padding: 0 var(--pad) 0; font-size: 16px; }

  .promise { padding: 56px 0; }
  .promise-in { grid-template-columns: 1fr; gap: 18px; }
  .promise-mark { width: 40px; height: 40px; margin: 0; }

  .cols-h { font-size: 18px; }
  .ch { padding: 36px 0 40px; }
  .ch-text { margin-bottom: 18px; }
  .ch-photos { display: flex; gap: var(--gap); overflow-x: auto; scroll-snap-type: x mandatory; margin-inline: calc(-1 * var(--pad)); padding-inline: var(--pad); scroll-padding-inline: var(--pad); scrollbar-width: none; overscroll-behavior-x: contain; }
  .ch-photos::-webkit-scrollbar { display: none; }
  .ch-photos .tile { flex: 0 0 64vw; scroll-snap-align: start; }
  .ch-photos .tile-big { flex-basis: 78vw; }
  .pair { display: grid; gap: 28px; }
  .pair-item { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: center; }
  .pair-item .ch-text { margin: 0; }
  .pair-item h3 { font-size: 27px; }
  .pair-item .ch-text > p:not(.ch-links) { font-size: 14.5px; margin-top: 8px; }
  .pair-item .ch-links { flex-direction: column; margin-top: 4px; }
  .pair-item .ask { display: none; }

  .visit-in { grid-template-columns: 1fr; }
  .visit-copy { padding: 52px var(--pad) 40px; }
  .facts div { grid-template-columns: 76px minmax(0, 1fr); }
  .acts .btn { flex: 1 1 auto; justify-content: center; }
  .map, .map iframe { min-height: 320px; }

  .services-in { display: block; padding: 28px 0 32px; }
  .services ul { display: block; margin-top: 10px; }
  .services li { padding-top: 6px; padding-bottom: 6px; }
  .services li::before { top: 1.02em; }

  .foot { padding: 44px 0 36px; }
  .foot-in { grid-template-columns: 1fr; gap: 28px; }
  .foot-links a, .foot-cols a { min-height: 44px; }

  .crumbs-w { padding-top: 10px; }
  .p-in { display: block; }
  .gallery { display: flex; gap: var(--gap); overflow-x: auto; scroll-snap-type: x mandatory; margin-inline: calc(-1 * var(--pad)); padding-inline: var(--pad); scroll-padding-inline: var(--pad); scrollbar-width: none; }
  .gallery::-webkit-scrollbar { display: none; }
  .gallery figure { flex: 0 0 84vw; scroll-snap-align: start; }
  .product-one .gallery figure { flex-basis: 100%; }
  .p-copy { position: static; padding-top: 28px; }
  .product { padding-bottom: 56px; }
  .product-solo .p-copy { padding-top: 12px; }

  .others { padding: 48px 0 56px; }
  .others h2 { margin-bottom: 20px; }
  .others-row { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; margin-inline: calc(-1 * var(--pad)); padding-inline: var(--pad); scroll-padding-inline: var(--pad); scrollbar-width: none; }
  .others-row::-webkit-scrollbar { display: none; }
  .other { flex: 0 0 42vw; scroll-snap-align: start; }
  .other span { font-size: 17px; }

  .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(--night); box-shadow: 0 -1px 0 rgba(0, 0, 0, .2); }
  .dock a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 64px; color: #fbf3e4; text-decoration: none; font-size: 12.5px; font-weight: 600; letter-spacing: .01em; }
  .dock a + a { border-left: 1px solid rgba(255, 255, 255, .12); }
  .dock .i { width: 22px; height: 22px; color: var(--gold-l); }
}
