:root {
  --ink: #10100f;
  --muted: #5f5b54;
  --paper: #f8f5ed;
  --white: #ffffff;
  --line: #d7d0c3;
  --accent: #c94724;
  --accent-dark: #8f2f19;
  --signal: #f0c64b;
  --steel: #2f3437;
  --radius: 8px;
  --shadow: 0 18px 60px rgba(16, 16, 15, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.5;
}

body.modal-open {
  overflow: hidden;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(18px, 4vw, 56px);
  background: rgba(248, 245, 237, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  font-weight: 800;
  text-decoration: none;
  letter-spacing: 0;
}

.brand-logo {
  width: 42px;
  height: 42px;
  box-sizing: content-box;
  object-fit: contain;
  border: 2px solid var(--ink);
  background: transparent;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.nav-links a {
  padding: 8px 10px;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--ink);
  outline-color: var(--accent);
}

.hero-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.86fr);
  gap: clamp(28px, 6vw, 72px);
  align-items: center;
  min-height: calc(100vh - 74px);
  padding: clamp(48px, 8vw, 92px) clamp(18px, 4vw, 56px);
  border-bottom: 1px solid var(--line);
}

.hero-copy {
  max-width: 760px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent-dark);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.04;
  letter-spacing: 0;
}

h1 {
  max-width: 850px;
  font-size: clamp(3rem, 9vw, 7.6rem);
}

h2 {
  max-width: 780px;
  font-size: clamp(2rem, 5vw, 4rem);
}

h3 {
  font-size: 1.25rem;
}

.hero-text,
.split-section p,
.contact-band p,
.location-intro p {
  max-width: 680px;
  color: var(--muted);
  font-size: clamp(1rem, 1.5vw, 1.2rem);
}

.hero-actions,
.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  font-weight: 900;
  font: inherit;
  text-decoration: none;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
  box-shadow: 6px 6px 0 var(--ink);
  outline-color: var(--accent);
}

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

.button-success {
  background: #4f7d57;
  color: var(--white);
}

.contact-form .button-primary.button-success {
  background: #4f7d57;
  color: var(--white);
}

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

.machine-panel {
  justify-self: end;
  width: min(100%, 520px);
  padding: 18px;
  background: var(--accent);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: 8px 8px 0 rgba(16, 16, 15, 0.08);
}

@media (min-width: 1280px) {
  .hero-section {
    grid-template-columns: minmax(0, 0.95fr) minmax(500px, 0.82fr);
  }

  .machine-panel {
    width: min(100%, 590px);
  }
}

.service-map-panel {
  background: var(--accent);
}

.map-card {
  overflow: hidden;
  background: var(--white);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
}

.map-heading {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 14px;
  background: var(--paper);
  border-bottom: 2px solid var(--ink);
}

.map-heading strong,
.map-heading span {
  display: block;
}

.map-heading span {
  color: var(--muted);
  font-size: 0.93rem;
}

.map-logo {
  width: 48px;
  height: 48px;
  box-sizing: content-box;
  object-fit: contain;
  background: transparent;
  border: 2px solid var(--ink);
}

.service-map {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  background: var(--paper);
}

.map-image {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  background: var(--paper);
}

.map-bg {
  fill: var(--paper);
}

.map-block {
  stroke: var(--ink);
  stroke-width: 2;
}

.map-block-yellow {
  fill: var(--signal);
}

.map-block-orange {
  fill: var(--accent);
}

.map-block-cream {
  fill: #fff7df;
}

.map-road {
  fill: none;
  stroke: var(--ink);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 6;
}

.road-major {
  stroke-width: 9;
}

.road-loop {
  stroke-width: 8;
}

.service-ring {
  fill: rgba(255, 255, 255, 0.26);
  stroke: var(--ink);
  stroke-dasharray: 9 7;
  stroke-width: 4;
}

.center-dot {
  fill: var(--ink);
  stroke: var(--white);
  stroke-width: 5;
}

.map-label {
  fill: var(--ink);
  paint-order: stroke;
  stroke: var(--white);
  stroke-linejoin: round;
  stroke-width: 5;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 0;
}

.map-label-main {
  font-size: 22px;
}

.machine-top {
  display: grid;
  place-items: center;
  min-height: 138px;
  background: var(--white);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
}

.machine-top img {
  width: 112px;
  height: 112px;
  object-fit: contain;
}

.machine-slots {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin: 16px 0;
}

.machine-slots span {
  aspect-ratio: 1 / 1.18;
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: 6px;
}

.machine-slots span:nth-child(3n) {
  background: var(--signal);
}

.machine-slots span:nth-child(4n) {
  background: var(--accent);
}

.machine-card {
  display: grid;
  gap: 4px;
  margin-top: 10px;
  padding: 14px;
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
}

.machine-card span {
  color: var(--muted);
}

.section-band,
.split-section,
.location-main {
  padding: clamp(44px, 7vw, 84px) clamp(18px, 4vw, 56px);
}

.section-heading {
  display: grid;
  gap: 4px;
  margin-bottom: 28px;
}

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

.info-card {
  min-height: 260px;
  padding: 22px;
  background: var(--white);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: 8px 8px 0 rgba(16, 16, 15, 0.08);
}

.info-card p {
  color: var(--muted);
}

.card-image {
  display: block;
  width: 96px;
  height: 96px;
  margin: -4px 0 22px;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  background: var(--paper);
  object-fit: cover;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(300px, 0.8fr);
  gap: clamp(24px, 5vw, 64px);
  align-items: center;
  background: var(--ink);
  color: var(--white);
}

.split-section .eyebrow {
  color: var(--signal);
}

.split-section p {
  color: #d9d5cb;
}

.qr-demo {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  padding: 18px;
  background: var(--paper);
  color: var(--ink);
  border: 2px solid var(--white);
  border-radius: var(--radius);
}

.qr-demo p {
  color: var(--muted);
  font-size: 1rem;
}

.qr-code {
  display: block;
  width: 210px;
  aspect-ratio: 1;
  background: var(--white);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  image-rendering: pixelated;
}

.contact-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(28px, 6vw, 76px);
  background: var(--paper);
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}

.contact-band .button-primary {
  flex: 0 0 auto;
  min-width: min(100%, 310px);
  min-height: 88px;
  padding: 22px 30px;
  background: var(--accent);
  color: var(--white);
  border-color: var(--ink);
  font-size: clamp(1.15rem, 1.5vw, 1.45rem);
  box-shadow: 10px 10px 0 var(--ink);
}

.contact-band .button-primary:hover,
.contact-band .button-primary:focus-visible {
  box-shadow: 14px 14px 0 var(--ink);
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(16, 16, 15, 0.72);
}

.modal-backdrop[hidden] {
  display: none;
}

.contact-modal {
  width: min(100%, 720px);
  max-height: min(90vh, 820px);
  overflow: auto;
  padding: clamp(20px, 4vw, 32px);
  background: var(--paper);
  border: 3px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: 12px 12px 0 rgba(16, 16, 15, 0.38);
}

.modal-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}

.modal-heading h2 {
  font-size: clamp(2rem, 5vw, 3.4rem);
}

.icon-button {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
  font: inherit;
  font-size: 1.6rem;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
}

.contact-form {
  display: grid;
  gap: 18px;
}

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

.location-body {
  min-height: 100vh;
}

.location-main {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(340px, 0.74fr);
  gap: clamp(28px, 6vw, 72px);
  align-items: start;
}

.qr-main {
  min-height: calc(100vh - 74px);
  align-items: center;
  border-bottom: 1px solid var(--line);
}

.location-intro {
  position: sticky;
  top: 92px;
}

.location-intro h1 {
  font-size: clamp(2.75rem, 7vw, 6.5rem);
}

.qr-intro h1 {
  max-width: 760px;
  font-size: clamp(3rem, 8vw, 7rem);
}

.feedback-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: clamp(22px, 4vw, 34px);
}

.feedback-meta-card {
  display: block;
  margin-top: 0;
  margin-bottom: 20px;
  padding-bottom: 18px;
  border-bottom: 2px solid var(--line);
}

.feedback-meta span {
  padding: 10px 12px;
  background: var(--white);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  color: var(--ink);
  font-weight: 900;
  line-height: 1.15;
}

.feedback-meta-card span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 46px;
  background: var(--accent);
  color: var(--white);
  text-align: center;
}

.location-card {
  width: min(100%, 560px);
  justify-self: end;
  padding: clamp(18px, 3vw, 26px);
  background: var(--white);
  border: 3px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.location-form {
  display: grid;
  gap: 20px;
}

.field-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(190px, 0.62fr);
  gap: 14px;
  align-items: end;
}

fieldset {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  border: 0;
}

legend,
label {
  font-weight: 900;
}

legend {
  font-size: 1.1rem;
  line-height: 1.2;
}

.machine-type-field {
  align-self: stretch;
}

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

.machine-type-grid {
  margin-top: 8px;
}

.choice {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 12px 14px;
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  cursor: pointer;
  color: var(--ink);
  font-weight: 900;
  line-height: 1.15;
  text-align: center;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.choice input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.choice:hover,
.choice:focus-within {
  transform: translateY(-2px);
  box-shadow: 5px 5px 0 var(--ink);
}

.choice:has(input:checked) {
  border-color: var(--ink);
  background: var(--signal);
  box-shadow: inset 0 0 0 2px var(--white);
}

input,
textarea,
select {
  width: 100%;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  padding: 11px 12px;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
}

textarea {
  min-height: 112px;
  resize: vertical;
}

.location-form .form-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(116px, 0.4fr);
  gap: 12px;
  margin-top: 2px;
}

.location-form .button {
  width: auto;
  min-width: 0;
  min-height: 50px;
  padding: 12px 16px;
  font-weight: 900;
  white-space: nowrap;
}

.location-form .button-primary {
  background: var(--accent);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.22);
}

.location-form .button-primary.button-success {
  background: #4f7d57;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.18);
}

.location-form .button-secondary {
  background: var(--paper);
}

.note {
  margin: 0;
  color: var(--muted);
  font-size: 0.93rem;
}

.note a {
  color: var(--accent-dark);
  font-weight: 900;
}

@media (max-width: 860px) {
  .site-header,
  .contact-band {
    align-items: flex-start;
    flex-direction: column;
  }

  .contact-band .button-primary {
    align-self: center;
  }

  .hero-section,
  .split-section,
  .location-main,
  .field-grid {
    grid-template-columns: 1fr;
  }

  .hero-section {
    min-height: auto;
  }

  .machine-panel {
    justify-self: center;
  }

  .service-grid {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .info-card {
    width: min(100%, 520px);
  }

  .card-image {
    margin-left: auto;
    margin-right: auto;
  }

  .location-intro {
    position: static;
  }

  .location-card {
    justify-self: stretch;
    width: 100%;
  }
}

@media (max-width: 560px) {
  .brand span {
    font-size: 0.95rem;
  }

  .nav-links {
    width: 100%;
  }

  .nav-links a {
    padding-left: 0;
  }

  .qr-demo,
  .choice-grid {
    grid-template-columns: 1fr;
  }

  .location-main {
    padding-top: 32px;
    padding-bottom: 38px;
  }

  .qr-intro h1,
  .location-intro h1 {
    font-size: clamp(2.45rem, 13vw, 4.25rem);
  }

  .feedback-meta span {
    flex: 1 1 140px;
  }

  .qr-code {
    width: min(100%, 210px);
    margin-right: auto;
    margin-left: auto;
  }

  .button {
    width: 100%;
  }

  .location-form .form-actions {
    grid-template-columns: minmax(0, 1fr) minmax(96px, 0.5fr);
  }

  .location-form .button {
    width: auto;
    padding-left: 12px;
    padding-right: 12px;
  }
}

@media (max-width: 380px) {
  .location-form .form-actions {
    grid-template-columns: 1fr;
  }
}
