/* CNC PROTON — Industrial B2B Site */

:root {
  --white: #ffffff;
  --grey-text: #3d3d3d;
  --grey-muted: #6b6b6b;
  --grey-light: #f4f4f4;
  --grey-card: #ececec;
  --grey-placeholder: #d9d9d9;
  --dark: #1a1a1a;
  --dark-nav: #2a2a2a;
  --orange: #ff6b1a;
  --orange-hover: #e55f16;
  --max-width: 1200px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--grey-text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--orange);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

/* ── Announcement Bar ── */
.announcement-bar {
  background: var(--orange);
  color: var(--white);
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 10px 24px;
}

/* ── Header / Nav ── */
.site-header {
  background: var(--dark-nav);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  gap: 24px;
}

.logo-link {
  flex-shrink: 0;
}

.logo {
  height: 46px;
  width: auto;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 28px;
}

.nav-links a {
  color: var(--white);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
}

.nav-links a:hover {
  color: var(--orange);
  text-decoration: none;
}

.nav-order {
  color: var(--orange) !important;
}

.nav-contact {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
}

.nav-contact a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
}

.nav-contact a:hover {
  color: var(--white);
  text-decoration: none;
}

.nav-divider {
  color: rgba(255, 255, 255, 0.35);
}

/* ── Typography helpers ── */
.section-label {
  color: var(--orange);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

h1 {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700;
  line-height: 1.15;
  color: var(--grey-text);
  margin-bottom: 20px;
}

h2 {
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 700;
  line-height: 1.2;
  color: var(--grey-text);
  margin-bottom: 32px;
}

h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--grey-text);
  margin-bottom: 10px;
}

/* ── Hero ── */
.hero {
  padding: 64px 0 80px;
  background: var(--white);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.hero-subtext {
  font-size: 16px;
  color: var(--grey-muted);
  margin-bottom: 28px;
  max-width: 520px;
}

.hero-price-block {
  margin-bottom: 28px;
}

.price-badge {
  display: inline-flex;
  align-items: baseline;
  gap: 12px;
  background: var(--orange);
  color: var(--white);
  padding: 12px 24px;
  margin-bottom: 8px;
}

.price-current {
  font-size: 36px;
  font-weight: 700;
  line-height: 1;
}

.price-old {
  font-size: 18px;
  text-decoration: line-through;
  opacity: 0.75;
}

.price-note {
  font-size: 13px;
  color: var(--grey-muted);
}

.btn-primary {
  display: inline-block;
  background: var(--orange);
  color: var(--white);
  font-size: 15px;
  font-weight: 600;
  padding: 14px 28px;
  text-decoration: none;
  border: 2px solid var(--orange);
}

.btn-primary:hover {
  background: var(--orange-hover);
  border-color: var(--orange-hover);
  text-decoration: none;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.btn-secondary {
  display: inline-block;
  background: transparent;
  color: var(--grey-text);
  font-size: 15px;
  font-weight: 600;
  padding: 14px 28px;
  border: 2px solid #c4c4c4;
  text-decoration: none;
}

.btn-secondary:hover {
  border-color: var(--grey-text);
  background: var(--grey-light);
  text-decoration: none;
}

.hero-image {
  display: flex;
  justify-content: center;
}

.image-placeholder {
  width: 100%;
  max-width: 480px;
  aspect-ratio: 1;
  background: var(--grey-placeholder);
  border: 1px solid #ccc;
}

.hero-product-img {
  width: 100%;
  max-width: 540px;
  height: auto;
  display: block;
}

/* ── Features ── */
.features {
  padding: 80px 0;
  background: var(--white);
}

.features h2 {
  max-width: 640px;
  margin-bottom: 48px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--grey-light);
  border-top: 3px solid var(--orange);
  padding: 28px 24px;
}

.feature-card p {
  font-size: 14px;
  color: var(--grey-muted);
  line-height: 1.65;
}

/* ── Specifications ── */
.specs {
  background: var(--dark);
  padding: 80px 0;
}

.specs-title {
  color: var(--white);
  margin-bottom: 40px;
}

.specs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

.specs-header {
  color: var(--orange);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--orange);
}

.specs-table {
  width: 100%;
  border-collapse: collapse;
}

.specs-table tr {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.specs-table th,
.specs-table td {
  padding: 12px 0;
  font-size: 14px;
  text-align: left;
  vertical-align: top;
}

.specs-table th {
  color: rgba(255, 255, 255, 0.55);
  font-weight: 500;
  width: 42%;
  padding-right: 16px;
}

.specs-table td {
  color: var(--white);
  font-weight: 400;
}

/* ── Pricing ── */
.pricing {
  padding: 80px 0;
  background: var(--white);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 24px;
}

.price-card {
  border: 2px solid var(--orange);
  padding: 32px 24px;
}

.price-card h3 {
  color: var(--orange);
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 16px;
}

.price-card-prices {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 16px;
}

.price-founding {
  font-size: 28px;
  font-weight: 700;
  color: var(--grey-text);
}

.price-regular {
  font-size: 18px;
  color: var(--grey-muted);
  text-decoration: line-through;
}

.price-on-request {
  font-size: 18px;
  font-weight: 600;
  color: var(--grey-text);
}

.price-card-desc {
  font-size: 14px;
  color: var(--grey-muted);
  line-height: 1.65;
  margin-bottom: 16px;
}

.price-badge-label {
  display: inline-block;
  background: var(--orange);
  color: var(--white);
  font-size: 12px;
  font-weight: 600;
  padding: 6px 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.pricing-note {
  font-size: 13px;
  color: var(--grey-muted);
}

/* ── Front Panel ── */
.front-panel {
  padding: 80px 0;
  background: var(--white);
}

.front-panel-intro {
  font-size: 16px;
  color: var(--grey-muted);
  max-width: 680px;
  margin-bottom: 40px;
  line-height: 1.65;
}

.options-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.option-card {
  border: 1px solid #ddd;
  padding: 28px 24px;
  background: var(--white);
}

.option-label {
  display: block;
  color: var(--orange);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.option-card p {
  font-size: 14px;
  color: var(--grey-muted);
  line-height: 1.65;
}

/* ── How to Order ── */
.how-to-order {
  padding: 80px 0;
  background: var(--grey-light);
}

.order-steps {
  list-style: none;
  counter-reset: step;
  max-width: 720px;
}

.order-steps li {
  counter-increment: step;
  position: relative;
  padding: 20px 0 20px 56px;
  font-size: 16px;
  color: var(--grey-text);
  border-bottom: 1px solid #ddd;
}

.order-steps li:last-child {
  border-bottom: none;
}

.order-steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 18px;
  width: 36px;
  height: 36px;
  background: var(--orange);
  color: var(--white);
  font-size: 15px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.order-steps a {
  color: var(--orange);
  font-weight: 500;
}

/* ── Footer ── */
.brand-band {
  background: var(--white);
  padding: 56px 0;
  text-align: center;
  border-top: 1px solid #ececec;
}

.brand-band-logo {
  width: 100%;
  max-width: 280px;
  height: auto;
  display: inline-block;
}

.site-footer {
  background: var(--dark);
  color: var(--white);
  padding: 64px 0 40px;
  text-align: center;
}

.footer-email {
  display: block;
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 8px;
  text-decoration: none;
}

.footer-email:hover {
  color: var(--orange);
  text-decoration: none;
}

.footer-phone {
  display: block;
  font-size: 20px;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 20px;
  text-decoration: none;
}

.footer-phone:hover {
  color: var(--orange);
  text-decoration: none;
}

.footer-address {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 24px;
}

.footer-links {
  margin-bottom: 32px;
}

.footer-links a {
  color: var(--orange);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
}

.footer-links a:hover {
  text-decoration: underline;
}

.footer-divider {
  color: rgba(255, 255, 255, 0.3);
  margin: 0 12px;
}

.footer-copy {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.4);
}

/* ── Responsive ── */
@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero-image {
    order: -1;
  }

  .image-placeholder,
  .hero-product-img {
    max-width: 100%;
  }

  .features-grid,
  .pricing-grid,
  .options-grid {
    grid-template-columns: 1fr 1fr;
  }

  .specs-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .main-nav {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--dark-nav);
    flex-direction: column;
    align-items: flex-start;
    padding: 24px;
    gap: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }

  .main-nav.is-open {
    display: flex;
  }

  .header-inner {
    position: relative;
    flex-wrap: wrap;
  }

  .nav-links {
    flex-direction: column;
    gap: 16px;
  }

  .nav-contact {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .nav-divider {
    display: none;
  }

  .features-grid,
  .pricing-grid,
  .options-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 40px 0 60px;
  }

  .features,
  .specs,
  .pricing,
  .front-panel,
  .how-to-order {
    padding: 60px 0;
  }

  .announcement-bar {
    font-size: 11px;
    padding: 8px 16px;
  }
}

/* ── Order Form ── */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.order-page {
  padding: 48px 0 80px;
  background: var(--white);
}

.legal-page {
  padding: 48px 0 80px;
  background: var(--white);
}

.legal-page h1 {
  margin-bottom: 8px;
}

.legal-updated {
  color: var(--grey-muted);
  font-size: 13px;
  margin-bottom: 36px;
}

.legal-section {
  max-width: 760px;
  margin-bottom: 28px;
}

.legal-section h2 {
  font-size: 17px;
  color: var(--orange);
  margin-bottom: 8px;
}

.legal-section p {
  color: var(--grey-muted);
  line-height: 1.7;
  margin-bottom: 12px;
}

.legal-section p:last-child {
  margin-bottom: 0;
}

.legal-back {
  max-width: 760px;
  margin-top: 36px;
}

.order-page h1 {
  margin-bottom: 12px;
}

.order-intro {
  color: var(--grey-muted);
  max-width: 640px;
  margin-bottom: 40px;
}

.order-form {
  max-width: 760px;
}

.form-section {
  margin-bottom: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid #e0e0e0;
}

.form-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.form-section h2 {
  font-size: 20px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: var(--orange);
  color: var(--white);
  font-size: 14px;
  font-weight: 700;
  flex-shrink: 0;
}

.form-subheading {
  font-size: 14px;
  font-weight: 600;
  color: var(--grey-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 24px 0 12px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-field-full {
  grid-column: 1 / -1;
}

.form-field span {
  font-size: 13px;
  font-weight: 500;
  color: var(--grey-text);
}

.form-field abbr {
  color: var(--orange);
  text-decoration: none;
}

.form-field input,
.form-field textarea,
.form-field select {
  font-family: var(--font);
  font-size: 15px;
  padding: 10px 12px;
  border: 1px solid #ccc;
  background: var(--white);
  color: var(--grey-text);
  width: 100%;
}

.form-field input.field-invalid,
.form-field select.field-invalid {
  border-color: #c03030;
  outline-color: #c03030;
}

.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  outline: 2px solid var(--orange);
  outline-offset: 0;
  border-color: var(--orange);
}

.field-hint {
  font-size: 12px;
  color: var(--grey-muted);
}

.field-error {
  font-size: 12px;
  color: #a02020;
}

.form-field input[type="file"] {
  padding: 8px;
  font-size: 14px;
}

.form-hint {
  font-size: 13px;
  color: var(--grey-muted);
  margin-bottom: 12px;
  line-height: 1.55;
}

.file-list {
  list-style: none;
  margin-top: 8px;
}

.file-list li {
  font-size: 13px;
  color: var(--grey-muted);
  padding: 4px 0;
}

.product-options {
  border: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0;
  padding: 0;
}

.product-option {
  display: flex;
  cursor: pointer;
}

.product-option input {
  margin: 20px 0 0 16px;
  flex-shrink: 0;
  accent-color: var(--orange);
}

.product-option-body {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto;
  gap: 4px 16px;
  padding: 16px 20px;
  border: 2px solid #ddd;
  margin-left: 12px;
}

.product-option input:checked + .product-option-body {
  border-color: var(--orange);
}

.product-option-title {
  font-weight: 600;
  color: var(--grey-text);
  grid-column: 1;
}

.product-option-desc {
  font-size: 13px;
  color: var(--grey-muted);
  grid-column: 1;
}

.product-option-price {
  font-weight: 700;
  color: var(--orange);
  grid-column: 2;
  grid-row: 1 / 3;
  align-self: center;
  white-space: nowrap;
}

.product-option-price small {
  font-weight: 400;
  font-size: 12px;
  color: var(--grey-muted);
}

.psu-options {
  border: none;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0;
  padding: 0;
}

.psu-option {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border: 1px solid #ddd;
  cursor: pointer;
  font-size: 14px;
}

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

.psu-option:has(input:checked) {
  border-color: var(--orange);
}

.terms-block {
  margin-bottom: 24px;
}

.terms-block h3 {
  font-size: 15px;
  margin-bottom: 12px;
  color: var(--orange);
}

.terms-text {
  background: var(--grey-light);
  border: 1px solid #ddd;
  padding: 20px 24px;
  max-height: 280px;
  overflow-y: auto;
  font-size: 13px;
  color: var(--grey-muted);
  line-height: 1.65;
  margin-bottom: 16px;
}

.terms-text p {
  margin-bottom: 12px;
}

.terms-text p:last-child {
  margin-bottom: 0;
}

.checkbox-field {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 16px;
  cursor: pointer;
  font-size: 14px;
  line-height: 1.55;
}

.checkbox-field input {
  margin-top: 3px;
  flex-shrink: 0;
  accent-color: var(--orange);
  width: 16px;
  height: 16px;
}

.order-summary {
  background: var(--grey-light);
  border: 2px solid var(--orange);
  padding: 24px;
  margin: 24px 0;
}

.order-summary h3 {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--orange);
  margin-bottom: 16px;
}

.summary-lines {
  margin: 0;
}

.summary-line {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid #ddd;
  font-size: 14px;
}

.summary-line[hidden] {
  display: none !important;
}

.summary-line dt {
  font-weight: 400;
  color: var(--grey-muted);
}

.summary-line dd {
  font-weight: 600;
  color: var(--grey-text);
}

.summary-total {
  border-bottom: none;
  padding-top: 12px;
  font-size: 16px;
}

.summary-total dt,
.summary-total dd {
  font-weight: 700;
  color: var(--grey-text);
}

.summary-note {
  font-size: 12px;
  color: var(--grey-muted);
  margin-top: 12px;
}

.form-error {
  background: #fde8e8;
  border: 1px solid #e05050;
  color: #a02020;
  padding: 12px 16px;
  font-size: 14px;
  margin-bottom: 16px;
}

.form-success {
  background: #e8f5e8;
  border: 1px solid #50a050;
  color: #206020;
  padding: 12px 16px;
  font-size: 14px;
  margin-bottom: 16px;
}

.btn-pay {
  width: 100%;
  text-align: center;
  font-size: 16px;
  padding: 16px 32px;
  cursor: pointer;
  border: none;
}

.order-note {
  font-size: 14px;
  color: var(--grey-muted);
  margin: 24px 0;
  max-width: 640px;
  line-height: 1.65;
}

.btn-card {
  display: inline-block;
  margin-top: 16px;
  font-size: 14px;
  padding: 10px 20px;
}

.how-to-order .btn-primary {
  margin-top: 8px;
}

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

  .product-option-body {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }

  .product-option-price {
    grid-column: 1;
    grid-row: auto;
  }

  .psu-options {
    flex-direction: column;
  }
}
