/* Demo LayoutKart — mobile-first, system fonts only. Brand colours come
   from the demo row via :root{--primary/--secondary} on each demo page. */
:root{--primary:#2563eb;--secondary:#1e40af;--ink:#1f2937;--muted:#6b7280;--bg:#f9fafb;--line:#e5e7eb}
*{box-sizing:border-box}
body{margin:0;font-family:system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;color:var(--ink);background:#fff;line-height:1.6}
a{color:var(--primary)}
.wrap{max-width:1080px;margin:0 auto;padding:0 16px}
.site-header{position:sticky;top:0;z-index:50;background:#fff;border-bottom:1px solid var(--line)}
.header-inner{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 16px}
.brand{font-weight:800;font-size:20px;color:var(--ink);text-decoration:none;display:flex;align-items:center;gap:8px}
.logo{max-height:44px;width:auto}
.header-actions{display:flex;gap:8px;flex-wrap:wrap}
.btn{display:inline-block;background:var(--primary);color:#fff!important;text-decoration:none;border:0;border-radius:8px;padding:10px 18px;font-size:15px;cursor:pointer}
.btn:hover{opacity:.9}
.btn-outline{background:#fff;color:var(--primary)!important;border:2px solid var(--primary)}
.btn-call{background:var(--secondary)}
.btn-wa{background:#25d366}
.btn:disabled{opacity:.5;cursor:not-allowed}
.hero{background:linear-gradient(135deg,var(--primary),var(--secondary));color:#fff;padding:40px 0}
.hero h1{margin:0 0 10px;font-size:32px;line-height:1.2}
.hero-sub{font-size:18px;opacity:.95}
.hero-cta{display:flex;gap:10px;flex-wrap:wrap;margin-top:18px}
.hero-img img{width:100%;height:auto;border-radius:12px;margin-top:20px}
.section{padding:36px 0}
.section h2{margin-top:0}
.services,.testimonials{background:var(--bg)}
.svc-grid,.why-grid,.testi-grid,.demo-grid,.gallery-grid{display:grid;gap:16px}
.svc-card,.why-card,.testi-card,.demo-card{background:#fff;border:1px solid var(--line);border-radius:12px;padding:18px}
.svc-card h3,.why-card h3{margin-top:0}
.price{font-weight:700;color:var(--primary)}
.why-num{display:inline-block;width:32px;height:32px;line-height:32px;text-align:center;border-radius:50%;background:var(--primary);color:#fff;font-weight:700}
.stars{color:#f59e0b;letter-spacing:2px;margin:0 0 8px}
details{border:1px solid var(--line);border-radius:8px;padding:12px 16px;margin-bottom:10px;background:#fff}
summary{font-weight:600;cursor:pointer}
.gallery-grid img{width:100%;height:180px;object-fit:cover;border-radius:12px}
.field{margin-bottom:14px}
.field label{display:block;font-weight:600;margin-bottom:4px}
.field input[type=text],.field input[type=tel],.field input[type=email],.field input[type=date],.field select,.field textarea{width:100%;padding:10px;border:1px solid var(--line);border-radius:8px;font-size:15px;font-family:inherit}
.field .check{font-weight:400}
.hp{position:absolute;left:-9999px;top:auto;width:1px;height:1px;overflow:hidden}
.form-msg{font-weight:600}
.slot-btn{margin:4px;padding:10px 14px;border:2px solid var(--primary);background:#fff;color:var(--primary);border-radius:8px;cursor:pointer;font-size:14px}
.slot-btn.selected{background:var(--primary);color:#fff}
.slot-btn small{display:block;font-size:12px;opacity:.8}
.bk-slots{margin:12px 0}
.map-embed iframe{width:100%;height:300px;border:0;border-radius:12px}
.site-footer{border-top:1px solid var(--line);padding:20px 0;color:var(--muted);text-align:center}
.wa-float{position:fixed;right:16px;bottom:16px;z-index:60;background:#25d366;color:#fff!important;text-decoration:none;font-weight:700;padding:12px 18px;border-radius:999px;box-shadow:0 4px 16px rgba(0,0,0,.25)}
.notfound,.directory{padding:48px 16px;text-align:left}
.notfound h1{font-size:28px}
.lead{font-size:18px;color:var(--muted)}
/* Template B — bold / fitness */
.tpl-b .hero{text-transform:uppercase}
.tpl-b .hero h1{font-size:36px;letter-spacing:.5px}
.tpl-b .svc-card{border-left:6px solid var(--primary)}
.tpl-b .testimonials{background:#111827;color:#fff}
.tpl-b .testimonials .testi-card{background:#1f2937;border-color:#374151;color:#fff}
/* Template C — elegant / salon */
.tpl-c .hero{text-align:center}
.tpl-c .hero h1{font-family:Georgia,"Times New Roman",serif;font-weight:400;font-size:38px}
.tpl-c .svc-card,.tpl-c .testi-card{border-radius:20px}
.tpl-c .section h2{text-align:center;font-family:Georgia,serif}
.tpl-c .section h2::after{content:"";display:block;width:60px;height:3px;background:var(--secondary);margin:10px auto 0}
/* Admin */
.admin-wrap{max-width:1080px;margin:0 auto;padding:20px 16px}
.admin-nav{display:flex;gap:14px;flex-wrap:wrap;margin:10px 0 20px}
.admin-nav a{font-weight:600}
table.data{width:100%;border-collapse:collapse;font-size:14px}
table.data th,table.data td{border:1px solid var(--line);padding:8px;text-align:left;vertical-align:top}
table.data th{background:var(--bg)}
.alert{padding:12px 16px;border-radius:8px;background:#fef3c7;margin-bottom:16px}
.alert.ok{background:#d1fae5}
.color-row{display:flex;align-items:center;gap:10px}
.color-swatch{width:36px;height:36px;border-radius:8px;border:1px solid var(--line)}
@media (min-width:768px){
  .hero-inner{display:grid;grid-template-columns:1.1fr .9fr;gap:28px;align-items:center}
  .hero-img img{margin-top:0}
  .svc-grid,.why-grid,.testi-grid,.demo-grid{grid-template-columns:repeat(3,1fr)}
  .gallery-grid{grid-template-columns:repeat(4,1fr)}
  .tpl-c .hero-inner{display:block}
  .tpl-b .svc-grid{grid-template-columns:1fr 1fr}
}
