/* ============================================================
   CONTACT page
   ============================================================ */

.ph-lede {
  margin-top: 28px;
  font-size: 17px;
  max-width: 560px;
  color: var(--text-dim);
  line-height: 1.55;
}

/* ============================================================ Methods */

.methods { padding: 64px 0; border-bottom: 1px solid var(--border); }
.methods-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
@media (max-width: 980px) { .methods-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .methods-grid { grid-template-columns: 1fr; } }

.method {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  transition: border-color .25s, transform .25s, background .25s;
  text-decoration: none;
  color: var(--text);
}
.method:hover {
  border-color: var(--red-deep);
  background: var(--surface-2);
  transform: translateY(-3px);
}
.method:hover::before, .method:hover::after,
.method:hover .bk-tr, .method:hover .bk-bl { border-color: var(--red); opacity: 1; }
.method-icon {
  width: 48px; height: 48px;
  border: 1px solid var(--border-strong);
  border-radius: var(--r-sm);
  display: grid; place-items: center;
  color: var(--text-dim);
  transition: color .25s, border-color .25s;
}
.method-icon svg { width: 22px; height: 22px; }
.method:hover .method-icon { color: var(--text); border-color: var(--red); }
.method-icon-red {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
  box-shadow: 0 0 12px var(--red-glow);
}
.method:hover .method-icon-red { color: #fff; }

.method-tag {
  display: inline-block;
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--red);
  margin-bottom: 12px;
}
.method-body h3 { font-size: 19px; margin-bottom: 8px; }
.method-body p { font-size: 13px; color: var(--text-dim); line-height: 1.5; margin-bottom: 16px; }
.method-detail {
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--text-mute);
  transition: color .2s;
}
.method:hover .method-detail { color: var(--red); }

/* ============================================================ Quote form */

.quote { padding: 96px 0; border-bottom: 1px solid var(--border); background: var(--bg-1); }

.quote-grid {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 32px;
  align-items: start;
}
@media (max-width: 1024px) { .quote-grid { grid-template-columns: 1fr; } }

/* ---------- live estimate ---------- */
.quote-estimate {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--r);
  padding: 32px;
  position: sticky;
  top: 84px;
  overflow: hidden;
}
.quote-estimate::after {
  content: "";
  position: absolute;
  width: 280px; height: 280px;
  right: -140px; top: -140px;
  background: radial-gradient(circle, var(--red-glow), transparent 70%);
  pointer-events: none;
  opacity: 0.5;
}
.qe-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 28px;
}
.qe-tag { font-size: 10px; letter-spacing: 0.18em; color: var(--text-mute); }
.qe-status {
  display: flex; align-items: center; gap: 8px;
  font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--red);
}
.qe-status .dot {
  width: 6px; height: 6px;
  background: var(--red);
  border-radius: 50%;
  box-shadow: 0 0 6px var(--red-glow);
  animation: pulse 1.2s infinite;
}

.qe-total {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 8px;
}
.qe-currency {
  font-family: var(--mono);
  font-size: 28px;
  color: var(--red);
  font-weight: 500;
}
.qe-amount {
  font-family: var(--display);
  font-size: 64px;
  font-weight: 500;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
  color: var(--text);
  line-height: 1;
  transition: opacity .15s;
}
.qe-range {
  font-size: 11px;
  color: var(--text-mute);
  letter-spacing: 0.05em;
}
.qe-divider {
  height: 1px;
  background: var(--border);
  margin: 24px 0;
}
.qe-breakdown {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
  font-family: var(--mono);
  font-size: 11px;
}
.qe-breakdown li {
  display: flex;
  justify-content: space-between;
  letter-spacing: 0.04em;
  color: var(--text);
}
.qe-breakdown li > span:first-child {
  color: var(--text-mute);
  text-transform: uppercase;
}
.qe-breakdown li .dim { color: var(--text-mute); }
.qe-lead { display: flex; justify-content: space-between; align-items: center; }
.qe-lead .coord { color: var(--text-mute); letter-spacing: 0.12em; text-transform: uppercase; font-size: 10px; }
.qe-lead strong { font-family: var(--mono); font-weight: 400; font-size: 12px; color: var(--text); }
.qe-foot {
  font-size: 10px;
  color: var(--text-mute);
  line-height: 1.5;
  letter-spacing: 0;
  font-family: var(--display);
}

/* ---------- form fields ---------- */
.quote-fields {
  display: flex;
  flex-direction: column;
  gap: 36px;
}
.qf-step {
  border: 0;
  padding: 0;
  margin: 0;
}
.qf-step legend {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 14px;
  display: block;
  letter-spacing: -0.01em;
}
.qf-step legend .mono {
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--red);
  margin-right: 12px;
}
.qf-step legend .small { font-size: 11px; }

.qf-row-2 { display: grid; grid-template-columns: 1.6fr 1fr; gap: 32px; }
.qf-row-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 720px) {
  .qf-row-2, .qf-row-3 { grid-template-columns: 1fr; gap: 24px; }
}

/* segmented control */
.seg {
  display: flex;
  gap: 8px;
  flex-wrap: nowrap;
}
.seg-wrap { flex-wrap: wrap; }
.seg-opt {
  flex: 1;
  padding: 14px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  font-family: var(--display);
  font-size: 14px;
  color: var(--text-dim);
  text-align: center;
  transition: all .15s;
  cursor: pointer;
  position: relative;
}
.seg-opt small {
  display: block;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--text-mute);
  margin-top: 4px;
  letter-spacing: 0.05em;
}
.seg-opt:hover {
  border-color: var(--border-strong);
  color: var(--text);
}
.seg-opt.active {
  background: var(--red-soft);
  border-color: var(--red);
  color: var(--text);
  box-shadow: 0 0 0 1px var(--red), 0 0 16px var(--red-glow);
}
.seg-opt.active small { color: var(--red); }

/* material picker — uses small swatch chips */
.mat-pick {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
@media (max-width: 720px) { .mat-pick { grid-template-columns: repeat(2, 1fr); } }
.mat-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  cursor: pointer;
  text-align: left;
  transition: all .15s;
}
.mat-chip:hover { border-color: var(--border-strong); }
.mat-chip.active {
  background: var(--red-soft);
  border-color: var(--red);
  box-shadow: 0 0 0 1px var(--red);
}
.mat-chip .swatch {
  width: 14px; height: 14px;
  border-radius: 3px;
  border: 1px solid var(--border-strong);
  flex-shrink: 0;
}
.mat-chip .label { font-size: 13px; font-weight: 500; color: var(--text); }
.mat-chip .sub { font-family: var(--mono); font-size: 10px; color: var(--text-mute); margin-left: auto; }

/* quantity */
.qty-control {
  display: flex;
  align-items: stretch;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  background: var(--surface);
  overflow: hidden;
  max-width: 200px;
}
.qty-btn {
  width: 48px;
  font-size: 18px;
  color: var(--text-dim);
  transition: color .15s, background .15s;
  cursor: pointer;
}
.qty-btn:hover { background: var(--surface-2); color: var(--red); }
.qty-input {
  flex: 1;
  text-align: center;
  background: transparent;
  border: 0;
  font-family: var(--mono);
  font-size: 16px;
  font-weight: 500;
  color: var(--text);
  font-variant-numeric: tabular-nums;
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
  padding: 12px 0;
  outline: none;
}
.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* drop zone */
.qf-drop {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 32px 24px;
  background: var(--surface);
  border: 1.5px dashed var(--border-strong);
  border-radius: var(--r);
  color: var(--text-dim);
  cursor: pointer;
  transition: all .2s;
  text-align: center;
}
.qf-drop:hover {
  border-color: var(--red);
  background: var(--surface-2);
  color: var(--text);
}
.qf-drop.dragover {
  border-color: var(--red);
  background: var(--red-soft);
  color: var(--text);
}
.qf-drop svg { color: var(--text-dim); transition: color .2s; }
.qf-drop:hover svg, .qf-drop.dragover svg { color: var(--red); }
.qf-drop-main { font-size: 14px; font-weight: 500; color: var(--text); }
.qf-drop-sub { font-size: 10px; letter-spacing: 0.12em; color: var(--text-mute); text-transform: uppercase; }
.qf-drop-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 12px;
  width: 100%;
  max-width: 480px;
  font-family: var(--mono);
  font-size: 11px;
}
.qf-drop-list:empty { display: none; }
.qf-file-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 12px;
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  color: var(--text);
}
.qf-file-item .file-x { margin-left: auto; color: var(--text-mute); cursor: pointer; padding: 2px 6px; }
.qf-file-item .file-x:hover { color: var(--red); }
.qf-file-size { color: var(--text-mute); }

/* textarea + input */
.quote-fields textarea,
.quote-fields input[type="text"],
.quote-fields input[type="email"],
.quote-fields input[type="tel"] {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 14px 16px;
  color: var(--text);
  font-family: var(--display);
  font-size: 14px;
  transition: border-color .15s, background .15s;
  resize: vertical;
}
.quote-fields textarea::placeholder,
.quote-fields input::placeholder { color: var(--text-mute); }
.quote-fields textarea:focus,
.quote-fields input:focus {
  outline: none;
  border-color: var(--red);
  background: var(--bg-1);
}

.qf-submit-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 8px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.qf-success {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 20px;
  background: rgba(34,197,94,0.10);
  border: 1px solid rgba(34,197,94,0.30);
  border-radius: var(--r-sm);
  font-size: 14px;
  flex-wrap: wrap;
}
.qf-success .dot {
  width: 8px; height: 8px;
  background: var(--ok);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--ok);
}
.qf-success strong { color: var(--text); font-weight: 500; }
.qf-success .dim { color: var(--text-dim); }

/* ============================================================ Map */

.map-section { padding: 96px 0; }
.map-grid {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 24px;
  align-items: start;
}
@media (max-width: 980px) { .map-grid { grid-template-columns: 1fr; } }

.map-info { display: flex; flex-direction: column; gap: 16px; }

.map-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 28px;
  transition: border-color .25s;
}
.map-card:hover { border-color: var(--border-strong); }
.small-coord {
  font-size: 10px;
  letter-spacing: 0.15em;
  color: var(--text-mute);
  text-transform: uppercase;
  margin-bottom: 14px;
  display: block;
}
.map-card h3 { font-size: 18px; margin-bottom: 14px; }
.map-card address {
  font-style: normal;
  font-size: 14px;
  color: var(--text);
  line-height: 1.6;
  margin-bottom: 20px;
}
.hours-list, .contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}
.hours-list li {
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-dim);
  padding-bottom: 6px;
  border-bottom: 1px dashed var(--border);
}
.hours-list li.closed { color: var(--text-mute); }
.contact-list li {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 12px;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px dashed var(--border);
}
.contact-list li .mono {
  font-size: 10px;
  color: var(--text-mute);
  letter-spacing: 0.15em;
}
.contact-list li a {
  font-size: 14px;
  color: var(--text);
  transition: color .15s;
}
.contact-list li a:hover { color: var(--red); }

.map-frame {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--r);
  overflow: hidden;
}
.map-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  font-size: 10px;
  color: var(--text-dim);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.map-header .vp-dot {
  width: 8px; height: 8px;
  background: var(--red);
  border-radius: 50%;
  box-shadow: 0 0 6px var(--red-glow);
  animation: pulse 1.2s infinite;
}
.map-header .ml-auto { margin-left: auto; }
.map-canvas {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
}
.map-canvas svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.map-text {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  fill: rgba(255,255,255,0.45);
  letter-spacing: 0.18em;
}
.map-text-faint {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  fill: rgba(255,255,255,0.25);
  letter-spacing: 0.18em;
}
.map-pin-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  fill: #ff2e2e;
  letter-spacing: 0.18em;
}
.map-pin-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  fill: #ebebef;
  letter-spacing: 0.1em;
}
.map-footer {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 10px 16px;
  border-top: 1px solid var(--border);
  font-size: 10px;
  color: var(--text-mute);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.map-footer span:last-child { margin-left: auto; }
[data-theme="light"] .map-canvas svg rect:first-of-type { fill: #f0f0ee; }
[data-theme="light"] .map-text { fill: rgba(0,0,0,0.5); }
[data-theme="light"] .map-text-faint { fill: rgba(0,0,0,0.3); }
[data-theme="light"] .map-pin-label { fill: #18181c; }
