:root {
  --nc-primary: #c2410c;      /* terracotta */
  --nc-primary-dark: #9a3412;
  --nc-accent: #0f766e;       /* teal */
  --nc-ink: #1f2937;
  --nc-muted: #6b7280;
  --nc-bg: #fffaf5;
  --nc-card: #ffffff;
  --nc-line: #f1e4d6;
  --nc-radius: 16px;
}
html { scroll-behavior: smooth; }
body { font-family: "Poppins", "Noto Sans Devanagari", system-ui, sans-serif; color: var(--nc-ink); background: var(--nc-bg); }
.hi { font-family: "Noto Sans Devanagari", "Poppins", sans-serif; }
a { color: var(--nc-primary); }
.skip-link { position: absolute; left: 1rem; top: .5rem; z-index: 2000; background: #fff; padding: .5rem 1rem; }

/* Header */
.site-header { background: rgba(255,250,245,.95); backdrop-filter: blur(6px); border-bottom: 1px solid var(--nc-line); }
.brand { font-weight: 700; font-size: 1.3rem; color: var(--nc-ink); text-decoration: none; }
.brand-mark { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--nc-primary); color: #fff; margin-right: .3rem; }
.brand-sub { color: var(--nc-primary); font-weight: 500; }
.nav-link { font-weight: 500; color: var(--nc-ink); }
.nav-link:hover { color: var(--nc-primary); }
.btn-brand { background: var(--nc-primary); color: #fff; border-radius: 999px; padding: .6rem 1.4rem; font-weight: 600; border: 0; }
.btn-brand:hover, .btn-brand:focus { background: var(--nc-primary-dark); color: #fff; }
.btn-outline-brand { border: 2px solid var(--nc-primary); color: var(--nc-primary); border-radius: 999px; padding: .5rem 1.3rem; font-weight: 600; }
.btn-outline-brand:hover { background: var(--nc-primary); color: #fff; }

/* Sections */
.section { padding: 4.5rem 0; }
.section-alt { background: #fff; border-top: 1px solid var(--nc-line); border-bottom: 1px solid var(--nc-line); }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; font-weight: 600; color: var(--nc-accent); }
.section-title { font-weight: 700; font-size: clamp(1.6rem, 3vw, 2.3rem); }
.lead-muted { color: var(--nc-muted); }

/* Hero */
.hero { padding: 4rem 0 3rem; background: radial-gradient(circle at 85% 20%, #ffe8d6 0, transparent 45%), radial-gradient(circle at 10% 90%, #d7f2ee 0, transparent 40%); }
.hero h1 { font-weight: 700; font-size: clamp(2rem, 4.5vw, 3.2rem); line-height: 1.15; }
.hero h1 .accent { color: var(--nc-primary); }
.hero-badges span { display: inline-block; background: #fff; border: 1px solid var(--nc-line); border-radius: 999px; padding: .3rem .8rem; margin: .2rem .2rem 0 0; font-size: .85rem; }
.hero-visual { background: #fff; border-radius: 24px; border: 1px solid var(--nc-line); box-shadow: 0 20px 50px -20px rgba(194,65,12,.35); padding: 1.2rem; }
.hero-visual svg { width: 100%; height: auto; display: block; }

/* Cards */
.nc-card { background: var(--nc-card); border: 1px solid var(--nc-line); border-radius: var(--nc-radius); padding: 1.6rem; transition: transform .2s, box-shadow .2s; }
/* Equal-height cards only when a card is alone in its column; stacked cards keep natural height. */
.row > [class*="col"] > .nc-card:only-child { height: 100%; }
.nc-card:hover { transform: translateY(-4px); box-shadow: 0 14px 30px -18px rgba(0,0,0,.25); }
.step-num { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--nc-primary); color: #fff; font-weight: 700; margin-bottom: 1rem; }
.icon-circle { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: #fff1e6; font-size: 1.5rem; margin-bottom: .8rem; }

/* Price */
.price-card { border: 2px solid var(--nc-primary); border-radius: 24px; background: #fff; padding: 2.2rem; }
.price { font-size: 3.2rem; font-weight: 700; color: var(--nc-primary); }
.notice { background: #fff4e5; border-left: 4px solid var(--nc-primary); border-radius: 8px; padding: .9rem 1rem; font-size: .95rem; }

/* Legal pages */
.legal { max-width: 860px; }
.legal h2 { font-size: 1.25rem; font-weight: 600; margin-top: 2rem; }
.legal .updated { color: var(--nc-muted); font-size: .9rem; }

/* FAQ accordion */
.accordion-button:not(.collapsed) { background: #fff1e6; color: var(--nc-ink); }
.accordion-button:focus { box-shadow: 0 0 0 .2rem rgba(194,65,12,.2); }

/* Footer */
.site-footer { background: #1c1917; color: #fff; padding: 3rem 0 1.5rem; margin-top: 0; }
.site-footer h6 { font-weight: 600; margin-bottom: .8rem; }
.site-footer a { color: #e7e5e4; text-decoration: none; }
.site-footer a:hover { color: #fdba74; }
.site-footer li { margin-bottom: .35rem; }

/* Form */
.form-control:focus, .form-select:focus { border-color: var(--nc-primary); box-shadow: 0 0 0 .2rem rgba(194,65,12,.15); }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

@media (max-width: 576px) {
  .section { padding: 3rem 0; }
  .hero { padding: 2.5rem 0 2rem; }
  .price { font-size: 2.6rem; }
}
.price-list { max-width: 340px; }
.sample-page { transition: transform .15s ease, box-shadow .15s ease; }
.sample-page:hover, .sample-page:focus-visible { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(28,25,23,.12); }
.sample-page img { aspect-ratio: 1000/707; object-fit: cover; background: #fff; }
.login-mark { width: 56px; height: 56px; font-size: 1.6rem; display: grid; }
.btn-google { display: inline-flex; align-items: center; justify-content: center; gap: .6rem; background: #fff; border: 1px solid #dadce0; border-radius: 999px; padding: .75rem 1rem; font-weight: 600; color: #3c4043; }
.btn-google:hover { background: #f8f9fa; border-color: #c6c9cc; }
.avatar { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; }
.admin-shell { min-height: 100vh; background: #f6f4f2; }
.admin-sidebar { background: #1c1917; min-height: 100vh; }
.admin-sidebar a { color: #e7e5e4; text-decoration: none; display: block; padding: .55rem 1rem; border-radius: 8px; }
.admin-sidebar a:hover, .admin-sidebar a.active { background: #292524; color: #fdba74; }
.stat { font-size: 2rem; font-weight: 700; color: var(--nc-primary); }

/* ---------- Order flow ---------- */
.wizard-step { height: auto; }
.wizard-step:hover { transform: none; box-shadow: none; }
.wizard-step .step-num { width: 36px; height: 36px; border-radius: 10px; }
.preview-frame { border: 1px solid var(--nc-line); border-radius: 12px; background: #fff; max-height: 520px; }
.stars { color: #f59e0b; font-size: 1.3rem; letter-spacing: .1em; }
.nc-pre { white-space: pre-line; }

/* Toasts (site-wide) */
.nc-toasts { margin-top: 4.5rem; z-index: 1090; }
.nc-toasts .toast { font-weight: 500; }

/* Plot step: input modes, shape gallery, editor, previews */
.plot-modes { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: .6rem; }
.plot-mode-btn { border: 2px solid var(--nc-line); border-radius: 12px; background: #fff; text-align: left; padding: .65rem .9rem; color: var(--nc-ink); }
.plot-mode-btn:hover { border-color: var(--nc-primary); color: var(--nc-ink); }
.btn-check:checked + .plot-mode-btn { border-color: var(--nc-primary); background: #fff4ec; color: var(--nc-ink); }
.btn-check:focus-visible + .plot-mode-btn { outline: 3px solid rgba(194,65,12,.35); outline-offset: 2px; }
.plot-mode-sub { color: var(--nc-muted); }
.shape-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: .55rem; }
.shape-card { display: flex; flex-direction: column; align-items: center; gap: .2rem; border: 2px solid var(--nc-line); border-radius: 12px; background: #fff; padding: .45rem .35rem .5rem; font-size: .82rem; line-height: 1.2; color: var(--nc-ink); }
.shape-card:hover { border-color: var(--nc-primary); }
.shape-card.active { border-color: var(--nc-primary); background: #fff4ec; box-shadow: 0 0 0 2px rgba(194,65,12,.15); }
.shape-card:focus-visible { outline: 3px solid rgba(194,65,12,.35); outline-offset: 2px; }
.shape-thumb { display: block; width: 100%; max-width: 110px; }
.shape-name { font-weight: 600; text-align: center; }
.plot-editor { border-top: 1px dashed var(--nc-line); padding-top: 1rem; }
.plot-preview { border: 1px solid var(--nc-line); border-radius: 12px; background: #fff; padding: .4rem; }
.plot-preview-sm { max-width: 420px; }
.plot-svg { display: block; width: 100%; height: auto; }
.plot-image-preview { border: 1px solid var(--nc-line); border-radius: 12px; background: #fff; max-height: 320px; object-fit: contain; }
.upload-box { border: 2px dashed var(--nc-line); border-radius: 12px; padding: 1rem; background: #fffdfb; }
.poly-table input { min-width: 70px; }
.draw-panel { border: 1px solid var(--nc-line); border-radius: 12px; padding: .75rem; background: #fff; }
.draw-canvas { max-width: 420px; cursor: crosshair; }
.draw-svg { display: block; touch-action: manipulation; }
.plot-svg-box { max-width: 380px; }

/* ---- 3D House View add-on ---- */
.hv-card:hover { transform: none; }
.hv-design { display: block; height: 100%; border: 1px solid var(--nc-line); border-radius: 10px; padding: .75rem .9rem; cursor: pointer; background: #fff; }
.hv-design:has(input:checked) { border-color: var(--nc-primary); box-shadow: 0 0 0 2px rgba(194, 65, 12, .15); background: #fffaf5; }
.hv-thumb { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; border: 1px solid var(--nc-line); background: #f7f7f7; }

/* ---- walkthrough video (customer) ---- */
.hv-video-option { border: 1px dashed var(--nc-line); border-radius: 10px; padding: .75rem .9rem; background: #fffdf9; }
.hv-video-offer { border: 1px solid var(--nc-line); border-radius: 10px; padding: 1rem; background: #fffaf5; }
.hv-player { display: block; width: 100%; max-width: 960px; aspect-ratio: 16 / 9; background: #000; border-radius: 10px; }

/* ---------- Maintenance mode popup (Admin -> Site control) ---------- */
body.nc-maint-on { overflow: hidden; }
.nc-maint-overlay {
  position: fixed; inset: 0; z-index: 2000;
  display: flex; align-items: center; justify-content: center; padding: 1rem;
  background: rgba(15, 23, 42, .62); backdrop-filter: blur(4px);
}
.nc-maint-card {
  max-width: 520px; width: 100%; background: #fff; border-radius: 18px;
  padding: 2rem 1.75rem; text-align: center; box-shadow: 0 20px 50px rgba(0, 0, 0, .25);
}
.nc-maint-icon { font-size: 2.6rem; line-height: 1; margin-bottom: .75rem; }
.nc-maint-card p { color: #475569; }
.nc-maint-preview { background: #e2e8f0; border-radius: 14px; padding: 1.25rem; display: flex; justify-content: center; }
.nc-maint-preview .nc-maint-card { box-shadow: 0 6px 20px rgba(0, 0, 0, .12); }
