/* ==========================================================================
   Bench Built Manufacturing — shared stylesheet
   ========================================================================== */

:root {
  --bg: #ffffff;
  --bg-alt: #f6f5f2;
  --bg-dark: #12151a;
  --bg-dark-alt: #191d24;
  --ink: #14171c;
  --ink-muted: #5b6169;
  --ink-soft: #8a909a;
  --line: #e6e4de;
  --line-dark: #2a2e37;
  --orange: #f2621a;
  --orange-dark: #d8500f;
  --orange-soft: #fdece1;
  --white: #ffffff;

  --font-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Inter", "Helvetica Neue", Arial, sans-serif;

  --container: 1180px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;

  --shadow-soft: 0 20px 45px -25px rgba(20, 23, 28, 0.35);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
/* Clip sideways overflow on the root only — putting it on body as well breaks the sticky header on mobile */
html { overflow-x: hidden; }
@supports (overflow: clip) { html { overflow-x: clip; } }
body { max-width: 100%; }

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

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background-color: var(--bg);
  background-image:
    linear-gradient(rgba(120, 125, 133, 0.16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120, 125, 133, 0.16) 1px, transparent 1px);
  background-size: 34px 34px;
  background-position: -1px -1px;
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}

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

p { margin: 0 0 1em; color: var(--ink-muted); }

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

img {
  max-width: 100%;
  display: block;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: auto;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.accent { color: var(--orange); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 12.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange-dark);
  margin-bottom: 18px;
}
.eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--orange);
  display: inline-block;
}
.eyebrow.on-dark { color: var(--orange); }

/* Buttons ------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  padding: 14px 24px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}
.btn svg { width: 16px; height: 16px; transition: transform 0.15s ease; }
.btn:hover svg { transform: translateX(3px); }
.btn:active { transform: scale(0.95); }
.btn.is-magnetic { will-change: transform; }

.btn-primary {
  background: var(--orange);
  color: #fff;
  box-shadow: 0 12px 24px -12px rgba(242, 98, 26, 0.65);
}
.btn-primary:hover { background: var(--orange-dark); transform: translateY(-1px); }

.btn-outline {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}
.btn-outline:hover { border-color: var(--ink); }

.btn-outline-light {
  background: transparent;
  border-color: rgba(255,255,255,0.28);
  color: #fff;
}
.btn-outline-light:hover { border-color: #fff; }

.btn-block { width: 100%; justify-content: center; }

.btn-dark {
  background: var(--bg-dark);
  color: #fff;
}
.btn-dark:hover { background: #000; transform: translateY(-1px); }

/* Coming soon block ------------------------------------------------- */
.coming-soon {
  text-align: center;
  max-width: 620px;
  margin: 0 auto;
  padding: 30px 0;
}
.coming-soon p { font-size: 16px; margin-bottom: 28px; }

/* Header ---------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 16px;
  padding-bottom: 16px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 19px;
  color: var(--ink);
  flex-shrink: 0;
}
.logo-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--orange);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.logo-icon svg { width: 16px; height: 16px; }

.main-nav {
  display: flex;
  align-items: center;
  gap: 30px;
  font-weight: 600;
  font-size: 14.5px;
  color: var(--ink);
}
.main-nav a { color: var(--ink-muted); transition: color 0.15s ease; position: relative; }
.main-nav a:hover { color: var(--ink); }
.main-nav a.active { color: var(--ink); }
.main-nav a.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 2px;
  background: var(--orange);
  border-radius: 2px;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-cta { display: none; }
.nav-toggle span { width: 22px; height: 2px; background: var(--ink); border-radius: 2px; }

/* Hero -------------------------------------------------------------- */
.hero {
  padding: 84px 0 64px;
}
.hero-inner { max-width: 780px; }
.hero h1 { font-size: clamp(40px, 6vw, 68px); }
.hero .lede { font-size: 18px; max-width: 620px; margin-bottom: 32px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-bottom: 20px; }
.hero-note { font-size: 13px; color: var(--ink-soft); letter-spacing: 0.02em; }

.underline-swipe {
  position: relative;
  white-space: nowrap;
}

.swoosh-wrap { position: relative; display: inline-block; }
.swoosh {
  position: absolute;
  left: 2px;
  right: 2px;
  bottom: -0.14em;
  width: calc(100% - 4px);
  height: 0.22em;
  pointer-events: none;
}

/* Page hero (secondary pages) ---------------------------------------- */
.page-hero { padding: 72px 0 48px; border-bottom: 1px solid var(--line); }
.page-hero h1 { font-size: clamp(34px, 5vw, 52px); max-width: 760px; }
.page-hero .lede { font-size: 17px; max-width: 640px; }

/* Stats strip --------------------------------------------------------- */
.stats-strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
}
.stat-card {
  padding: 40px 24px;
  border-right: 1px solid var(--line);
}
.stat-card:last-child { border-right: none; }
.stat-icon { width: 30px; height: 30px; color: var(--orange); margin-bottom: 14px; }
.stat-number { font-family: var(--font-display); font-weight: 800; font-size: 40px; margin-bottom: 4px; }
.stat-label { color: var(--ink-muted); font-size: 14.5px; }

/* Marquee ------------------------------------------------------------- */
.marquee-section { padding: 48px 0; text-align: center; }
.marquee-title { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-soft); font-weight: 700; margin-bottom: 26px; }
.marquee-wrap { overflow: hidden; mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent); }
.marquee-track { display: flex; gap: 14px; width: max-content; animation: scroll-left 26s linear infinite; }
.marquee-track span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 20px;
  font-weight: 600;
  font-size: 14px;
  white-space: nowrap;
  color: var(--ink);
}
@keyframes scroll-left {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.marquee-footnote { margin-top: 22px; font-size: 12.5px; color: var(--ink-soft); letter-spacing: 0.03em; }

/* Section shell --------------------------------------------------------- */
.section { padding: 88px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 700px; margin-bottom: 48px; }
.section-head h2 { font-size: clamp(28px, 4vw, 42px); }
.section-head .lede { font-size: 16.5px; margin: 0; }

/* Stage / capability cards ------------------------------------------- */
.stage-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
  gap: 24px;
}
.stage-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--white);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.stage-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-soft); }
.stage-media { position: relative; aspect-ratio: 4/3; overflow: hidden; background: var(--ink); }
.stage-media img { width: 100%; height: 100%; object-fit: cover; }
.stage-tag {
  position: absolute; top: 14px; left: 14px;
  background: rgba(18,21,26,0.75); color: #fff;
  font-size: 11px; font-weight: 700; letter-spacing: 0.1em;
  padding: 6px 10px; border-radius: 6px; text-transform: uppercase;
}
.stage-body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.stage-index { font-size: 13px; font-weight: 700; color: var(--orange); margin-bottom: 8px; }
.stage-body h3 { font-size: 20px; margin-bottom: 10px; }
.stage-body p { font-size: 14.5px; margin-bottom: 16px; }
.stage-list { list-style: none; margin: 0; padding: 0; font-size: 14px; color: var(--ink); display: flex; flex-direction: column; gap: 9px; }
.stage-list li { display: flex; align-items: center; gap: 9px; }
.stage-list li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--orange); flex-shrink: 0; }

.discuss-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--ink); margin-top: 40px; }
.discuss-link svg { width: 16px; height: 16px; color: var(--orange); }

/* Process steps --------------------------------------------------------- */
.process-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
  gap: 32px;
  margin-top: 56px;
}
.process-step { position: relative; }
.process-connector {
  display: flex; align-items: center; gap: 10px; margin-bottom: 22px;
}
.process-icon {
  width: 52px; height: 52px; border-radius: var(--radius-md);
  background: var(--bg-alt); border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center; position: relative;
}
.process-icon svg { width: 22px; height: 22px; color: var(--orange); }
.process-num {
  position: absolute; top: -8px; right: -8px;
  background: var(--ink); color: #fff; font-size: 11px; font-weight: 700;
  width: 22px; height: 22px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
}
.process-step h3 { font-size: 19px; margin-bottom: 10px; }
.process-step p { font-size: 14.5px; margin-bottom: 16px; }
.process-note {
  border-left: 2px solid var(--orange);
  padding-left: 12px;
  font-size: 13px;
  color: var(--ink-muted);
  font-family: monospace;
}

/* Case studies ---------------------------------------------------------- */
.case-study {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 28px;
  background: var(--white);
}
.case-media { position: relative; aspect-ratio: 4/3; overflow: hidden; }
.case-media img { width: 100%; height: 100%; object-fit: cover; }
.case-content { padding: 44px; display: flex; flex-direction: column; justify-content: center; }
.case-content h3 { font-size: 26px; margin-bottom: 14px; }
.case-content p { font-size: 15px; }
.case-stats { display: flex; gap: 32px; margin: 20px 0; padding-top: 20px; border-top: 1px solid var(--line); }
.case-stats div strong { display: block; font-family: var(--font-display); font-size: 26px; font-weight: 800; }
.case-stats div span { font-size: 12.5px; color: var(--ink-soft); }
.case-cta { font-weight: 700; color: var(--orange-dark); display: inline-flex; align-items: center; gap: 6px; }
.case-cta svg { width: 15px; height: 15px; }
.placeholder-note { text-align: center; font-size: 13px; color: var(--ink-soft); margin-top: 24px; font-style: italic; }

@media (max-width: 820px) {
  .case-study { grid-template-columns: 1fr; }
}

/* Logistics --------------------------------------------------------------- */
.logistics-layout {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 56px;
  align-items: center;
}
.logistics-media { position: relative; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4/5; }
.logistics-media img { width: 100%; height: 100%; object-fit: cover; }
.logistics-badge {
  position: absolute; left: 18px; bottom: 18px;
  background: rgba(255,255,255,0.95); border-radius: 999px;
  padding: 10px 16px; font-weight: 700; font-size: 13px;
  display: flex; align-items: center; gap: 8px;
}
.logistics-badge svg { width: 15px; height: 15px; color: var(--orange); }
.logistics-copy h2 { font-size: clamp(26px, 3.6vw, 36px); }
.logistics-copy p { font-size: 16px; }
.feature-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 32px; }
.feature-card { border: 1px solid var(--line); border-radius: var(--radius-md); padding: 22px; transition: transform 0.2s ease, box-shadow 0.2s ease; transform-style: preserve-3d; will-change: transform; }
.feature-card:hover { box-shadow: var(--shadow-soft); }
.feature-icon { width: 38px; height: 38px; border-radius: 10px; background: var(--orange-soft); display: flex; align-items: center; justify-content: center; margin-bottom: 14px; }
.feature-icon svg { width: 19px; height: 19px; color: var(--orange-dark); }
.feature-card h3 { font-size: 16px; margin-bottom: 8px; }
.feature-card p { font-size: 13.5px; margin: 0; }

@media (max-width: 860px) {
  .logistics-layout { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr; }
}

/* Testimonials ------------------------------------------------------------ */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: 24px;
}
.testimonial-card { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 30px; background: var(--white); transition: transform 0.2s ease, box-shadow 0.2s ease; transform-style: preserve-3d; will-change: transform; }
.testimonial-card:hover { box-shadow: var(--shadow-soft); }
.stars { color: var(--orange); font-size: 15px; letter-spacing: 2px; margin-bottom: 14px; }
.quote-mark { font-family: var(--font-display); font-size: 34px; color: var(--line); margin-bottom: 6px; }
.testimonial-card p { color: var(--ink); font-size: 15.5px; margin-bottom: 22px; }
.testimonial-person { display: flex; align-items: center; gap: 12px; padding-top: 18px; border-top: 1px solid var(--line); }
.avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--ink); color: #fff; font-weight: 700; font-size: 13px;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.testimonial-person strong { display: block; font-size: 14.5px; }
.testimonial-person span { font-size: 13px; color: var(--ink-soft); }

/* Final CTA ------------------------------------------------------------ */
.cta-band {
  background: var(--bg-dark);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 64px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  align-items: center;
}
.cta-band h2 { font-size: clamp(30px, 4vw, 44px); color: #fff; }
.cta-band .lede { color: rgba(255,255,255,0.65); font-size: 16px; }
.check-list { list-style: none; margin: 0 0 30px; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.check-list li { display: flex; align-items: center; gap: 12px; font-weight: 600; font-size: 15px; }
.check-icon {
  width: 22px; height: 22px; border-radius: 50%; background: rgba(242,98,26,0.18);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.check-icon svg { width: 12px; height: 12px; color: var(--orange); }

@media (max-width: 780px) {
  .cta-band { grid-template-columns: 1fr; padding: 40px 28px; }
}

/* Contact page -------------------------------------------------------- */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 56px;
  align-items: start;
}
.contact-info-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px;
  background: var(--bg-alt);
}
.contact-info-card h3 { font-size: 18px; margin-bottom: 18px; }
.contact-info-row { display: flex; gap: 12px; margin-bottom: 18px; }
.contact-info-row svg { width: 20px; height: 20px; color: var(--orange); flex-shrink: 0; margin-top: 2px; }
.contact-info-row strong { display: block; font-size: 14.5px; }
.contact-info-row span, .contact-info-row a { font-size: 14px; color: var(--ink-muted); }
.contact-info-row a:hover { color: var(--orange-dark); }

.form-card { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 36px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 13.5px; font-weight: 600; margin-bottom: 7px; }
.field input, .field select, .field textarea {
  width: 100%;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-family: var(--font-body);
  font-size: 14.5px;
  color: var(--ink);
  background: #fff;
  transition: border-color 0.15s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--orange);
}
.field textarea { resize: vertical; min-height: 120px; }
.form-status { margin-top: 16px; font-size: 14px; font-weight: 600; display: none; }
.form-status.success { color: #1a7f42; display: block; }
.form-status.error { color: #c0392b; display: block; }
.form-note { font-size: 12.5px; color: var(--ink-soft); margin-top: 14px; }

@media (max-width: 820px) {
  .contact-layout { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
}

/* Footer ----------------------------------------------------------------- */
.site-footer { background: var(--bg-dark); color: rgba(255,255,255,0.7); padding: 64px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; margin-bottom: 48px; }
.footer-brand .logo { color: #fff; margin-bottom: 14px; }
.footer-brand p { font-size: 14px; max-width: 320px; color: rgba(255,255,255,0.55); }
.footer-col h4 { color: #fff; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 16px; }
.footer-col a { display: block; font-size: 14.5px; margin-bottom: 12px; color: rgba(255,255,255,0.65); transition: color 0.15s ease; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  color: rgba(255,255,255,0.45);
}

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* Responsive nav ---------------------------------------------------------- */
@media (max-width: 880px) {
  .main-nav {
    position: fixed;
    top: 68px; left: 0; right: 0;
    background: #fff;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 8px 24px 20px;
    border-bottom: 1px solid var(--line);
    transform: translateY(-130%);
    transition: transform 0.25s ease;
    z-index: 40;
  }
  .main-nav.open { transform: translateY(0); }
  .main-nav a { padding: 14px 0; width: 100%; border-bottom: 1px solid var(--line); }
  .main-nav .header-cta { margin-top: 10px; }
  .nav-toggle { display: flex; }
}

@media (max-width: 560px) {
  .container { padding: 0 18px; }
  .header-inner { gap: 12px; }
  .site-header .header-cta { display: none; }
  .main-nav { padding: 8px 18px 20px; }
  .main-nav a.nav-cta { display: block; color: var(--orange-dark); border-bottom: none; }
  .hero { padding: 56px 0 48px; }
  .hero h1 { font-size: clamp(34px, 10vw, 44px); }
  .hero .lede { font-size: 16.5px; }
  .section { padding: 64px 0; }
  .page-hero { padding: 52px 0 36px; }
  .case-content { padding: 28px 22px; }
  .case-stats { flex-wrap: wrap; gap: 20px; }
  .form-card { padding: 24px 18px; }
  .contact-info-card { padding: 24px 18px; }
  .btn { white-space: normal; text-align: center; }
}

@media (max-width: 640px) {
  .stat-card { border-right: none; border-bottom: 1px solid var(--line); }
  .cta-band { padding: 32px 22px; }
}

/* Enquiry form (contact page) ----------------------------------------- */
.type-picker { border: 0; padding: 0; margin: 0 0 18px; min-width: 0; }
.type-picker legend { font-size: 13.5px; font-weight: 600; margin-bottom: 10px; padding: 0; }
.type-picker { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.type-picker legend, .type-picker .field-error { grid-column: 1 / -1; }
.type-option { position: relative; display: block; cursor: pointer; }
.type-option input { position: absolute; opacity: 0; pointer-events: none; }
.type-option span {
  display: block; height: 100%;
  border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  padding: 12px 14px; font-size: 13px; color: var(--ink-muted); background: #fff;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.type-option strong { display: block; font-size: 14.5px; color: var(--ink); margin-bottom: 2px; }
.type-option:hover span { border-color: var(--ink-soft); }
.type-option input:checked + span { border-color: var(--orange); background: var(--orange-soft); }
.type-option input:focus-visible + span { outline: 2px solid var(--orange); outline-offset: 2px; }
.optional { font-weight: 500; color: var(--ink-soft); font-size: 12px; margin-left: 4px; }
.field-error { color: #c0392b; font-size: 12.5px; font-weight: 600; margin: 6px 0 0; }
.field-error:empty { display: none; }
.field input.invalid, .field textarea.invalid { border-color: #c0392b; }
.file-drop {
  display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center;
  border: 1.5px dashed var(--line); border-radius: var(--radius-sm); padding: 22px 16px;
  cursor: pointer; background: var(--bg-alt); transition: border-color 0.15s ease, background 0.15s ease;
}
.file-drop:hover, .file-drop.dragging { border-color: var(--orange); background: var(--orange-soft); }
.file-drop input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.file-drop strong { color: var(--orange-dark); }
.file-drop .file-hint { font-size: 12px; color: var(--ink-soft); }
.file-list { list-style: none; margin: 8px 0 0; padding: 0; }
.file-list li { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 13.5px; padding: 8px 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); margin-top: 6px; word-break: break-all; }
.file-list button { background: none; border: none; color: #c0392b; font-weight: 600; font-size: 12.5px; cursor: pointer; flex-shrink: 0; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--ink-muted); margin: 4px 0 18px; }
.consent input { margin-top: 2px; accent-color: var(--orange); width: 16px; height: 16px; flex-shrink: 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.upload-progress { margin-top: 14px; }
.upload-progress .bar { height: 6px; background: var(--line); border-radius: 999px; overflow: hidden; }
.upload-progress .bar span { display: block; height: 100%; width: 0; background: var(--orange); transition: width 0.2s ease; }
.upload-progress p { font-size: 12.5px; color: var(--ink-soft); margin: 6px 0 0; }
.form-note a { text-decoration: underline; }
@media (max-width: 560px) {
  .type-picker { grid-template-columns: 1fr; }
}

/* Customer approval pages ----------------------------------------------- */
.approval-page { padding-top: 48px; }
.approval-container { max-width: 820px; }
.approval-loading { color: var(--ink-soft); text-align: center; padding: 40px 0; }
.approval-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 36px; margin-bottom: 20px; }
.approval-card h1 { font-size: clamp(26px, 4vw, 36px); }
.approval-card h2 { font-size: 22px; }
.approval-card h3 { font-size: 16px; margin-top: 24px; }
.approval-message { text-align: center; }
.approval-message.done h1 { color: var(--orange-dark); }
.approval-text { color: var(--ink); font-size: 15px; }
.approval-small { font-size: 12.5px; color: var(--ink-soft); }
.pre { white-space: pre-wrap; }
.approval-meta { display: grid; grid-template-columns: 120px 1fr; gap: 6px 14px; font-size: 14px; margin: 18px 0 24px; }
.approval-meta dt { color: var(--ink-soft); font-weight: 600; }
.approval-meta dd { margin: 0; }
.approval-table-wrap { overflow-x: auto; }
.approval-table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.approval-table th, .approval-table td { padding: 11px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.approval-table th { font-size: 11.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft); background: var(--bg-alt); }
.approval-table .num { text-align: right; white-space: nowrap; }
.approval-table tfoot td { border-bottom: none; padding-top: 8px; padding-bottom: 4px; }
.approval-table tfoot tr.grand td { font-family: var(--font-display); font-weight: 800; font-size: 20px; padding-top: 14px; border-top: 2px solid var(--ink); }
.approval-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; margin-top: 20px; }
.approval-gallery img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: var(--radius-sm); border: 1px solid var(--line); }
.approval-actions { display: flex; gap: 12px; flex-wrap: wrap; }
@media (max-width: 560px) {
  .approval-card { padding: 24px 18px; }
  .approval-meta { grid-template-columns: 1fr; gap: 2px; }
  .approval-meta dd { margin-bottom: 8px; }
  .approval-actions .btn { width: 100%; justify-content: center; }
}
/* Invoice page ---------------------------------------------------------- */
.invoice-top { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.invoice-from { text-align: right; }
.invoice-status { font-weight: 700; font-size: 16px; margin-top: 18px; color: var(--ink); }
.invoice-bank { background: var(--bg-alt); border-radius: var(--radius-md); padding: 18px 20px; margin: 18px 0; }
.invoice-bank h3 { margin-top: 0; }
@media print {
  .site-header, .no-print { display: none !important; }
  body { background: #fff !important; }
  .approval-page { padding: 0; }
  .approval-card { border: none; padding: 0; }
}
@media (max-width: 560px) { .invoice-from { text-align: left; } }