/* HomeVision — Extremely modern, premium real-estate / design studio aesthetic */
:root {
  --primary: #1e3a8a;        /* Deep professional blue */
  --accent: #3b82f6;
  --slate: #0f172a;
  --muted: #64748b;
  --surface: #ffffff;
  --bg: #f8fafc;
  --border: #e2e8f0;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  background: var(--bg);
  color: var(--slate);
  -webkit-font-smoothing: antialiased;
}

h1, h4 {
  letter-spacing: -0.025em;
}

/* Match the simple style of newsouthmetals.com */
body {
  font-family: Arial, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  color: #333;
}

h1, h2, h3, h4 {
  font-weight: bold;
}

/* Top bar exact */
.top-bar {
  background-color: #000 !important;
  color: #fff;
  font-size: 12px;
}

/* Header / Navbar */
header {
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.navbar-brand {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary) !important;
  text-decoration: none;
  padding: 0.25rem 0;
  letter-spacing: -0.01em;
}

/* Premium Hero */
.hero-section {
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  border-bottom: 1px solid var(--border);
  padding-top: 2.25rem;
  padding-bottom: 1.5rem;
}

.hero-section h1 {
  font-size: 2.15rem;
  font-weight: 700;
  line-height: 1.1;
}

@media (min-width: 768px) {
  .hero-section h1 { font-size: 2.65rem; }
}

/* Modern Step Indicator */
.step-indicator {
  padding: 0.75rem 0 1rem;
  position: relative;
}

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 78px;
  transition: all .2s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  z-index: 2;
}

.step-circle {
  width: 34px;
  height: 34px;
  border-radius: 9999px;
  border: 2.5px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.875rem;
  background: var(--surface);
  color: var(--muted);
  transition: all .2s ease;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
}

.step.active .step-circle {
  border-color: var(--primary);
  color: #fff;
  background: var(--primary);
  box-shadow: 0 0 0 4px rgba(30, 58, 138, 0.12);
}

.step.completed .step-circle {
  border-color: #16a34a;
  background: #16a34a;
  color: white;
}

.step-label {
  font-size: 0.7rem;
  font-weight: 600;
  margin-top: 8px;
  color: var(--muted);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.step.active .step-label {
  color: var(--primary);
  font-weight: 700;
}

.step-line {
  flex: 1;
  height: 2.5px;
  background: var(--border);
  margin-top: 16px;
  min-width: 18px;
  max-width: 82px;
  position: relative;
  top: -1px;
}

.step.completed + .step-line {
  background: #16a34a;
}

/* Ultra-premium cards */
.card {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 4px;
}

/* Dropzone — very modern */
.dropzone {
  background: #fff;
  border: 2px dashed #999 !important;
  min-height: 200px;
}

.dropzone.dragover {
  background: #f0f9ff;
  border-color: var(--primary) !important;
  transform: scale(1.005);
}

.dz-content {
  transition: opacity .15s ease;
}



/* Extremely nice material swatches */
.option-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(104px, 1fr));
  gap: 10px;
}

.swatch {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0;
  background: #fff;
  cursor: pointer;
  overflow: hidden;
  transition: all 0.12s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 1px 2px rgb(15 23 42 / 0.04);
}

.swatch:hover {
  border-color: #94a3b8;
  transform: translateY(-1px);
  box-shadow: 0 4px 6px -1px rgb(15 23 42 / 0.08);
}

.swatch.selected {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.15);
  position: relative;
}

.swatch.selected::after {
  content: "✓";
  position: absolute;
  top: 6px;
  right: 6px;
  width: 18px;
  height: 18px;
  background: var(--primary);
  color: white;
  font-size: 11px;
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.swatch span {
  display: block;
  height: 56px;
  width: 100%;
  border-bottom: 1px solid var(--border);
}

.swatch .keep {
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  color: var(--muted);
  background: #f8fafc;
  font-size: 0.78rem;
  border-bottom: 1px solid var(--border);
}

.swatch span:not(.keep) {
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.6);
}

.swatch {
  font-size: 0.72rem;
  font-weight: 500;
  color: #334155;
  padding: 6px 8px 8px;
  text-align: center;
  line-height: 1.15;
}

.navbar-brand {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* Hero */
.hero-section {
  background: linear-gradient(to bottom, #ffffff, #f8f9fa);
  border-bottom: 1px solid #e9ecef;
}

/* Step indicator */
.step-indicator {
  padding: 0.5rem 0;
}

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 70px;
  opacity: 0.55;
  transition: all .2s ease;
}

.step.active {
  opacity: 1;
}

.step.completed .step-circle {
  background: #198754;
  color: white;
  border-color: #198754;
}

.step-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid #adb5bd;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  background: #fff;
  color: #495057;
}

.step.active .step-circle {
  border-color: var(--primary);
  color: var(--primary);
  background: #e7f1ff;
}

.step-label {
  font-size: 0.75rem;
  margin-top: 6px;
  font-weight: 600;
  color: #495057;
}

.step-line {
  flex: 1;
  height: 2px;
  background: #dee2e6;
  margin-top: 15px;
  min-width: 24px;
  max-width: 70px;
}

/* Dropzone */
.dropzone {
  background: #fff;
  transition: all 0.2s ease;
  border-color: #ced4da !important;
  min-height: 220px;
}

.dropzone.dragover {
  background: #f0f7ff;
  border-color: var(--primary) !important;
  box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.1);
}

.upload-preview img {
  border: 1px solid #dee2e6;
  max-width: 100%;
  height: auto;
}

/* Swatches - modern look */
.option-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 8px;
}

.swatch {
  border: 2px solid #d0d0d0;
  border-radius: 6px;
  padding: 6px 10px;
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  background: #fff;
  transition: all .1s ease;
  min-height: 36px;
  color: #222;
}

.swatch:hover {
  border-color: #999;
  background: #f9f9f9;
}

.swatch.selected {
  border-color: #0356fc;
  background: #eef5ff;
  box-shadow: 0 0 0 2px rgba(3, 86, 252, 0.18);
}

.swatch span {
  display: inline-block;
  width: 18px;
  height: 18px;
  border-radius: 3px;
  flex-shrink: 0;
  border: 1px solid rgba(0,0,0,0.1);
}

.swatch .keep {
  width: auto;
  height: auto;
  border: none;
  font-weight: 600;
  color: #495057;
  padding-left: 2px;
}

/* Comparison */
/* Comparison area — very clean and modern */
.comparison-box {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 10px 10px -3px rgb(15 23 42 / 0.06);
}

.comparison-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: #475569;
  letter-spacing: 0.01em;
}

/* Buttons - premium feel */
.btn-primary {
  background: var(--primary);
  border-color: var(--primary);
  font-weight: 600;
  letter-spacing: -.01em;
  border-radius: 10px;
  padding-top: .55rem;
  padding-bottom: .55rem;
}

.btn-primary:hover {
  background: #1e40af;
  border-color: #1e40af;
}

.btn-success {
  border-radius: 10px;
  font-weight: 600;
}

.btn-outline-secondary, .btn-outline-primary {
  border-radius: 10px;
  font-weight: 500;
}

/* Loading */
#generateLoading {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
}

/* Alerts */
#verifyResult .alert {
  border-radius: 12px;
  border-width: 1px;
}

/* Misc polish */
.text-muted {
  color: var(--muted) !important;
}

.small {
  font-size: 0.8125rem;
}

/* Simple loading spinner for after photo upload */
.spinner {
  border: 4px solid #f3f3f3;
  border-top: 4px solid #0356fc;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  animation: spin 1s linear infinite;
  margin: 10px auto;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Responsive */
@media (max-width: 576px) {
  .step-label { font-size: 0.65rem; }
  .option-grid { grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); }
  .hero-section h1 { font-size: 1.85rem; }
}

/* ==========================================================================
   New South Metals brand theme (chrome) — matches newsouthmetals.com
   ========================================================================== */
:root {
  --nsm-blue: #0356fc;
  --nsm-blue-light: #0593fe;
  --nsm-blue-dark: #044dfe;
  --nsm-cyan: #00ffff;
  --nsm-gradient: linear-gradient(to right, #0593fe 0%, #0356fc 100%);
  --nsm-gradient-btn: linear-gradient(to right, #055dfe 0%, #044dfe 100%);
}

/* Top utility bar */
.nsm-topbar {
  background: #000;
  color: #fff;
  font-size: 12px;
  padding: 5px 0;
}
.nsm-topbar a { color: #fff; text-decoration: none; }
.nsm-topbar a:hover { color: var(--nsm-cyan); }
.nsm-topbar-fb { display: inline-flex; align-items: center; gap: 6px; }
.nsm-topbar-msg { text-align: right; }
.nsm-topbar-msg a { font-weight: 700; white-space: nowrap; }

/* Logo band */
.nsm-header {
  background: #000;
  padding: 12px 0;
  border-bottom: 3px solid var(--nsm-blue);
}
.nsm-brand { display: inline-block; padding: 0; margin: 0; }
.nsm-brand img { height: 60px; width: auto; display: block; }

/* Primary navigation */
.nsm-navbar {
  background-image: var(--nsm-gradient);
  padding: 0;
  box-shadow: 0 2px 6px rgba(0,0,0,0.25);
}
.nsm-navbar .navbar-nav .nav-link {
  color: #fff;
  font-weight: 600;
  font-size: 0.86rem;
  padding: 12px 13px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  transition: background .15s ease, color .15s ease;
}
.nsm-navbar .navbar-nav .nav-link:hover,
.nsm-navbar .navbar-nav .nav-link:focus {
  background: rgba(0,0,0,0.18);
  color: var(--nsm-cyan);
}
.nsm-nav-cta { background: rgba(0,0,0,0.28); }
.nsm-badge {
  display: inline-block;
  background: var(--nsm-cyan);
  color: #002;
  font-size: 0.58rem;
  font-weight: 800;
  border-radius: 3px;
  padding: 1px 5px;
  vertical-align: middle;
  margin-left: 3px;
  letter-spacing: 0.04em;
}
.nsm-navbar .navbar-toggler { border-color: rgba(255,255,255,0.55); }

/* Brand buttons (pill + blue gradient like NSM) */
.nsm-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 2px solid transparent;
  border-radius: 20px;
  padding: 8px 20px;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  cursor: pointer;
  line-height: 1.2;
  transition: transform .12s ease, filter .12s ease;
}
.nsm-btn:hover { filter: brightness(1.08); transform: translateY(-1px); color: #fff; }
.nsm-btn-primary, .nsm-btn-call {
  background:
    var(--nsm-gradient-btn) padding-box,
    var(--nsm-gradient) border-box;
  color: #fff;
}
.nsm-btn-ghost { background: transparent; border-color: #fff; color: #fff; }
.nsm-btn-ghost:hover { background: rgba(255,255,255,0.12); }
.nsm-btn-lg { padding: 13px 34px; font-size: 1.05rem; }

/* Hero */
.nsm-hero {
  background:
    linear-gradient(rgba(0,0,0,0.60), rgba(0,0,0,0.74)),
    url('/img/pole-barn.jpg') center/cover no-repeat, #000;
  color: #fff;
  text-align: center;
  padding: 62px 0 70px;
}
.nsm-hero h1 {
  font-size: 2.4rem;
  font-weight: 800;
  line-height: 1.12;
  text-shadow: 0 2px 8px rgba(0,0,0,0.6);
  margin-bottom: 12px;
}
.nsm-hero h1 em { color: var(--nsm-cyan); font-style: normal; }
.nsm-hero .nsm-hero-sub {
  font-size: 1.08rem;
  color: #e8f1ff;
  max-width: 720px;
  margin: 0 auto 26px;
}
.nsm-hero .nsm-tag {
  display: inline-block;
  color: var(--nsm-cyan);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.78rem;
  margin-bottom: 14px;
}
@media (min-width: 768px) { .nsm-hero h1 { font-size: 3.1rem; } }

/* Section heading accent */
.nsm-section-title {
  font-weight: 800;
  text-align: center;
  padding-bottom: 12px;
  margin-bottom: 30px;
}
.nsm-section-title::after {
  content: "";
  display: block;
  width: 72px;
  height: 4px;
  background: var(--nsm-gradient);
  border-radius: 2px;
  margin: 12px auto 0;
}

/* Product cards */
.nsm-product-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  height: 100%;
  box-shadow: 0 4px 14px rgba(15,23,42,0.06);
  transition: transform .15s ease, box-shadow .15s ease;
}
.nsm-product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(15,23,42,0.12);
}
.nsm-product-card img { width: 100%; height: 200px; object-fit: cover; display: block; }
.nsm-product-card .nsm-product-body { padding: 18px 20px 22px; }
.nsm-product-card h4 { color: var(--nsm-blue); font-weight: 800; margin-bottom: 8px; }

/* Footer */
.nsm-footer {
  background: #0a0a0a;
  color: #cbd5e1;
  border-top: 4px solid var(--nsm-blue);
  padding: 40px 0 22px;
  font-size: 0.9rem;
  margin-top: 44px;
}
.nsm-footer a { color: #cbd5e1; text-decoration: none; }
.nsm-footer a:hover { color: var(--nsm-cyan); }
.nsm-footer-logo { height: 52px; margin-bottom: 14px; }
.nsm-footer-addr { line-height: 1.7; margin: 0; }
.nsm-footer-h {
  color: #fff;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.85rem;
  margin-bottom: 12px;
}
.nsm-footer-links { list-style: none; padding: 0; margin: 0; line-height: 2; }
.nsm-footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  margin-top: 28px;
  padding-top: 16px;
  font-size: 0.8rem;
  color: #94a3b8;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px;
}
.nsm-footer-note { color: #64748b; }

/* Generate button disabled state */
#generateBtn:disabled { opacity: 0.5; cursor: not-allowed; filter: grayscale(0.25); }

/* Anchor offset so the nav/hero don't cover the visualizer */
#visualizer { scroll-margin-top: 16px; }

/* Small screens */
@media (max-width: 767px) {
  .nsm-topbar-msg { text-align: left; width: 100%; margin-top: 3px; }
  .nsm-brand img { height: 46px; }
  .nsm-navbar .navbar-nav .nav-link { padding: 10px 6px; }
}
}
/* ===== Proof-of-concept / test-host banner ===== */
.poc-banner {
  background: linear-gradient(90deg, #7c2d12 0%, #9a3412 50%, #7c2d12 100%);
  color: #fff7ed;
  font-size: 13px;
  line-height: 1.35;
  padding: 8px 0;
  text-align: center;
  border-bottom: 2px solid #c2410c;
  position: relative;
  z-index: 1050;
}

.poc-banner strong {
  letter-spacing: 0.04em;
  font-size: 12px;
  background: #fff7ed;
  color: #9a3412;
  padding: 2px 8px;
  border-radius: 3px;
  margin-right: 4px;
}

.poc-banner-sep {
  margin: 0 6px;
  opacity: 0.7;
}

.poc-hero-note {
  max-width: 560px;
  margin: 0 auto 1rem;
  font-size: 13px;
  color: #fef3c7;
  background: rgba(0,0,0,0.22);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 6px;
  padding: 8px 12px;
}

.poc-inline-badge {
  display: inline-block;
  vertical-align: middle;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #9a3412;
  background: #ffedd5;
  border: 1px solid #fdba74;
  border-radius: 999px;
  padding: 2px 8px;
  margin-left: 6px;
}

