:root {
  --ink: #10151d;
  --muted: #667085;
  --line: #d9dee7;
  --paper: #f7f8fb;
  --blue: #25425f;
  --copper: #c17a3d;
  --green: #1f8a70;
  --white: #fff;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); }
a { color: inherit; text-decoration: none; }

.site-header, .dashboard-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px clamp(18px, 5vw, 64px);
  background: rgba(247, 248, 251, .86);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(16, 21, 29, .08);
}
.header-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: var(--ink);
  color: var(--white);
  box-shadow: 8px 8px 0 var(--copper);
}

nav { display: flex; align-items: center; gap: 22px; color: #303846; font-weight: 650; }
.nav-button, .primary-button, .secondary-button, button {
  border: 0;
  border-radius: 8px;
  padding: 12px 18px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}
.nav-button, .secondary-button { border: 1px solid var(--line); background: var(--white); }
.primary-button, button { background: var(--ink); color: var(--white); box-shadow: 0 14px 30px rgba(16, 21, 29, .16); }
.compact { padding: 10px 14px; }

.hero {
  min-height: calc(100vh - 80px);
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(320px, .98fr);
  gap: clamp(28px, 5vw, 80px);
  align-items: center;
  padding: clamp(40px, 7vw, 86px) clamp(18px, 5vw, 64px);
  overflow: hidden;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--copper);
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
  font-size: 13px;
}

h1, h2, h3, p { margin-top: 0; }
h1 { font-size: clamp(48px, 8vw, 108px); line-height: .92; letter-spacing: 0; margin-bottom: 22px; }
h2 { font-size: clamp(32px, 5vw, 64px); line-height: 1; letter-spacing: 0; margin-bottom: 0; }
h3 { font-size: 22px; margin-bottom: 12px; }
.hero-text { color: var(--muted); font-size: clamp(18px, 2vw, 22px); line-height: 1.6; max-width: 720px; }
.hero-actions, .contact-actions, .export-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }

.hero-stage {
  position: relative;
  min-height: 560px;
  perspective: 1000px;
}
.room-card {
  position: absolute;
  inset: 56px 20px;
  border-radius: 18px;
  background:
    linear-gradient(90deg, rgba(255,255,255,.13) 1px, transparent 1px) 0 0 / 40px 40px,
    linear-gradient(180deg, #26394c, #10151d);
  transform: rotateX(58deg) rotateZ(-32deg);
  transform-style: preserve-3d;
  box-shadow: 34px 44px 80px rgba(16, 21, 29, .32);
  border: 1px solid rgba(255,255,255,.2);
}
.ceiling-line { position: absolute; left: 10%; right: 10%; top: 18%; height: 12px; background: #f3d88a; box-shadow: 0 0 34px #f3d88a; }
.light-row { position: absolute; display: flex; gap: 30px; top: 34%; left: 18%; }
.light-row span { width: 36px; height: 36px; border-radius: 50%; background: #fff2ba; box-shadow: 0 0 44px #fff2ba; }
.wall-panel { position: absolute; right: 12%; bottom: 18%; width: 34%; height: 36%; background: rgba(255,255,255,.11); border: 1px solid rgba(255,255,255,.2); }
.console { position: absolute; left: 14%; bottom: 16%; width: 28%; height: 12%; background: var(--copper); }
.floating-chip {
  position: absolute;
  padding: 12px 16px;
  border-radius: 8px;
  background: var(--white);
  font-weight: 900;
  box-shadow: 0 24px 55px rgba(16, 21, 29, .18);
}
.chip-one { top: 34px; right: 54px; }
.chip-two { left: 10px; bottom: 92px; }
.chip-three { right: 22px; bottom: 42px; }

.stats, .section, .work-band, .contact {
  padding: clamp(42px, 6vw, 80px) clamp(18px, 5vw, 64px);
}
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--ink);
  color: var(--white);
}
.stats div { background: #182231; padding: 28px; }
.stats strong { display: block; font-size: 24px; margin-bottom: 8px; }
.stats span { color: #bac4d1; }

.section-heading { max-width: 820px; margin-bottom: 34px; }
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.service-grid article {
  min-height: 230px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  transition: transform .2s ease, box-shadow .2s ease;
}
.service-grid article:hover { transform: translateY(-6px); box-shadow: 0 24px 54px rgba(16, 21, 29, .1); }
.service-grid span { color: var(--green); font-weight: 900; }
.service-grid p, .contact p { color: var(--muted); line-height: 1.55; }

.work-band {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: 30px;
  background: #172234;
  color: var(--white);
}
.process { display: grid; gap: 12px; }
.process div { display: flex; align-items: center; gap: 16px; padding: 18px; border: 1px solid rgba(255,255,255,.16); border-radius: 8px; background: rgba(255,255,255,.06); }
.process b { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--copper); }

.contact { display: flex; justify-content: space-between; gap: 24px; align-items: center; background: var(--white); }
.contact > div:first-child { max-width: 760px; }
footer { display: flex; justify-content: space-between; padding: 24px clamp(18px, 5vw, 64px); color: var(--muted); }

.login-body { min-height: 100vh; }
.login-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 22px;
}
.login-card {
  width: min(100%, 430px);
  display: grid;
  gap: 24px;
  padding: clamp(22px, 5vw, 34px);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 24px 70px rgba(16, 21, 29, .12);
}
.login-card h1 { font-size: clamp(42px, 12vw, 68px); margin-bottom: 0; }
.login-form { display: grid; gap: 14px; }
.login-error { min-height: 20px; margin: 0; color: #b42318; font-weight: 800; }
.back-home { justify-self: start; }

.dashboard-body { background: #eef2f6; }
.dashboard-shell { padding: 34px clamp(14px, 4vw, 52px) 70px; }
.dashboard-title { margin-bottom: 22px; }
.dashboard-title h1 { font-size: clamp(34px, 5vw, 70px); }
.billing-panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: clamp(16px, 3vw, 30px);
  box-shadow: 0 24px 70px rgba(16, 21, 29, .08);
}
.form-grid, .bottom-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
label { display: grid; gap: 8px; color: #344054; font-weight: 800; }
input, textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 13px;
  font: inherit;
  background: #fbfcfe;
}
textarea { min-height: 128px; resize: vertical; }
.table-wrap { overflow-x: auto; margin: 22px 0 14px; border: 1px solid var(--line); border-radius: 8px; }
.bill-table { width: 100%; border-collapse: collapse; min-width: 820px; }
.bill-table th { text-align: left; background: var(--blue); color: var(--white); padding: 14px; }
.bill-table td { border-top: 1px solid var(--line); padding: 8px; vertical-align: middle; }
.bill-table input { border-color: transparent; background: transparent; padding: 9px; }
.bill-table .desc { min-width: 220px; }
.bill-table .qty { min-width: 110px; }
.bill-table .unit { min-width: 110px; text-align: right; }
.row-total { font-weight: 900; text-align: right; white-space: nowrap; }
.delete-row { background: #fff1f0; color: #b42318; box-shadow: none; padding: 9px 12px; }
.bill-actions { margin-bottom: 20px; }
.bottom-grid { grid-template-columns: minmax(0, 1fr) 360px; align-items: start; }
.totals-box { border: 1px solid var(--line); border-radius: 8px; padding: 18px; background: #fbfcfe; }
.total-line, .grand-line { display: flex; justify-content: space-between; gap: 18px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.grand-line { border-bottom: 0; font-size: 24px; font-weight: 900; color: var(--ink); }
.discount-row.is-hidden { display: none; }

@media (max-width: 900px) {
  .site-header { align-items: flex-start; flex-direction: column; }
  nav { width: 100%; overflow-x: auto; padding-bottom: 4px; }
  .hero, .work-band, .contact { grid-template-columns: 1fr; }
  .hero { min-height: auto; }
  .hero-stage { min-height: 420px; }
  .stats, .service-grid, .form-grid, .bottom-grid { grid-template-columns: 1fr; }
  .contact { align-items: flex-start; }
  .dashboard-header .brand span:last-child { display: none; }
}

@media (max-width: 700px) {
  .dashboard-header {
    position: static;
    padding: 14px;
  }
  .dashboard-shell {
    padding: 18px 10px 44px;
  }
  .dashboard-title h1 {
    font-size: 34px;
    line-height: 1.02;
  }
  .billing-panel {
    padding: 12px;
  }
  .form-grid {
    gap: 10px;
  }
  input, textarea {
    min-height: 46px;
    font-size: 16px;
  }
  .table-wrap {
    overflow: visible;
    border: 0;
    margin-top: 16px;
  }
  .bill-table {
    min-width: 0;
    border-collapse: separate;
    border-spacing: 0 12px;
  }
  .bill-table thead {
    display: none;
  }
  .bill-table, .bill-table tbody, .bill-table tr, .bill-table td {
    display: block;
    width: 100%;
  }
  .bill-table tr {
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fbfcfe;
  }
  .bill-table td {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    border-top: 0;
    padding: 7px 0;
  }
  .bill-table td::before {
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
  }
  .bill-table td:nth-child(1)::before { content: "Item"; }
  .bill-table td:nth-child(2)::before { content: "Qty"; }
  .bill-table td:nth-child(3)::before { content: "Rate"; }
  .bill-table td:nth-child(4)::before { content: "Total"; }
  .bill-table td:nth-child(5)::before { content: ""; }
  .bill-table input {
    min-width: 0;
    border-color: var(--line);
    background: var(--white);
  }
  .bill-table .desc, .bill-table .qty, .bill-table .unit {
    min-width: 0;
  }
  .row-total {
    text-align: left;
    font-size: 18px;
  }
  .delete-row {
    width: 100%;
  }
  .bill-actions button,
  .export-actions .primary-button,
  .export-actions .secondary-button {
    width: 100%;
  }
  .export-actions {
    position: sticky;
    bottom: 0;
    margin: 18px -12px -12px;
    padding: 12px;
    background: rgba(255, 255, 255, .94);
    backdrop-filter: blur(14px);
    border-top: 1px solid var(--line);
  }
  .totals-box {
    padding: 14px;
  }
  .grand-line {
    font-size: 20px;
  }
}

@media (max-width: 560px) {
  h1 { font-size: 44px; }
  h2 { font-size: 34px; }
  .hero-stage { min-height: 310px; }
  .room-card { inset: 36px 10px; }
  .floating-chip { font-size: 13px; }
  .chip-one { right: 4px; }
  .chip-two { bottom: 36px; }
  .chip-three { display: none; }
}
