@import url("../fonts/fonts.css");

:root {
  --bg: #fbf8f3; --paper: #ffffff; --surface: #f3ece2; --ink: #1f1a15; --muted: #6b6258; --line: #e6ddcf;
  --wood: #9a5b2a; --wood-dark: #7c4720; --wood-ink: #ffffff; --radius: 3px; --wrap: 1180px;
  --font: "Mukta", system-ui, -apple-system, "Segoe UI", sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.55 var(--font); -webkit-font-smoothing: antialiased; }
img, canvas { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--wood); outline-offset: 2px; }
[hidden] { display: none !important; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* header */
.vh { position: sticky; top: 0; z-index: 20; background: rgba(251,248,243,.94); border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.vh .wrap { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; font-size: 20px; letter-spacing: -0.01em; white-space: nowrap; }
.brand::before { content: ""; width: 12px; height: 12px; background: var(--wood); border-radius: 2px;
  background-image: repeating-linear-gradient(90deg, rgba(255,255,255,.18) 0 2px, transparent 2px 4px); }
.nav { display: flex; gap: 22px; margin-left: auto; font-size: 15px; }
.nav a { text-decoration: none; color: var(--muted); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }
.lang { border: 1px solid var(--line); background: var(--paper); border-radius: var(--radius); padding: 5px 8px; font-size: 15px; width: auto; }
@media (max-width: 720px) { .vh .wrap { height: 56px; gap: 12px; } .nav { gap: 14px; } .nav .hide-sm { display: none; } .brand { font-size: 17px; } }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 22px; border: 1px solid var(--ink);
  border-radius: var(--radius); background: transparent; color: var(--ink); font-weight: 600; font-size: 16px; text-decoration: none; cursor: pointer; }
.btn:hover { background: var(--ink); color: #fff; }
.btn.primary { background: var(--wood); border-color: var(--wood); color: var(--wood-ink); }
.btn.primary:hover { background: var(--wood-dark); border-color: var(--wood-dark); }
.btn.ghost { border-color: var(--line); background: var(--paper); }
.btn.ghost:hover { border-color: var(--ink); color: var(--ink); }
.btn.small { min-height: 38px; padding: 0 14px; font-size: 15px; }
.btn[disabled] { opacity: .45; pointer-events: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; }

/* home */
.hero { padding: 72px 0 64px; border-bottom: 1px solid var(--line); }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; }
.eyebrow { font-size: 14px; color: var(--wood); font-weight: 600; margin: 0 0 16px; }
.hero h1 { font-size: clamp(34px, 5.2vw, 60px); line-height: 1.04; letter-spacing: -0.025em; font-weight: 700; margin: 0 0 20px; }
.hero p { font-size: clamp(17px, 1.7vw, 20px); color: var(--muted); margin: 0 0 30px; max-width: 52ch; }
.hero-art { aspect-ratio: 4 / 3; background: var(--surface); border-radius: var(--radius); }
.hero-art canvas { width: 100%; height: 100%; }
@media (max-width: 860px) { .hero .wrap { grid-template-columns: 1fr; } .hero { padding: 40px 0; } }

.family { padding: 60px 0 4px; }
.family-head { display: flex; align-items: baseline; gap: 14px; border-top: 2px solid var(--ink); padding-top: 12px; margin-bottom: 26px; }
.family-head .idx { color: var(--wood); font-weight: 700; font-size: 14px; }
.family-head h2 { margin: 0; font-size: clamp(22px, 2.6vw, 28px); font-weight: 700; letter-spacing: -0.015em; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 32px 24px; }
.card { display: flex; flex-direction: column; text-align: left; background: none; border: 0; padding: 0; cursor: pointer; }
.card .ph { aspect-ratio: 4 / 3; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 14px; overflow: hidden; }
.card .ph canvas, .card .ph img { width: 100%; height: 100%; object-fit: contain; }
.card h3 { margin: 0 0 4px; font-size: 19px; font-weight: 700; }
.card .note { margin: 0 0 10px; color: var(--muted); font-size: 15px; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card .meta { margin-top: auto; display: flex; justify-content: space-between; font-size: 15px; }
.card .meta .go { color: var(--wood); font-weight: 600; }

.exp { margin-top: 80px; padding: 64px 0; background: var(--surface); }
.exp .wrap { display: grid; grid-template-columns: 1fr 1.3fr; gap: 40px; }
.exp h2 { font-size: clamp(26px, 3.2vw, 38px); margin: 0; letter-spacing: -0.02em; font-weight: 700; line-height: 1.1; }
.exp .since { color: var(--wood); font-weight: 700; font-size: 18px; margin: 12px 0 0; }
.exp ul { list-style: none; padding: 0; margin: 0; }
.exp li { padding: 14px 0; border-top: 1px solid var(--line); font-size: 18px; }
@media (max-width: 760px) { .exp .wrap { grid-template-columns: 1fr; } }

.band { padding: 64px 0; background: var(--ink); color: #fff; }
.band h2 { font-size: clamp(26px, 3.4vw, 40px); letter-spacing: -0.02em; margin: 0 0 10px; font-weight: 700; }
.band p { color: #d2c8bb; margin: 0 0 26px; max-width: 56ch; }
.band .btn { border-color: #fff; color: #fff; }
.band .btn:hover { background: #fff; color: var(--ink); }
.band .btn.primary { background: var(--wood); border-color: var(--wood); }

dialog { border: 0; padding: 0; width: 100%; max-width: min(980px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); border-radius: var(--radius); box-shadow: 0 24px 80px rgba(0,0,0,.25); background: var(--paper); }
dialog::backdrop { background: rgba(31,26,21,.45); }
.pd { display: grid; grid-template-columns: 1.15fr 1fr; }
.pd .art { background: var(--surface); aspect-ratio: 1; }
.pd .art canvas, .pd .art img { width: 100%; height: 100%; object-fit: contain; }
.pd .info { padding: 30px 28px; overflow-y: auto; max-height: calc(100dvh - 24px); }
.pd h2 { margin: 0 0 4px; font-size: 28px; font-weight: 700; letter-spacing: -0.02em; }
.pd .fam { color: var(--muted); margin: 0 0 18px; font-size: 15px; }
.mat { border-top: 1px solid var(--line); padding: 12px 0; }
.mat strong { display: flex; justify-content: space-between; gap: 10px; }
.mat p { margin: 2px 0 0; color: var(--muted); font-size: 15px; }
.pd .btn-row { margin-top: 22px; }
.close { position: absolute; top: 10px; right: 10px; width: 40px; height: 40px; border: 0; border-radius: 50%; background: rgba(255,255,255,.9); font-size: 22px; cursor: pointer; }
@media (max-width: 760px) { .pd { grid-template-columns: 1fr; } .pd .art { aspect-ratio: 4 / 3; } .pd .info { max-height: none; } }

.vf { border-top: 1px solid var(--line); padding: 40px 0 48px; font-size: 15px; color: var(--muted); }
.vf .cols { display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px; }
.vf strong { display: block; color: var(--ink); margin-bottom: 4px; }
.vf a { text-decoration: none; }
.vf .credit { margin-top: 28px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 13px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
@media (max-width: 720px) { .vf .cols { grid-template-columns: 1fr; } }
.loading { color: var(--muted); padding: 40px 0; }

/* planner */
.studio { display: grid; grid-template-columns: minmax(0, 1fr) 420px; min-height: calc(100dvh - 64px); border-bottom: 1px solid var(--line); }
.stage-wrap { position: sticky; top: 64px; height: calc(100dvh - 64px); display: flex; flex-direction: column; background: var(--surface); }
.stage { flex: 1; min-height: 0; position: relative; }
.stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; cursor: grab; touch-action: none; }
.stage canvas:active { cursor: grabbing; }
.stage .tools { position: absolute; right: 12px; top: 12px; display: flex; gap: 6px; }
.stage .tools button { width: 40px; height: 40px; border: 1px solid var(--line); background: var(--paper); border-radius: var(--radius); cursor: pointer; font-size: 17px; }
.stage .hint { position: absolute; left: 14px; top: 12px; font-size: 13px; color: var(--muted); background: rgba(251,248,243,.85); padding: 2px 8px; border-radius: 99px; }
.stage-bar { padding: 10px 20px; font-size: 14px; color: var(--muted); border-top: 1px solid var(--line); background: var(--paper); line-height: 1.4; }
.panel { border-left: 1px solid var(--line); padding: 8px 24px 40px; background: var(--paper); }
.sec { border-bottom: 1px solid var(--line); padding: 20px 0; }
.sec > h2 { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 700; margin: 0 0 14px; }
:lang(hi) .sec > h2, :lang(mr) .sec > h2 { letter-spacing: .02em; font-size: 14px; }
.field { display: flex; flex-direction: column; gap: 4px; margin-bottom: 12px; font-size: 14px; color: var(--muted); }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.row3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; }
.panel input[type=text], .panel input[type=number], .panel input[type=email], .panel input[type=tel], .panel input[type=date], .panel select, .panel textarea {
  width: 100%; min-height: 42px; padding: 8px 10px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; color: var(--ink); font-size: 16px; }
.panel textarea { min-height: 72px; resize: vertical; }
.panel input:focus, .panel select:focus, .panel textarea:focus { outline: none; border-color: var(--ink); }
.hint { font-size: 14px; color: var(--muted); margin: 6px 0 0; line-height: 1.45; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { min-height: 38px; padding: 0 14px; border: 1px solid var(--line); border-radius: 99px; background: #fff; cursor: pointer; font-size: 15px; }
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.chip.wide { flex-basis: 100%; }
.checks { display: grid; gap: 6px; }
.check { display: flex; gap: 10px; align-items: flex-start; padding: 8px 10px; border: 1px solid var(--line); border-radius: var(--radius); cursor: pointer; font-size: 15px; }
.check input { margin-top: 4px; accent-color: var(--wood); }
.check .add { margin-left: auto; color: var(--muted); white-space: nowrap; }
.price-box .line { font-size: 15px; }
.price-box .amount { font-size: 30px; font-weight: 700; letter-spacing: -0.01em; }
.price-box .adds { font-size: 15px; color: var(--muted); margin: 4px 0 0; }
.price-box .quote { margin: 14px 0 0; padding: 12px 14px; background: var(--surface); border-left: 3px solid var(--wood); font-weight: 600; }
.price-box .fine { font-size: 13px; color: var(--muted); margin-top: 10px; }
details summary { cursor: pointer; font-size: 15px; margin-bottom: 10px; }
.actions { display: grid; gap: 10px; margin-top: 16px; }
.actions .btn { width: 100%; }
.od { padding: 28px; }
.od h2 { margin: 0 0 12px; font-size: 24px; font-weight: 700; }
.od .files { list-style: none; padding: 0; margin: 0 0 18px; font-size: 15px; }
.od .files li { padding: 8px 10px; background: var(--surface); margin-bottom: 6px; display: flex; justify-content: space-between; }
.od .opt { border-top: 1px solid var(--line); padding: 14px 0; }
.od .opt .btn { width: 100%; }
.od .opt p { margin: 8px 0 0; font-size: 14px; color: var(--muted); }
#order-dialog { max-width: 520px; }
@media (max-width: 900px) {
  .studio { grid-template-columns: 1fr; }
  .stage-wrap { top: 56px; height: 44vh; height: 44dvh; z-index: 5; border-bottom: 1px solid var(--line); }
  .stage-bar { padding: 6px 12px; font-size: 13px; }
  .panel { border-left: 0; padding: 0 16px 40px; }
}
