:root {
  --black: #000000;
  --navy: #14213d;
  --gold: #fca311;
  --grey: #e5e5e5;
  --white: #ffffff;
  --muted: #5b6478;
  --navy-soft: rgba(20, 33, 61, 0.12);
  --shadow: 0 24px 70px rgba(20, 33, 61, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--navy);
  background: var(--white);
  font-family: Archivo, Helvetica, Arial, ui-sans-serif, system-ui, sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  color: var(--gold);
}

input,
select,
textarea,
button {
  font: inherit;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: var(--navy);
  color: var(--white);
  padding: 14px clamp(18px, 4vw, 56px);
  border-bottom: 3px solid var(--gold);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
}

.brand:hover {
  color: var(--white);
}

.brand-mark {
  display: block;
  width: 40px;
  height: 40px;
  background: var(--white);
  object-fit: cover;
  border-radius: 2px;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  color: rgba(255, 255, 255, 0.75);
  font-size: 14px;
  font-weight: 700;
}

.nav-links a:hover {
  color: var(--gold);
}

/* ---------- Hero ---------- */

.workbench {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    var(--navy);
  background-size: 34px 34px;
  color: var(--white);
}

.workbench-inner {
  display: grid;
  grid-template-columns: minmax(320px, 1.1fr) minmax(280px, 0.9fr);
  align-items: center;
  gap: clamp(24px, 5vw, 72px);
  padding: clamp(56px, 9vw, 130px) clamp(18px, 5vw, 72px);
}

.hero-art {
  width: 100%;
  max-width: 560px;
  justify-self: center;
  opacity: 0.9;
}

.intro {
  max-width: 860px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 20px;
  font-size: clamp(3.4rem, 9vw, 7.5rem);
  line-height: 0.9;
  font-weight: 900;
  letter-spacing: -0.01em;
}

h2 {
  max-width: 780px;
  font-size: clamp(2rem, 4.5vw, 3.6rem);
  line-height: 1.02;
  font-weight: 900;
  letter-spacing: -0.01em;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.25rem;
  font-weight: 700;
}

.intro-copy {
  max-width: 560px;
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  line-height: 1.55;
}

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

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border: 2px solid transparent;
  padding: 0 24px;
  font-weight: 900;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.button.primary {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--black);
}

.button.primary:hover {
  background: var(--white);
  border-color: var(--white);
  color: var(--navy);
}

.button.secondary {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.55);
  color: var(--white);
}

.button.secondary:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.button.wide {
  width: 100%;
}

/* ---------- Quote section: form + live preview ---------- */

.quote-section {
  background: var(--grey);
}

.section-heading {
  margin-bottom: 34px;
}

.section-copy {
  max-width: 620px;
  margin-top: 14px;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.55;
}

.quote-grid {
  display: grid;
  grid-template-columns: minmax(300px, 420px) minmax(360px, 1fr);
  gap: 28px;
  align-items: start;
}

.quote-side {
  display: grid;
  gap: 24px;
  position: sticky;
  top: 92px;
}

.preview-panel {
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--navy-soft);
  box-shadow: var(--shadow);
}

.preview-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--navy);
  color: var(--white);
  padding: 12px 16px;
  font-size: 13px;
  font-weight: 800;
}

.vector-preview {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(20, 33, 61, 0.05) 1px, transparent 1px),
    linear-gradient(0deg, rgba(20, 33, 61, 0.05) 1px, transparent 1px),
    var(--white);
  background-size: 28px 28px;
}

#stencilPreview {
  display: block;
  width: 100%;
  aspect-ratio: 900 / 560;
}

.preview-footer {
  display: flex;
  min-height: 44px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid var(--navy-soft);
  padding: 10px 14px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.text-button {
  border: 0;
  background: transparent;
  color: var(--navy);
  font-weight: 900;
  cursor: pointer;
  text-decoration: underline;
}

.text-button:hover {
  color: var(--gold);
}

.view-toggle {
  display: inline-flex;
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.toggle-button {
  border: 0;
  background: transparent;
  padding: 5px 14px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.7);
}

.toggle-button + .toggle-button {
  border-left: 1px solid rgba(255, 255, 255, 0.35);
}

.toggle-button.active {
  background: var(--gold);
  color: var(--black);
}

/* SVG preview drawing */

.sheet-outline {
  fill: none;
  stroke: var(--navy);
  stroke-width: 3;
}

.wall-surface {
  fill: #ece9e2;
  stroke: none;
}

.stencil-ghost {
  fill: none;
  stroke: rgba(20, 33, 61, 0.35);
  stroke-width: 2;
  stroke-dasharray: 8 6;
}

.material-label {
  fill: var(--navy);
  font-size: 15px;
  font-weight: 800;
}

.dim-line {
  stroke: var(--muted);
  stroke-width: 1.5;
}

.dim-label {
  fill: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

/* ---------- Sections shared ---------- */

.quote-section,
.band,
.materials,
.industries,
.faq-section,
.contact-section {
  padding: clamp(56px, 8vw, 110px) clamp(18px, 5vw, 72px);
}

/* ---------- FAQ ---------- */

.faq-section {
  background: var(--white);
}

.faq-list {
  display: grid;
  gap: 12px;
  max-width: 900px;
}

.faq-item {
  background: var(--white);
  border: 1px solid rgba(20, 33, 61, 0.2);
}

.faq-item[open] {
  border-color: var(--navy);
  box-shadow: var(--shadow);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  cursor: pointer;
  font-size: 1.08rem;
  font-weight: 800;
  color: var(--navy);
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  flex: none;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  background: var(--navy);
  color: var(--gold);
  font-size: 18px;
  font-weight: 900;
}

.faq-item[open] summary::after {
  content: "\2212";
  background: var(--gold);
  color: var(--black);
}

.faq-item summary:hover {
  color: var(--gold);
}

.faq-body {
  padding: 0 20px 20px;
  color: var(--muted);
  line-height: 1.6;
  font-size: 0.98rem;
}

.faq-body strong {
  color: var(--navy);
}

.faq-body ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 20px;
}

.faq-body p {
  margin: 12px 0 0;
}

.faq-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.faq-table th {
  background: var(--navy);
  color: var(--white);
  text-align: left;
  padding: 10px 12px;
  font-weight: 800;
}

.faq-table td {
  padding: 10px 12px;
  border-bottom: 1px solid rgba(20, 33, 61, 0.15);
  color: var(--navy);
}

.faq-table tbody tr:nth-child(even) {
  background: var(--grey);
}

.faq-footnote {
  max-width: 900px;
  margin: 26px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.faq-footnote a {
  color: var(--navy);
  font-weight: 800;
  text-decoration: underline;
}

.faq-footnote a:hover {
  color: var(--gold);
}

/* ---------- Forms ---------- */

.quote-form,
.contact-form {
  background: var(--white);
  border: 1px solid var(--navy-soft);
  padding: clamp(18px, 3vw, 28px);
  box-shadow: var(--shadow);
}

.estimate {
  display: grid;
  gap: 18px;
  background: var(--navy);
  color: var(--white);
  padding: clamp(18px, 3vw, 28px);
  border-top: 4px solid var(--gold);
  box-shadow: var(--shadow);
}

label,
fieldset {
  display: grid;
  gap: 8px;
  margin: 0 0 18px;
  color: var(--navy);
  font-size: 13px;
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  border: 1.5px solid rgba(20, 33, 61, 0.35);
  background: var(--white);
  color: var(--navy);
  padding: 12px 13px;
  outline: none;
  font-weight: 500;
}

input:hover,
select:hover,
textarea:hover {
  border-color: var(--navy);
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(252, 163, 17, 0.55);
}

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

.checks {
  border: 1.5px solid rgba(20, 33, 61, 0.2);
  padding: 14px;
}

.checks legend {
  padding: 0 6px;
}

.check {
  display: flex;
  grid-template-columns: none;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  font-weight: 600;
}

.check input {
  width: 18px;
  height: 18px;
  accent-color: var(--gold);
}

/* ---------- Estimate card ---------- */

.estimate-label {
  margin-bottom: 8px;
  color: var(--gold);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

#estimatePrice {
  display: block;
  margin-bottom: 12px;
  font-size: clamp(3rem, 6vw, 4.6rem);
  line-height: 0.9;
  font-weight: 900;
}

#estimateMeta {
  margin: 0;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.5;
}

/* ---------- Stencil types band ---------- */

.band {
  background: var(--black);
  color: var(--white);
}

.band .eyebrow {
  color: var(--gold);
}

.type-grid,
.material-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.type-grid article,
.material-list > div {
  min-height: 190px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 22px;
}

.type-grid article:hover {
  border-color: var(--gold);
}

.type-grid p,
.material-list p {
  color: rgba(255, 255, 255, 0.68);
  line-height: 1.55;
}

/* ---------- Industries ---------- */

.industries {
  background: var(--white);
}

.industry-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 10px;
}

.industry-card {
  border: 1px solid rgba(20, 33, 61, 0.2);
  padding: 14px 16px;
  background: var(--white);
}

.industry-card:hover {
  border-color: var(--gold);
  box-shadow: var(--shadow);
}

.industry-card h3 {
  margin: 0 0 10px;
  padding-left: 10px;
  border-left: 3px solid var(--gold);
  font-size: 1rem;
  line-height: 1.25;
}

.industry-card ul {
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

.industry-card li {
  display: inline;
}

.industry-card li + li::before {
  content: " \2022  ";
  color: var(--gold);
}

.industry-more {
  margin: 0;
}

.industry-more summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  color: var(--navy);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  list-style: none;
}

.industry-more summary::-webkit-details-marker {
  display: none;
}

.industry-more summary::after {
  content: "+";
  flex: none;
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  background: var(--navy);
  color: var(--gold);
  font-size: 14px;
  font-weight: 900;
}

.industry-more[open] summary::after {
  content: "\2212";
  background: var(--gold);
  color: var(--black);
}

.industry-more summary:hover {
  color: var(--gold);
}

.industry-more p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

.industries-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  margin-top: 28px;
}

.industries-cta p {
  margin: 0;
  color: var(--muted);
  font-weight: 600;
}

/* ---------- Materials ---------- */

.materials {
  background: var(--navy);
  color: var(--white);
}

.materials .eyebrow {
  color: var(--gold);
}

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

.sample {
  display: block;
  width: 100%;
  height: 82px;
  margin-bottom: 20px;
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.sample-mylar {
  background:
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.24) 0 8px, transparent 8px 16px),
    #d7e8e8;
}

.sample-poly {
  background: var(--white);
}

.sample-rigid {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.75), rgba(255, 255, 255, 0.15)),
    #5d6675;
}

/* ---------- Contact ---------- */

.contact-section {
  background: var(--grey);
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(260px, 380px) minmax(300px, 1fr);
  gap: 28px;
  align-items: start;
  max-width: 1100px;
}

.contact-details {
  background: var(--navy);
  color: var(--white);
  border-top: 4px solid var(--gold);
  padding: clamp(18px, 3vw, 28px);
  box-shadow: var(--shadow);
}

.contact-details dl {
  display: grid;
  gap: 20px;
  margin: 0;
}

.contact-row dt {
  margin-bottom: 4px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.contact-row dd {
  margin: 0;
  font-size: 1.02rem;
  font-weight: 600;
  line-height: 1.5;
}

.contact-row dd a:hover {
  color: var(--gold);
}

.contact-note {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 8px;
  background: rgba(252, 163, 17, 0.18);
  color: var(--gold);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.form-status {
  margin: 14px 0 0;
  color: var(--navy);
  font-weight: 800;
}

/* ---------- Footer ---------- */

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  background: var(--navy);
  color: rgba(255, 255, 255, 0.7);
  border-top: 3px solid var(--gold);
  padding: 24px clamp(18px, 5vw, 72px);
  font-size: 14px;
}

/* ---------- Responsive ---------- */

@media (max-width: 1020px) {
  .quote-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .workbench-inner {
    grid-template-columns: 1fr;
  }

  .hero-art {
    max-width: 420px;
    justify-self: start;
  }

  .quote-side {
    position: static;
  }
}

@media (max-width: 900px) {
  .type-grid,
  .material-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .industry-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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

  .nav-links {
    gap: 12px;
  }

  h1 {
    font-size: 3.2rem;
  }

  .two-col,
  .type-grid,
  .industry-grid,
  .material-list {
    grid-template-columns: 1fr;
  }
}
