/* New Mahadev Engineering Works — static pages */
:root{
  --navy:#1B3A6B; --navy-deep:#122A50; --gold:#D4A739; --gold-deep:#B88C1D;
  --paper:#F0F4FA; --ink:#1A2332; --mute:#475672; --line:#D5DDE9;
  --red:#C8372D; --yel:#F2B01E; --blu:#1E88D6; --wa:#0E7A45;
}
*{ box-sizing:border-box; margin:0; padding:0; }
html{ -webkit-text-size-adjust:100%; }
body{
  font-family:'Noto Sans Devanagari','Roboto','Segoe UI',system-ui,sans-serif;
  background:var(--paper); color:var(--ink); font-size:16px; line-height:1.75;
}
a{ color:var(--navy); }
img{ max-width:100%; }
:focus-visible{ outline:3px solid var(--gold-deep); outline-offset:2px; }
.skip{ position:absolute; left:-999px; top:0; }
.skip:focus{ left:8px; top:8px; background:#fff; padding:8px 12px; z-index:300; border-radius:6px; }
.wrap{ max-width:640px; margin:0 auto; padding:0 18px; }

/* slim header on inner pages */
.top{ background:var(--navy-deep); color:#fff; }
.top .wrap{ display:flex; align-items:center; justify-content:space-between; gap:12px; min-height:54px; }
.brand{ color:#fff; text-decoration:none; font-weight:700; font-size:.95rem; line-height:1.3; display:flex; align-items:center; gap:10px; }
.blogo, .hlogo{ border-radius:50%; object-fit:cover; background:#fff; border:2px solid var(--gold); flex:none; }
.blogo{ width:36px; height:36px; }
.hlogo{ width:76px; height:76px; display:block; margin-bottom:12px; }
.blogo[hidden], .hlogo[hidden]{ display:none; }
.callpill{
  display:inline-flex; align-items:center; gap:6px; min-height:40px; padding:6px 14px; border-radius:999px;
  background:var(--gold); color:var(--navy-deep); text-decoration:none; font-weight:700; font-size:.92rem; white-space:nowrap;
}
.callpill svg{ width:18px; height:18px; fill:none; stroke:currentColor; stroke-width:2; stroke-linecap:round; stroke-linejoin:round; }

/* painted-panel strip: red / yellow / blue like the panels on the bodies we paint */
.strip{
  height:7px;
  background:repeating-linear-gradient(90deg,
    var(--red) 0 44px, #fff 44px 48px, var(--yel) 48px 92px, #fff 92px 96px, var(--blu) 96px 140px, #fff 140px 144px);
}
.strip.thin{ height:5px; margin:0; }

/* home hero */
.hero{ background:var(--navy); color:#fff; padding-top:26px; }
.hero h1{ font-size:1.8rem; line-height:1.25; font-weight:700; }
.seam{ width:56px; height:4px; border-radius:2px; background:var(--gold); margin:12px 0 14px; }
.chips{ display:flex; flex-wrap:wrap; gap:8px; margin-bottom:14px; }
.chip{ border:1px solid rgba(255,255,255,.38); border-radius:6px; padding:3px 10px; font-size:.86rem; line-height:1.6; }
.chip b{ color:var(--gold); font-weight:700; letter-spacing:.3px; }
.hero address{ font-style:normal; font-size:1rem; margin-bottom:18px; }
.mapbar{ display:block; background:var(--gold); color:var(--navy-deep); text-decoration:none; font-weight:700; }
.mapbar .wrap{ display:flex; align-items:center; gap:12px; min-height:60px; }
.mapbar svg{ width:24px; height:24px; flex:none; fill:none; stroke:currentColor; stroke-width:2; stroke-linecap:round; stroke-linejoin:round; }
.mapbar span{ flex:1; line-height:1.4; }
.mapbar:active{ background:var(--gold-deep); }

/* content */
main{ display:block; }
.sec{ padding:26px 0; }
.sec + .sec{ border-top:1px solid var(--line); }
h1.page{ font-size:1.55rem; line-height:1.3; color:var(--navy-deep); margin-bottom:12px; }
h2{ font-size:1.2rem; line-height:1.4; color:var(--navy); margin-bottom:10px; }
p{ max-width:62ch; }
p + p{ margin-top:10px; }
.lead{ font-size:1.05rem; }
.crumbs{ font-size:.85rem; color:var(--mute); padding:14px 0 0; line-height:1.5; }
.crumbs a{ color:var(--mute); }
.plain{ padding-left:1.2rem; }
.plain li{ margin:6px 0; }
.steps{ list-style:none; counter-reset:s; }
.steps li{ counter-increment:s; position:relative; padding:8px 0 8px 40px; }
.steps li::before{
  content:counter(s); position:absolute; left:0; top:10px; width:28px; height:28px; border-radius:50%;
  background:var(--navy); color:#fff; font-weight:700; font-size:.9rem; display:grid; place-items:center; line-height:1;
}
.note{ background:#fff; border-left:4px solid var(--gold); padding:12px 14px; border-radius:0 8px 8px 0; font-size:.95rem; }

.rows{ list-style:none; }
.rows a{
  display:flex; align-items:center; justify-content:space-between; gap:12px; min-height:60px; padding:12px 2px;
  border-bottom:1px solid var(--line); text-decoration:none; color:var(--ink);
}
.rows strong{ display:block; color:var(--navy); font-size:1.02rem; line-height:1.4; }
.rows .d{ display:block; font-size:.9rem; color:var(--mute); line-height:1.5; }
.rows svg{ width:20px; height:20px; flex:none; fill:none; stroke:var(--gold-deep); stroke-width:2; stroke-linecap:round; stroke-linejoin:round; }

.btns{ display:flex; flex-wrap:wrap; gap:10px; margin-top:16px; }
.btn{
  flex:1 1 150px; display:inline-flex; align-items:center; justify-content:center; gap:8px;
  min-height:50px; padding:10px 16px; border-radius:10px; border:2px solid transparent;
  font-weight:700; font-size:1rem; text-decoration:none; line-height:1.3; text-align:center;
}
.btn svg{ width:20px; height:20px; flex:none; fill:none; stroke:currentColor; stroke-width:1.9; stroke-linecap:round; stroke-linejoin:round; }
.btn-call{ background:var(--navy); color:#fff; }
.btn-wa{ background:var(--wa); color:#fff; }
.btn-gold{ background:var(--gold); color:var(--navy-deep); }
.btn-line{ background:#fff; color:var(--navy); border-color:var(--navy); }

details{ border-bottom:1px solid var(--line); }
summary{ list-style:none; cursor:pointer; position:relative; min-height:52px; padding:13px 32px 13px 0; font-weight:600; color:var(--navy-deep); line-height:1.5; }
summary::-webkit-details-marker{ display:none; }
summary::after{ content:"+"; position:absolute; right:4px; top:9px; font-size:1.5rem; color:var(--gold-deep); font-weight:400; }
details[open] summary::after{ content:"\2013"; }
details p{ padding:0 0 14px; }

.kv{ display:grid; grid-template-columns:auto 1fr; gap:6px 14px; }
.kv dt{ color:var(--mute); }
.kv dd{ font-weight:600; word-break:break-word; }

.mapframe{ border:0; width:100%; height:260px; border-radius:10px; background:#dfe6f2; display:block; margin:14px 0; }

/* photo cards: same look as the calculator's "recent work" cards */
.pgrid{ display:grid; grid-template-columns:repeat(auto-fit,minmax(150px,1fr)); gap:12px; grid-auto-flow:dense; margin-top:12px; }
.pcard{ position:relative; border-radius:14px; overflow:hidden; background:#e9edf3; aspect-ratio:4/3; box-shadow:0 3px 10px rgba(20,24,28,.10); border:2px solid transparent; transition:.25s ease; }
@media (hover:hover){ .pcard:hover{ box-shadow:0 12px 26px rgba(27,58,107,.25); transform:translateY(-5px); border-color:var(--gold); } .pcard:hover img{ transform:scale(1.07); } }
@media (prefers-reduced-motion:no-preference){ .pcard{ animation:pfade .5s ease both; } .pcard img{ transition:transform .4s ease; } }
@keyframes pfade{ from{ opacity:0; transform:translateY(10px); } to{ opacity:1; transform:none; } }
.pcard.feat{ grid-column:span 2; }
.pcard .open{ position:absolute; inset:0; display:flex; align-items:center; justify-content:center; width:100%; height:100%; border:0; padding:0; background:none; cursor:pointer; text-decoration:none; overflow:hidden; }
.pcard .bg{ position:absolute; inset:-10%; width:120%; height:120%; object-fit:cover; filter:blur(16px) brightness(.72) saturate(1.1); transform:scale(1.1); z-index:0; }
.pcard img:not(.bg){ position:relative; z-index:1; width:100%; height:100%; object-fit:contain; display:block; }
.pcard .play{ width:46px; height:46px; border-radius:50%; background:rgba(20,24,28,.6); color:#fff; display:flex; align-items:center; justify-content:center; font-size:1.2rem; }
.pcard .wm{ position:absolute; top:50%; right:0; transform:translateY(-50%); z-index:3; background:rgba(20,24,28,.55); color:#fff; font-size:.58rem; font-weight:700; letter-spacing:.5px; padding:6px 4px; border-radius:4px 0 0 4px; pointer-events:none; writing-mode:vertical-rl; white-space:nowrap; line-height:1.2; }
.pcard .cat{ position:absolute; top:6px; left:6px; z-index:2; pointer-events:none; background:rgba(27,58,107,.82); color:#fff; font-size:.62rem; font-weight:700; padding:3px 9px; border-radius:20px; line-height:1.5; }
.pcard .new{ position:absolute; top:6px; right:6px; z-index:2; pointer-events:none; background:linear-gradient(135deg,#e04a3f,#c0392b); color:#fff; font-size:.62rem; font-weight:800; padding:3px 9px; border-radius:20px; line-height:1.5; }
.pcard .cap{ position:absolute; left:0; right:44px; bottom:0; z-index:2; pointer-events:none; padding:18px 10px 8px; color:#fff; font-size:.74rem; line-height:1.4; background:linear-gradient(0deg,rgba(10,20,40,.8),rgba(10,20,40,0)); }
.pcard .share{ position:absolute; bottom:8px; right:8px; z-index:4; width:30px; height:30px; padding:0; border:0; border-radius:50%; background:#25D366; color:#fff; font-size:.85rem; line-height:1; display:flex; align-items:center; justify-content:center; box-shadow:0 2px 8px rgba(0,0,0,.3); cursor:pointer; }

/* gallery (same look as the calculator's "recent work" section) */
.gal{ padding-top:24px; }
.gtitle{ font-size:1.3rem; font-weight:800; color:var(--navy-deep); text-align:center; line-height:1.45; }
.gtitle::before{ content:'\1F527'; display:block; font-size:1.3rem; margin-bottom:4px; opacity:.85; }
.gtitle::after{ content:''; display:block; width:64px; height:3px; margin:12px auto 14px; border-radius:3px; background:linear-gradient(90deg,var(--gold-deep),var(--gold)); }
.glead{ text-align:center; color:var(--mute); font-size:.92rem; line-height:1.7; margin:0 auto 18px; }
.filters{ display:flex; flex-wrap:wrap; gap:8px; justify-content:center; margin:0 0 20px; }
.filters button{
  font:inherit; font-size:.8rem; font-weight:700; min-height:40px; padding:7px 16px; border-radius:20px;
  border:1px solid #d8dee6; background:#eef1f6; color:var(--navy-deep); cursor:pointer;
}
.filters button[aria-pressed="true"]{ background:linear-gradient(135deg,var(--navy-deep),var(--navy)); color:#fff; border-color:var(--navy-deep); box-shadow:0 3px 8px rgba(27,58,107,.3); }
.empty{ padding:22px 0; color:var(--mute); text-align:center; }

.lb{ position:fixed; inset:0; z-index:400; background:rgba(8,14,28,.96); display:flex; align-items:center; justify-content:center; }
.lb[hidden]{ display:none; }
.lb img{ max-width:100%; max-height:84vh; object-fit:contain; display:block; touch-action:pan-y; }
.lb button{ position:absolute; border:0; background:rgba(255,255,255,.16); color:#fff; font-size:1.5rem; line-height:1; width:48px; height:48px; border-radius:50%; cursor:pointer; }
.lb .x{ top:14px; right:14px; }
.lb .pv{ left:10px; top:50%; margin-top:-24px; }
.lb .nx{ right:10px; top:50%; margin-top:-24px; }
.lb .meta{ position:absolute; left:0; right:0; bottom:0; padding:14px 18px calc(14px + env(safe-area-inset-bottom)); color:#fff; font-size:.92rem; line-height:1.5; background:linear-gradient(0deg, rgba(8,14,28,.9), rgba(8,14,28,0)); }
.lb .wm{ position:absolute; left:14px; top:20px; color:rgba(255,255,255,.75); font-size:.78rem; font-weight:700; letter-spacing:.4px; }

.foot{ background:var(--navy-deep); color:#d9e2f1; padding:22px 0 26px; font-size:.9rem; line-height:1.7; }
.foot a{ color:#fff; }
.foot .links{ display:flex; flex-wrap:wrap; gap:6px 18px; margin-top:10px; }
.foot b{ color:#fff; }

/* owner: login lock + in-place text editing */
.lockbtn{ margin-top:12px; width:34px; height:34px; padding:0; border-radius:50%; border:1px solid rgba(255,255,255,.28); background:transparent; color:#fff; font-size:.85rem; opacity:.65; cursor:pointer; }
.edfab{ position:fixed; right:12px; bottom:calc(84px + env(safe-area-inset-bottom)); z-index:90; min-height:46px; padding:8px 18px; border:0; border-radius:999px; background:var(--gold); color:var(--navy-deep); font:inherit; font-weight:700; box-shadow:0 4px 14px rgba(18,42,80,.35); cursor:pointer; }
.edfab[hidden], .edtoast[hidden], .edm[hidden]{ display:none; }
.ed-on [data-t]{ outline:1.5px dashed var(--gold-deep); outline-offset:2px; cursor:pointer; }
.edm{ position:fixed; inset:0; z-index:520; display:flex; align-items:flex-end; justify-content:center; background:rgba(8,14,28,.6); }
.edbox{ width:100%; max-width:560px; background:#fff; border-radius:16px 16px 0 0; padding:16px 18px calc(16px + env(safe-area-inset-bottom)); }
.edbox h3{ font-size:1.05rem; color:var(--navy-deep); margin-bottom:10px; }
.edbox textarea{ width:100%; min-height:130px; padding:10px; font:inherit; font-size:16px; line-height:1.6; border:1.5px solid var(--navy); border-radius:8px; resize:vertical; color:var(--ink); }
.edbtns{ display:flex; flex-wrap:wrap; gap:8px; margin-top:12px; }
.edbtns button{ flex:1 1 100px; min-height:46px; border-radius:10px; border:2px solid var(--navy); background:#fff; color:var(--navy); font:inherit; font-weight:700; cursor:pointer; }
.edbtns .go{ background:var(--navy); color:#fff; }
.edtoast{ position:fixed; left:50%; transform:translateX(-50%); bottom:calc(142px + env(safe-area-inset-bottom)); z-index:510; max-width:92vw; padding:8px 16px; border-radius:999px; background:var(--navy-deep); color:#fff; font-size:.9rem; line-height:1.5; text-align:center; }
