:root {
  --ink: #171a1f;
  --subtle: #5a6270;
  --line: #d9dde5;
  --soft: #f4f6f8;
  --white: #ffffff;
  --blue: #155eef;
  --blue-dark: #0f3fae;
  --green: #0f8f65;
  --amber: #ad6a00;
  --shadow: 0 18px 50px rgba(17, 24, 39, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--white);
  letter-spacing: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid rgba(217, 221, 229, 0.82);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1160px, calc(100% - 32px));
  min-height: 68px;
  margin: 0 auto;
  gap: 24px;
}

.brand,
.nav-links {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 800;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  color: var(--white);
  background: var(--ink);
}

.nav-links {
  gap: 22px;
  color: var(--subtle);
  font-size: 14px;
  font-weight: 650;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  align-items: end;
  width: min(1160px, calc(100% - 32px));
  min-height: 610px;
  margin: 0 auto;
  padding: 72px 0 54px;
  gap: 42px;
}

.hero-copy h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(42px, 6vw, 72px);
  line-height: 1.02;
  letter-spacing: 0;
}

.hero-text {
  max-width: 680px;
  margin: 24px 0 0;
  color: var(--subtle);
  font-size: 18px;
  line-height: 1.7;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 800;
}

.hero-actions,
.form-actions,
.admin-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-actions {
  margin-top: 32px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 800;
  transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button.primary {
  color: var(--white);
  background: var(--blue);
}

.button.primary:hover {
  background: var(--blue-dark);
}

.button.secondary {
  color: var(--ink);
  border-color: var(--line);
  background: var(--white);
}

.button.ghost {
  color: var(--subtle);
  border-color: transparent;
  background: transparent;
}

.button.full {
  width: 100%;
}

.hero-panel,
.estimate-card,
.form-surface {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.hero-panel {
  padding: 10px;
}

.panel-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px;
  border-bottom: 1px solid var(--line);
}

.panel-row:last-child {
  border-bottom: 0;
}

.panel-row span {
  color: var(--subtle);
}

.section {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
  padding: 72px 0;
}

.section.muted {
  width: 100%;
  padding-right: max(16px, calc((100% - 1160px) / 2));
  padding-left: max(16px, calc((100% - 1160px) / 2));
  background: var(--soft);
}

.section-heading {
  max-width: 720px;
  margin-bottom: 28px;
}

.section-heading h2 {
  margin: 0;
  font-size: 34px;
  line-height: 1.2;
}

.section-heading p:not(.eyebrow) {
  margin: 12px 0 0;
  color: var(--subtle);
  line-height: 1.7;
}

.quote-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 20px;
  align-items: start;
}

.form-surface,
.estimate-card {
  padding: 24px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.wide {
  grid-column: 1 / -1;
}

label {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
  color: #303642;
  font-size: 14px;
  font-weight: 750;
}

input,
select,
textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  color: var(--ink);
  background: var(--white);
}

textarea {
  resize: vertical;
}

.check-field {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-height: 62px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.check-field input {
  width: 18px;
  min-height: 18px;
  margin-top: 2px;
}

.check-field span {
  display: grid;
  gap: 4px;
}

.check-field small {
  color: var(--subtle);
  font-weight: 650;
  line-height: 1.45;
}

.check-field.disabled {
  opacity: 0.55;
}

.notice-box {
  display: none;
  margin-bottom: 16px;
  padding: 14px 16px;
  border: 1px solid #f2c94c;
  border-radius: 8px;
  color: #5d3f00;
  background: #fff8df;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.6;
}

.notice-box.visible {
  display: block;
}

input:focus,
select:focus,
textarea:focus {
  outline: 3px solid rgba(21, 94, 239, 0.14);
  border-color: var(--blue);
}

.estimate-card {
  position: sticky;
  top: 92px;
}

.price {
  margin: 6px 0 10px;
  font-size: 38px;
  line-height: 1;
  font-weight: 900;
}

.estimate-card p {
  color: var(--subtle);
  line-height: 1.6;
}

.estimate-breakdown {
  display: grid;
  gap: 10px;
  margin: 18px 0 0;
  padding: 0;
}

.estimate-breakdown div {
  display: grid;
  grid-template-columns: 94px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.estimate-breakdown dt,
.estimate-breakdown dd {
  margin: 0;
}

.estimate-breakdown dt {
  color: var(--subtle);
  font-size: 13px;
  font-weight: 750;
}

.estimate-breakdown dd {
  font-weight: 850;
  overflow-wrap: anywhere;
}

.checkout-box {
  display: grid;
  gap: 12px;
  margin: 22px 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.checkout-box span,
.fine-print {
  color: var(--subtle);
  font-size: 13px;
}

.pricing-grid,
.guide-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.pricing-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 44px;
}

.guide-grid article,
.pricing-grid article,
.timeline li,
.order-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.guide-grid article,
.pricing-grid article {
  padding: 22px;
}

.pricing-grid strong {
  display: block;
  margin-bottom: 8px;
  font-size: 18px;
}

.pricing-grid span {
  display: inline-flex;
  margin-bottom: 14px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 850;
}

.guide-grid h3 {
  margin: 0 0 10px;
}

.guide-grid p,
.pricing-grid p,
.timeline p {
  margin: 0;
  color: var(--subtle);
  line-height: 1.65;
}

.compact-heading {
  margin-top: 8px;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.timeline li {
  padding: 18px;
}

.timeline span {
  display: inline-flex;
  margin-bottom: 18px;
  color: var(--blue);
  font-weight: 900;
}

.timeline strong {
  display: block;
  margin-bottom: 8px;
}

.admin-toolbar {
  margin-bottom: 18px;
}

.orders {
  display: grid;
  gap: 12px;
}

.empty-state {
  padding: 24px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--subtle);
  background: var(--white);
}

.order-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 16px;
  padding: 18px;
}

.order-card h3 {
  margin: 0 0 8px;
}

.order-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--subtle);
  font-size: 13px;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: #e8eefc;
  color: var(--blue-dark);
  font-size: 12px;
  font-weight: 800;
}

.tag.pending {
  background: #fff4db;
  color: var(--amber);
}

.tag.done {
  background: #dff7ef;
  color: var(--green);
}

.status-select {
  align-self: start;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 28px max(16px, calc((100% - 1160px) / 2));
  color: var(--subtle);
  border-top: 1px solid var(--line);
  font-size: 14px;
}

@media (max-width: 920px) {
  .hero,
  .quote-layout,
  .order-card {
    grid-template-columns: 1fr;
  }

  .estimate-card {
    position: static;
  }

  .pricing-grid,
  .guide-grid,
  .timeline {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .nav-links {
    display: none;
  }

  .hero {
    min-height: auto;
    padding-top: 46px;
  }

  .hero-copy h1 {
    font-size: 40px;
  }

  .form-grid,
  .pricing-grid,
  .guide-grid,
  .timeline {
    grid-template-columns: 1fr;
  }

  .footer {
    flex-direction: column;
  }
}
