/* ==========================================================================
   Hilltop Makers LLC — shared stylesheet (dark blueprint theme)
   ========================================================================== */

:root {
  --bg: #0A0A0C;
  --bg-deep: #000000;
  --surface: #17181B;
  --surface-raised: #1E2124;
  --line: #2E3033;
  --line-bright: #45484C;
  --text: #ECECEA;
  --text-soft: #A6AAAD;
  --text-faint: #6E7175;

  --signal: #C81E24;       /* laser accent — matches the logo's beam */
  --signal-bright: #E3323A;
  --signal-dim: #4A1013;
  --signal-glow: rgba(200, 30, 36, 0.35);

  --filament: #2FD9B5;     /* 3D print accent */
  --filament-dark: #1FA98C;
  --filament-glow: rgba(47, 217, 181, 0.3);

  --soon-gray: #5C5F63;

  --font-display: "Chakra Petch", "Arial Narrow", sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", "SF Mono", monospace;

  --cut: 18px; /* machined-corner clip size */
  --cut-sm: 10px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.05;
  margin: 0 0 0.4em;
  letter-spacing: 0.01em;
  color: var(--text);
}

h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1em; max-width: 62ch; color: var(--text-soft); }

a { color: inherit; }

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
}

/* --- machined corner: a single clipped corner, like a cut sheet of stock --- */
.cut {
  clip-path: polygon(
    var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)),
    calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut)
  );
}
.cut-sm {
  clip-path: polygon(
    var(--cut-sm) 0, 100% 0, 100% calc(100% - var(--cut-sm)),
    calc(100% - var(--cut-sm)) 100%, 0 100%, 0 var(--cut-sm)
  );
}

/* --- blueprint background texture (decorative, behind hero content) --- */
.blueprint-layer {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}
.blueprint-layer img,
.blueprint-layer svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.92;
  z-index: 1;
}
.blueprint-layer::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: radial-gradient(
    circle at 50% 42%,
    rgba(220, 50, 55, 0.55) 0%,
    rgba(200, 30, 36, 0.28) 22%,
    rgba(200, 30, 36, 0.1) 42%,
    transparent 65%
  );
  mix-blend-mode: screen;
}
.blueprint-layer::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  background: radial-gradient(ellipse at 50% 34%, transparent 0%, var(--bg) 80%);
}

/* --- nav --- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(10, 10, 12, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.site-nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text);
}
.brand img { height: 50px; width: auto; display: block; }
.brand-text {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links a {
  text-decoration: none;
  font-weight: 500;
  padding: 6px 2px;
  color: var(--text-soft);
  border-bottom: 2px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.nav-links a:hover, .nav-links a.active { color: var(--text); border-bottom-color: var(--signal); }

/* --- buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 24px;
  background: var(--surface-raised);
  color: var(--text);
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid var(--line-bright);
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:disabled { background: var(--surface); color: var(--soon-gray); cursor: not-allowed; transform: none; }
.btn-ember {
  background: var(--signal);
  border-color: var(--signal);
  color: #fff;
}
.btn-ember:hover { background: var(--signal-bright); box-shadow: 0 0 24px var(--signal-glow); }
.btn-filament {
  background: var(--filament);
  border-color: var(--filament);
  color: #06231C;
}
.btn-filament:hover { background: #46E6C4; box-shadow: 0 0 24px var(--filament-glow); }
.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--line-bright);
  padding: 11px 22px;
}
.btn-outline:hover { border-color: var(--signal); color: var(--text); }
.btn:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 2px solid var(--signal);
  outline-offset: 2px;
}

/* --- hero split (home) --- */
.hero {
  position: relative;
  padding: 72px 0 0;
  text-align: center;
  overflow: hidden;
}
.hero-brand {
  position: relative;
  z-index: 1;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.1rem, 2.2vw, 1.4rem);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-soft);
  margin-bottom: 28px;
}
.hero .hero-tagline, .hero > .lede { position: relative; z-index: 1; }
.hero .hero-tagline {
  font-size: clamp(1.6rem, 3.4vw, 2.4rem);
  margin-top: 36px;
}
.hero p.lede {
  margin: 18px auto 0;
  max-width: 52ch;
  font-size: 1.1rem;
  color: var(--text-soft);
}

.split {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  background: transparent;
  margin-top: 44px;
}
.split-panel {
  background: var(--surface);
  padding: 48px 40px 44px;
  text-decoration: none;
  color: var(--text);
  position: relative;
  min-height: 320px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 2px solid var(--line-bright);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
  transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}
.split-panel:hover {
  background: var(--surface-raised);
  transform: translateY(-2px);
}
.panel-3d:hover {
  border-color: var(--filament);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.5), 0 0 26px var(--filament-glow);
}
.panel-laser:hover {
  border-color: var(--signal);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.5), 0 0 26px var(--signal-glow);
}
.split-panel .panel-tag {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--text-faint);
  margin-bottom: 10px;
}
.split-panel h2 { margin-bottom: 12px; }
.split-panel .chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 28px; }
.chip {
  font-size: 0.76rem;
  font-family: var(--font-mono);
  font-weight: 500;
  padding: 5px 12px;
  border: 1px solid var(--line-bright);
  background: var(--bg);
  color: var(--text-soft);
}
.split-panel .panel-cta {
  font-family: var(--font-display);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.panel-3d .panel-cta { color: var(--filament); }
.panel-laser .panel-cta { color: var(--signal-bright); }
.panel-arrow { transition: transform 0.15s ease; }
.split-panel:hover .panel-arrow { transform: translateX(4px); }

@media (max-width: 760px) {
  .split { grid-template-columns: 1fr; }
}

/* --- section rhythm --- */
.section { padding: 72px 0; }
.section-tight { padding: 40px 0; }
.section-alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 62ch; margin-bottom: 36px; }
.section-head p { color: var(--text-soft); }

/* --- featured product --- */
.featured {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--text);
}
.featured-copy { padding: 48px 44px; }
.featured-copy .kicker { color: var(--filament); font-family: var(--font-mono); font-weight: 500; letter-spacing: 0.04em; margin-bottom: 8px; }
.featured-copy h2 { color: var(--text); }
.featured-copy p { color: var(--text-soft); }
.featured-visual {
  background: var(--bg-deep);
  border-left: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  min-height: 260px;
}
.featured-visual svg { width: 100%; max-width: 260px; height: auto; }
.featured-visual.featured-visual-photo { padding: 16px; overflow: hidden; }
.featured-visual-photo img {
  width: 100%;
  height: 100%;
  min-height: 260px;
  object-fit: contain;
  display: block;
}

@media (max-width: 760px) {
  .featured { grid-template-columns: 1fr; }
  .featured-visual { border-left: none; border-top: 1px solid var(--line); }
}

/* --- how it works --- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.step { background: var(--surface); border: 1px solid var(--line); padding: 26px 24px; }
.step h3 { margin-bottom: 8px; }
.step p { color: var(--text-soft); margin-bottom: 0; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }

/* --- service page header --- */
.page-hero {
  position: relative;
  padding: 52px 0 40px;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.page-hero .container { z-index: 1; }
.page-hero .kicker {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  display: inline-block;
  padding: 5px 14px;
  color: #fff;
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}
.kicker-laser { background: var(--signal); }
.kicker-3d { background: var(--filament); color: #06231C; }
.page-hero h1, .page-hero p.lede { position: relative; z-index: 1; }
.page-hero p.lede { max-width: 60ch; color: var(--text-soft); font-size: 1.05rem; }

/* --- selector grid --- */
.selector-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 16px;
  margin-top: 28px;
}
.option-card {
  background: var(--surface);
  border: 1px solid var(--line-bright);
  padding: 22px 20px 20px;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-body);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: border-color 0.12s ease, transform 0.12s ease, box-shadow 0.12s ease;
}
.option-card:hover { transform: translateY(-2px); border-color: var(--text-faint); }
.option-card .swatch { width: 28px; height: 28px; border: 1px solid var(--line-bright); }
.option-card h3 { margin: 0; font-size: 1.08rem; }
.option-card .tagline { color: var(--text-soft); font-size: 0.92rem; margin: 0; }
.option-card ul { margin: 0; padding-left: 18px; font-size: 0.86rem; color: var(--text-soft); }
.option-card ul li { margin-bottom: 3px; }
.option-card .select-indicator {
  margin-top: auto;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  color: var(--text-faint);
}
.option-card.selected {
  border-color: var(--signal);
  background: #1F1517;
  box-shadow: 0 0 0 1px var(--signal), 0 0 22px var(--signal-glow);
}
.option-card.selected .select-indicator { color: var(--signal-bright); }
.option-card.selected .select-indicator::before { content: "Selected — "; }
.option-card:not(.selected) .select-indicator::before { content: "Choose this material — "; }
.laser-page .option-card:not(.selected) .select-indicator::before { content: "Choose this service — "; }
.option-card.soon {
  cursor: default;
  opacity: 0.55;
}
.option-card.soon:hover { transform: none; border-color: var(--line-bright); }
.option-card.soon .select-indicator { color: var(--soon-gray); }
.option-card.soon .select-indicator::before { content: "Coming soon"; }

/* --- selection summary bar --- */
.selection-bar {
  position: sticky;
  bottom: 0;
  background: var(--surface-raised);
  border-top: 1px solid var(--signal);
  color: var(--text);
  padding: 16px 0;
  transform: translateY(110%);
  transition: transform 0.2s ease;
  z-index: 15;
}
.selection-bar.visible { transform: translateY(0); }
.selection-bar .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.selection-bar .sel-label { font-size: 0.85rem; color: var(--text-faint); }
.selection-bar .sel-value { font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; }

/* --- upload form --- */
.order-form {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 40px;
  max-width: 720px;
  margin-top: 20px;
}
.field { margin-bottom: 22px; }
.field label { display: block; font-weight: 600; margin-bottom: 6px; font-size: 0.92rem; color: var(--text); }
.field .hint { display: block; font-size: 0.82rem; color: var(--text-faint); margin-top: 4px; }
.field input[type="text"],
.field input[type="email"],
.field input[type="number"],
.field select,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line-bright);
  background: var(--bg);
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text);
}
.field input::placeholder, .field textarea::placeholder { color: var(--text-faint); }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--signal); }
.field textarea { resize: vertical; min-height: 90px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }

.dropzone {
  border: 2px dashed var(--line-bright);
  padding: 32px 20px;
  text-align: center;
  background: var(--bg);
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.dropzone:hover { border-color: var(--text-faint); }
.dropzone.dragover { border-color: var(--signal); background: #1F1517; }
.dropzone .dz-title { font-family: var(--font-display); font-weight: 600; margin-bottom: 6px; color: var(--text); }
.dropzone .dz-sub { color: var(--text-faint); font-size: 0.85rem; }
.file-list { list-style: none; margin: 14px 0 0; padding: 0; }
.file-list li {
  display: flex; justify-content: space-between; align-items: center;
  padding: 8px 12px; background: var(--surface-raised); border: 1px solid var(--line); margin-bottom: 6px; font-size: 0.9rem;
  color: var(--text-soft);
}
.file-list button {
  background: none; border: none; color: var(--signal-bright); cursor: pointer; font-weight: 600; font-size: 0.85rem;
}

.form-status { margin-top: 18px; padding: 14px 16px; border: 1px solid var(--line); display: none; color: var(--text); }
.form-status.show { display: block; }
.form-status.ok { border-color: var(--filament); background: #10231F; }
.form-status.err { border-color: var(--signal); background: #21100F; }

/* --- coming soon note --- */
.soon-note {
  font-size: 0.88rem;
  color: var(--text-faint);
  border-left: 2px solid var(--soon-gray);
  padding-left: 14px;
  margin-top: 30px;
  max-width: 60ch;
}

/* --- footer --- */
.site-footer {
  background: var(--bg-deep);
  color: var(--text-faint);
  border-top: 1px solid var(--line);
  padding: 48px 0 28px;
  margin-top: 60px;
}
.site-footer .container { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 24px; }
.site-footer h4 { color: var(--text); font-size: 1rem; }
.site-footer a { color: var(--text-faint); text-decoration: none; }
.site-footer a:hover { color: var(--text); }
.footer-fine { margin-top: 34px; font-size: 0.82rem; color: #4A4D50; }
