:root {
  --bg: #111318;
  --panel: #1b1e26;
  --accent: #e8b923;
  --text: #f2f2f2;
  --muted: #9aa0ab;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 5vw;
  background: #2b2d31;
  border-bottom: 1px solid #3a3c41;
  position: relative;
  z-index: 2;
}

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

.nav-brand {
  display: block;
  line-height: 0;
}

.nav-brand img {
  display: block;
  width: min(150px, 42vw);
  height: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 28px;
}

.nav-brand {
  flex-shrink: 0;
}

.nav-action {
  color: var(--accent) !important;
}

.home-page {
  background: #25272b
    url("../Brawn%20+%20Burl/Pattern/Digital/B+B-Repeat-Pattern-RGB-Full%20Color%20small.png")
    repeat;
  background-size: 420px;
}

.home-page::before {
  content: "";
  position: fixed;
  inset: 0;
  background: radial-gradient(
    ellipse at center,
    rgba(37, 39, 43, 0.96) 0%,
    rgba(37, 39, 43, 0.94) 52%,
    rgba(37, 39, 43, 0.52) 100%
  );
  pointer-events: none;
  z-index: -1;
}

.home-hero {
  min-height: 70vh;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
  align-items: center;
  gap: 5vw;
  max-width: 1400px;
  margin: 0 auto;
  padding: 5vh 5vw 5vh;
}

.hero-content {
  animation: rise-in 700ms ease-out both;
}

.hero-logo {
  width: min(290px, 70vw);
  height: auto;
  margin-bottom: 44px;
}

.eyebrow {
  color: var(--accent);
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  margin: 0 0 14px;
  text-transform: uppercase;
}

.home-hero h1 {
  font-family: "Russo One", sans-serif;
  font-size: clamp(2.7rem, 6vw, 5.8rem);
  font-weight: 400;
  line-height: 0.98;
  margin: 0;
  max-width: 680px;
}

.hero-copy {
  color: #c5c7cc;
  font-size: 1.1rem;
  line-height: 1.6;
  max-width: 430px;
  margin: 28px 0 34px;
}

.hero-button {
  background: var(--accent);
  color: #16181d;
  display: inline-flex;
  gap: 18px;
  align-items: center;
  padding: 14px 18px;
  text-decoration: none;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.hero-button span {
  font-size: 1.4rem;
  line-height: 0.7;
}

.hero-plate {
  display: block;
  width: min(44vw, 560px);
  aspect-ratio: 1;
  justify-self: end;
  border-radius: 50%;
  position: relative;
  background: #25264d;
  box-shadow:
    22px 28px 0 rgba(0, 0, 0, 0.28),
    inset 0 0 0 20px #171833;
  animation: plate-in 900ms 120ms ease-out both;
}

.hero-ring {
  position: absolute;
  border: 2px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  inset: 9%;
}

.hero-ring-inner {
  inset: 34%;
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow:
    inset 0 0 0 28px #969696,
    inset 0 0 0 31px #5e5e5e;
}

.hero-hole {
  position: absolute;
  inset: 44%;
  border-radius: 50%;
  background: #0b0b0b;
}

.hero-word {
  color: #f5f5f1;
  font-family: "Russo One", sans-serif;
  font-size: clamp(1.4rem, 4.05vw, 3.15rem);
  letter-spacing: 0.1em;
  position: absolute;
  text-align: center;
  width: 100%;
}

.hero-word-top {
  top: 19%;
}

.hero-word-bottom {
  bottom: 19%;
}

.hero-word-left,
.hero-word-right {
  font-size: clamp(1rem, 2.9vw, 2.25rem);
  top: 46%;
  width: auto;
}

.hero-word-left {
  left: 12%;
}

.hero-word-right {
  right: 12%;
}

.home-intro,
.home-gallery {
  max-width: 1360px;
  margin: 0 auto;
  padding: 8vh 5vw;
}

.home-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8vw;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.home-intro h2,
.home-gallery h2 {
  font-family: "Russo One", sans-serif;
  font-size: clamp(2rem, 4vw, 4rem);
  font-weight: 400;
  line-height: 1;
  margin: 0;
}

.home-intro > p {
  color: #c5c7cc;
  font-size: 1.12rem;
  line-height: 1.7;
  margin: 0;
  max-width: 500px;
}

.home-gallery .section-heading {
  margin-bottom: 28px;
}

.home-gallery .gallery-grid {
  grid-template-columns: repeat(4, 1fr);
}

.home-gallery .gallery-grid img {
  height: 240px;
  cursor: zoom-in;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.home-gallery .gallery-grid img:hover,
.home-gallery .gallery-grid img:focus-visible {
  transform: scale(1.06);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
  position: relative;
  z-index: 1;
}

.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
  z-index: 1000;
  cursor: zoom-out;
}

.lightbox-overlay[hidden] {
  display: none;
}

.lightbox-overlay img {
  max-width: 92vw;
  max-height: 90vh;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
  cursor: default;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 28px;
  background: none;
  border: none;
  color: #fff;
  font-size: 2.2rem;
  line-height: 1;
  cursor: pointer;
}

.site-footer {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 28px 5vw;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  color: var(--muted);
}

.site-footer img {
  width: 28px;
  height: 28px;
}

.site-footer a {
  color: var(--accent);
  margin-left: auto;
}

@media (max-width: 760px) {
  .site-nav {
    padding: 18px 24px;
  }

  .home-hero {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-height: auto;
    padding: 6vh 24px 9vh;
  }

  .hero-logo {
    margin-bottom: 34px;
  }

  .hero-plate {
    align-self: center;
    width: min(88vw, 480px);
    margin-top: 24px;
  }

  .home-intro {
    display: block;
    padding: 8vh 24px;
  }

  .home-intro > p {
    margin-top: 28px;
  }

  .home-gallery {
    padding: 8vh 24px;
  }

  .home-gallery .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .home-gallery .gallery-grid img {
    height: 180px;
  }

  .site-footer {
    padding: 24px;
  }

  .sold-examples-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes plate-in {
  from {
    opacity: 0;
    transform: translateX(30px) rotate(-9deg);
  }
  to {
    opacity: 1;
    transform: translateX(0) rotate(0);
  }
}

.site-header {
  padding: 24px 32px 8px;
  text-align: center;
}

.brand-logo {
  max-width: 220px;
  height: auto;
  margin-bottom: 12px;
}

.site-header h1 {
  margin: 0 0 6px;
}

.site-header p {
  color: var(--muted);
  margin: 0;
}

.layout {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  padding: 24px 32px 48px;
  justify-content: center;
}

.layout > .sold-examples {
  flex: 0 1 100%;
  max-width: 1244px;
}

.preview-pane {
  background: var(--panel);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.preview-dimensions {
  align-self: stretch;
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: bold;
  text-align: right;
}

#signCanvas {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

.sold-examples {
  width: 100%;
  margin-top: 20px;
  border-top: 1px solid #333844;
  padding-top: 16px;
}

.sold-examples[hidden] {
  display: none;
}

.sold-examples h2 {
  margin: 0 0 10px;
  font-size: 1rem;
}

.sold-examples-grid {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 2px 2px 10px;
  scroll-snap-type: x mandatory;
  scrollbar-color: var(--accent) #0f1117;
}

.sold-examples-grid img {
  display: block;
  flex: 0 0 112px;
  width: 200px;
  height: 200px;
  object-fit: cover;
  border-radius: 4px;
  scroll-snap-align: start;
}

.controls-pane {
  background: var(--panel);
  border-radius: 12px;
  padding: 24px;
  width: 100%;
  max-width: 380px;
}

form label {
  display: block;
  margin: 14px 0 4px;
  font-size: 0.9rem;
  color: var(--muted);
}

.size-value {
  float: right;
  color: var(--accent);
  font-weight: bold;
}

form input,
form select,
form textarea {
  width: 100%;
  padding: 8px 10px;
  border-radius: 6px;
  border: 1px solid #333844;
  background: #0f1117;
  color: var(--text);
  font-size: 1rem;
}

form input[type="range"] {
  padding: 0;
}

form input[type="color"] {
  padding: 2px;
  height: 40px;
}

hr {
  border: none;
  border-top: 1px solid #333844;
  margin: 20px 0;
}

.preview-note {
  margin: 18px 0 0;
  padding: 10px 12px;
  border: 1px solid var(--accent);
  border-radius: 6px;
  background: rgba(232, 185, 35, 0.1);
  color: var(--text);
  font-size: 0.85rem;
  line-height: 1.4;
}

.dimension-note {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.85rem;
}

button[type="submit"] {
  margin-top: 20px;
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 6px;
  background: var(--accent);
  color: #1b1e26;
  font-weight: bold;
  font-size: 1rem;
  cursor: pointer;
}

button[type="submit"]:hover {
  opacity: 0.9;
}

#generateBtn {
  margin-top: 16px;
  width: 100%;
  padding: 12px;
  border: 1px solid var(--accent);
  border-radius: 6px;
  background: transparent;
  color: var(--accent);
  font-weight: bold;
  font-size: 1rem;
  cursor: pointer;
}

#generateBtn:hover {
  background: rgba(232, 185, 35, 0.1);
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 14px 0 4px;
  font-size: 0.9rem;
  color: var(--muted);
}

.radio-row {
  display: flex;
  gap: 16px;
  margin-top: 6px;
}

.radio-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.95rem;
  color: var(--text);
}

.radio-label input {
  width: auto;
}

.checkbox-label input {
  width: auto;
}

#formStatus {
  min-height: 1.2em;
  font-size: 0.9rem;
  color: var(--muted);
}

.step-indicator {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  font-size: 0.85rem;
  color: var(--muted);
}

.step-label.active {
  color: var(--accent);
  font-weight: bold;
}

.step-arrow {
  color: var(--muted);
}

#continueBtn {
  margin-top: 10px;
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 6px;
  background: var(--accent);
  color: #1b1e26;
  font-weight: bold;
  font-size: 1rem;
  cursor: pointer;
}

#continueBtn:hover {
  opacity: 0.9;
}

.link-btn {
  background: none;
  border: none;
  color: var(--accent);
  font-size: 0.9rem;
  padding: 0;
  cursor: pointer;
  margin-bottom: 12px;
}

.review-heading {
  font-size: 1.1rem;
  margin: 0 0 10px;
}

.order-summary {
  margin: 0;
  border: 1px solid #333844;
  border-radius: 6px;
  overflow: hidden;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 12px;
  font-size: 0.9rem;
  border-bottom: 1px solid #333844;
}

.summary-row:last-child {
  border-bottom: none;
}

.summary-row dt {
  color: var(--muted);
}

.summary-row dd {
  margin: 0;
  color: var(--text);
  font-weight: bold;
  text-align: right;
}

.gallery {
  padding: 8px 32px 48px;
  text-align: center;
}

.gallery h2 {
  margin: 0 0 20px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  max-width: 1100px;
  margin: 0 auto;
}

.gallery-grid img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 8px;
  background: var(--panel);
  cursor: zoom-in;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.gallery-grid img:hover,
.gallery-grid img:focus-visible {
  transform: scale(1.06);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
  position: relative;
  z-index: 1;
}
