/* Pixyll-style minimalist typography with warm optical color accents */
:root {
  --bg: #faf7f2;
  --surface: #ffffff;
  --ink: #2a2520;
  --muted: #6e655c;
  --border: #e4dbd0;

  --orange: #c95b1e;
  --orange-hover: #a84915;
  --teal: #2b6767;
  --brass: #b3833b;
  --ruby: #b83b28;

  --font-serif: "Merriweather", Georgia, serif;
  --font-sans: "Lato", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

.top-bar {
  height: 4px;
  background: linear-gradient(90deg, var(--orange), var(--brass), var(--teal), var(--ruby));
}

.measure {
  max-width: 46rem;
  margin: 0 auto;
  padding: 0 1.5rem;
}

a {
  color: var(--orange);
  text-decoration: none;
}

a:hover {
  color: var(--orange-hover);
  text-decoration: underline;
}

hr {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 2.75rem 0;
}

/* Header */
.site-header {
  padding: 1.6rem 0;
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.site-title {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--ink);
}

.site-title:hover {
  color: var(--orange);
  text-decoration: none;
}

.site-nav {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.site-nav a {
  color: var(--muted);
  font-size: 0.94rem;
}

.site-nav a:hover {
  color: var(--ink);
  text-decoration: none;
}

/* Intro */
.intro {
  padding-top: 3rem;
}

h1,
h2 {
  font-family: var(--font-serif);
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.015em;
}

h1 {
  font-size: clamp(1.75rem, 3.5vw, 2.25rem);
  line-height: 1.3;
  margin: 0 0 1rem;
}

h2 {
  font-size: 1.35rem;
  margin: 0 0 1rem;
}

.intro p {
  margin: 0 0 1rem;
  font-size: 1.05rem;
}

.intro-meta {
  color: var(--muted);
  font-size: 0.96rem !important;
}

.block-note {
  color: var(--muted);
  margin: 0 0 1.4rem;
}

/* Services */
.service-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.service-list li {
  position: relative;
  padding-left: 1.35rem;
  margin-bottom: 0.85rem;
}

.dot {
  position: absolute;
  left: 0;
  top: 0.65rem;
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.dot-orange { background: var(--orange); }
.dot-teal { background: var(--teal); }
.dot-brass { background: var(--brass); }
.dot-ruby { background: var(--ruby); }

/* Empty Cases */
.cases-empty {
  border: 1px dashed #d5c9b8;
  background: rgba(255, 255, 255, 0.55);
  padding: 1.5rem;
  border-radius: 4px;
  color: var(--muted);
}

.cases-empty p {
  margin: 0;
  font-style: italic;
}

/* Repair Form (matches screenshot grid) */
.repair-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1.05rem;
}

.form-row {
  display: grid;
  gap: 1.05rem;
}

.form-row.two-col {
  grid-template-columns: repeat(2, 1fr);
}

.form-row.three-col {
  grid-template-columns: repeat(3, 1fr);
}

.form-row.one-col {
  grid-template-columns: 1fr;
}

.field {
  position: relative;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--ink);
  background: #ffffff;
  border: 1px solid #d8cfc3;
  border-radius: 2px;
  padding: 0.85rem 0.9rem;
  outline: none;
  transition: border-color 0.15s ease;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--orange);
}

.field label {
  position: absolute;
  left: 0.9rem;
  top: 0.85rem;
  color: #7c7369;
  font-size: 0.93rem;
  pointer-events: none;
  background: #ffffff;
  padding: 0 0.25rem;
  transition: all 0.14s ease;
}

.field input:focus + label,
.field input:not(:placeholder-shown) + label,
.field select:focus + label,
.field select:valid + label,
.field textarea:focus + label,
.field textarea:not(:placeholder-shown) + label {
  top: -0.55rem;
  left: 0.65rem;
  font-size: 0.75rem;
  color: var(--orange);
}

.req {
  color: var(--ruby);
  margin-left: 0.15rem;
}

.field textarea {
  resize: vertical;
  min-height: 140px;
}

.select-field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%236e655c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.85rem center;
  padding-right: 2.2rem;
  cursor: pointer;
}

.select-field select:invalid {
  color: #7c7369;
}

.select-field select option {
  color: var(--ink);
}

.form-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 0.25rem;
}

.btn-submit {
  background: var(--orange);
  color: #ffffff;
  border: 0;
  border-radius: 3px;
  padding: 0.7rem 1.4rem;
  font-size: 0.94rem;
  font-weight: 700;
  cursor: pointer;
}

.btn-submit:hover {
  background: var(--orange-hover);
}

.btn-submit:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.form-hint,
.muted {
  color: var(--muted);
  font-size: 0.9rem;
}

.form-hint.req {
  color: var(--ruby);
  margin-left: 0;
}

.form-status {
  font-size: 0.92rem;
}

.form-status.success {
  color: var(--teal);
}

.form-status.error {
  color: var(--ruby);
}

/* Contact & Footer */
.copy-btn {
  margin-left: 0.5rem;
  font-size: 0.8rem;
  padding: 0.18rem 0.55rem;
  border: 1px solid #d5c9b8;
  border-radius: 3px;
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
}

.copy-btn:hover {
  border-color: var(--orange);
  color: var(--orange);
}

main.measure {
  padding-bottom: 4rem;
}

@media (max-width: 680px) {
  .form-row.two-col,
  .form-row.three-col {
    grid-template-columns: 1fr;
  }

  .repair-form {
    padding: 1.25rem;
  }
}
