/*
  SRIE DECORS — LUXURY DESIGN SYSTEM v1.0.0
  One stylesheet for: public website, the enquiry widget, and the admin dashboard (back end).
  Palette: warm ivory, deep espresso ink, brushed brass. Type: Playfair Display (headings) + Inter (body).
  Authenticity rule: use REAL photos and real numbers only. This stylesheet adds no fake badges, counters or stock imagery.
  Usage: <link rel="stylesheet" href="srie_luxury.css">  then add class "srie-lux" to <body> (website)
         or "srie-admin" to <body> (dashboard).
*/
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Playfair+Display:wght@500;600;700&display=swap");

:root {
  --ink: #17120e;            /* espresso black */
  --ink-2: #221c16;
  --ink-3: #2e2720;
  --ivory: #faf6ef;
  --ivory-2: #f2ebdf;
  --line: #e4d9c6;
  --line-dark: #3a3128;
  --brass: #b8863b;
  --brass-2: #d3a85a;
  --brass-3: #8f6524;
  --text: #2a241d;
  --muted: #7a6f62;
  --ok: #2f7d5b;  --ok-bg: #e4f2ea;
  --warn: #a8691a; --warn-bg: #fbeed6;
  --bad: #a3362b;  --bad-bg: #f8e1de;
  --none: #6b6258; --none-bg: #ece6dc;
  --radius: 14px;
  --shadow-sm: 0 1px 2px rgba(23,18,14,.06), 0 4px 14px rgba(23,18,14,.06);
  --shadow-lg: 0 18px 50px rgba(23,18,14,.18);
  --serif: "Playfair Display", "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --gold-grad: linear-gradient(135deg, #e0bb73 0%, #b8863b 48%, #8f6524 100%);
}

/* ---------- base ---------- */
.srie-lux, .srie-admin { font-family: var(--sans); color: var(--text); line-height: 1.6; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
.srie-lux { background: var(--ivory); }
.srie-lux h1, .srie-lux h2, .srie-lux h3, .srie-admin h1, .srie-admin h2, .srie-admin h3 { font-family: var(--serif); font-weight: 600; letter-spacing: -.01em; line-height: 1.2; color: var(--ink); }
.srie-lux h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
.srie-lux h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); }
.srie-lux a { color: var(--brass-3); text-underline-offset: 3px; }
.srie-lux a:hover { color: var(--brass); }
.lux-eyebrow { font: 600 .75rem/1 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--brass); }
.lux-divider { width: 64px; height: 2px; background: var(--gold-grad); border: 0; margin: 18px 0; }
.lux-section { padding: clamp(56px, 9vw, 112px) clamp(18px, 5vw, 64px); }
.lux-container { max-width: 1180px; margin-inline: auto; }
.lux-dark { background: var(--ink); color: #eadfcc; }
.lux-dark h1, .lux-dark h2, .lux-dark h3 { color: #fff; }
.lux-grid { display: grid; gap: clamp(16px, 2.4vw, 32px); grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }

/* ---------- buttons ---------- */
.lux-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: 600 .95rem/1 var(--sans); letter-spacing: .04em; padding: 15px 28px; border-radius: 999px; border: 1px solid transparent; cursor: pointer; text-decoration: none; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.lux-btn:focus-visible, .srie-field input:focus-visible, .srie-field select:focus-visible, .srie-field textarea:focus-visible { outline: 3px solid rgba(184,134,59,.45); outline-offset: 2px; }
.lux-btn--gold { background: var(--gold-grad); color: #1b140b; box-shadow: 0 8px 22px rgba(143,101,36,.35); }
.lux-btn--gold:hover { transform: translateY(-1px); box-shadow: 0 12px 28px rgba(143,101,36,.45); }
.lux-btn--ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.lux-btn--ghost:hover { background: var(--ink); color: var(--ivory); }
.lux-dark .lux-btn--ghost { color: #fff; border-color: rgba(255,255,255,.5); }
.lux-btn[disabled] { opacity: .6; cursor: not-allowed; transform: none; }

/* ---------- cards & project gallery (use REAL project photos) ---------- */
.lux-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); overflow: hidden; transition: box-shadow .25s ease, transform .25s ease; }
.lux-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.lux-card__body { padding: 22px 24px 26px; }
.lux-card img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.lux-meta { color: var(--muted); font-size: .85rem; letter-spacing: .02em; }
.lux-hero { position: relative; isolation: isolate; min-height: min(86vh, 760px); display: grid; align-items: end; color: #fff; }
.lux-hero > img, .lux-hero > video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.lux-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(23,18,14,.82), rgba(23,18,14,.15) 70%); }
.lux-process { counter-reset: step; display: grid; gap: 22px; }
.lux-process > li { list-style: none; counter-increment: step; padding-left: 64px; position: relative; }
.lux-process > li::before { content: counter(step, decimal-leading-zero); position: absolute; left: 0; top: -4px; font: 600 1.8rem var(--serif); color: var(--brass); }

/* ---------- enquiry widget ---------- */
.srie-widget { background: #fff; border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow-lg); padding: clamp(22px, 4vw, 38px); max-width: 560px; position: relative; }
.srie-widget::before { content: ""; position: absolute; left: 28px; right: 28px; top: 0; height: 3px; background: var(--gold-grad); border-radius: 0 0 4px 4px; }
.srie-title { margin: 0 0 6px; font-size: 1.6rem; }
.srie-sub { margin: 0 0 20px; color: var(--muted); }
.srie-field { margin-bottom: 16px; display: flex; flex-direction: column; }
.srie-field label { font: 600 .78rem var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.srie-field input, .srie-field select, .srie-field textarea { font: 400 1rem var(--sans); color: var(--text); background: var(--ivory); border: 1px solid var(--line); border-radius: 10px; padding: 13px 14px; transition: border-color .2s, background .2s; width: 100%; box-sizing: border-box; }
.srie-field input:focus, .srie-field select:focus, .srie-field textarea:focus { border-color: var(--brass); background: #fff; }
.srie-err { color: var(--bad); min-height: 1em; font-size: .8rem; margin-top: 4px; }
.srie-hint { color: var(--muted); font-size: .8rem; }
.srie-consent { display: flex; gap: 10px; align-items: flex-start; font-size: .88rem; color: var(--muted); margin: 6px 0 2px; }
.srie-consent input { margin-top: 4px; accent-color: var(--brass); width: 18px; height: 18px; }
.srie-widget .lux-btn { width: 100%; margin-top: 14px; }
.srie-status { margin-top: 12px; font-size: .92rem; color: var(--muted); }
.srie-status--bad { color: var(--bad); }
.srie-wa { display: block; text-align: center; margin-top: 16px; font-weight: 600; }

/* ---------- ADMIN / DASHBOARD (back end) ---------- */
.srie-admin { background: #f5f0e6; }
.srie-admin header, .srie-admin .admin-header { background: var(--ink); color: #f1e6d1; border-bottom: 3px solid var(--brass); }
.srie-admin header h1, .srie-admin .admin-header h1 { color: #f6e9cf; font-family: var(--serif); }
.srie-admin button, .srie-admin .btn { font-family: var(--sans); border-radius: 10px; border: 1px solid var(--line-dark); background: transparent; color: inherit; padding: 10px 16px; cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.srie-admin button:hover { border-color: var(--brass); color: var(--brass-2); }
.srie-admin [role="tab"], .srie-admin .tab-btn, .srie-admin nav button { border: 0; border-bottom: 2px solid transparent; border-radius: 0; background: transparent; color: var(--muted); font-weight: 600; letter-spacing: .01em; padding: 14px 12px; }
.srie-admin [role="tab"][aria-selected="true"], .srie-admin .tab-btn.active, .srie-admin nav button.active { color: var(--brass-3); border-bottom-color: var(--brass); }
.srie-admin table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 12px; overflow: hidden; box-shadow: var(--shadow-sm); }
.srie-admin th { text-align: left; font: 600 .72rem var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); background: var(--ivory-2); padding: 12px 14px; }
.srie-admin td { padding: 12px 14px; border-top: 1px solid var(--line); font-size: .92rem; }
.srie-admin tr:hover td { background: #fffaf0; }

/* KPI / target cards (matches dashboard_truth_layer.js output) */
.kpi-card, .target-card, .stage-widget { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; box-shadow: var(--shadow-sm); }
.kpi-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; font: 600 .74rem var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.kpi-value { font: 600 2.1rem var(--serif); color: var(--ink); margin-top: 10px; }
.target-card .t-label { font: 600 .78rem var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.target-card .t-target { font: 600 1.6rem var(--serif); color: var(--brass-3); margin: 6px 0; }
.target-card .t-actual, .target-card .t-remaining, .target-card .t-range { font-size: .9rem; color: var(--text); }
.target-card .t-range { color: var(--muted); font-size: .8rem; }
.badge { display: inline-block; font: 700 .64rem var(--sans); letter-spacing: .08em; text-transform: uppercase; padding: 5px 9px; border-radius: 999px; white-space: nowrap; }
.badge-ok { background: var(--ok-bg); color: var(--ok); }
.badge-warn { background: var(--warn-bg); color: var(--warn); }
.badge-none { background: var(--none-bg); color: var(--none); }
.badge-bad { background: var(--bad-bg); color: var(--bad); }
.stage-widget h3 { margin-top: 0; }
.stage-widget li { margin: 6px 0; }
.integration-table td:nth-child(2) { font-weight: 600; }
.module-placeholder { background: #fff; border: 1px dashed var(--brass) !important; border-radius: var(--radius); color: var(--muted); }
.module-error { background: var(--bad-bg); border-radius: var(--radius); }

/* ---------- motion & accessibility ---------- */
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
@media (max-width: 640px) { .lux-btn { width: 100%; } .srie-admin table { display: block; overflow-x: auto; } }
