/* OC3DPrintWorks — shared styles */
:root {
  --orange: #f26a1b;
  --orange-dark: #d4550c;
  --orange-soft: #fff1e8;
  --ink: #16181d;
  --ink-2: #2a2e36;
  --text: #2b2f36;
  --muted: #646b78;
  --line: #e4e6ea;
  --bg: #ffffff;
  --bg-alt: #f6f6f4;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(22, 24, 29, 0.08);
  --max: 1180px;
  --font-head: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--orange-dark); }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--ink); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.3rem, 5.5vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.section { padding: 88px 0; }
.section.alt { background: var(--bg-alt); }
.section.dark { background: var(--ink); color: #cfd3da; }
.section.dark h2, .section.dark h3 { color: #fff; }
.eyebrow {
  display: inline-block; font-family: var(--font-head); font-weight: 600; font-size: .8rem;
  letter-spacing: .14em; text-transform: uppercase; color: var(--orange); margin-bottom: 12px;
}
.lead { font-size: 1.15rem; color: var(--muted); max-width: 640px; }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 14px 24px; border-radius: 999px;
  font-weight: 600; font-size: 1rem; text-decoration: none; border: 2px solid transparent;
  transition: transform .15s ease, background .15s ease, color .15s ease; cursor: pointer;
  font-family: var(--font-body);
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--orange); color: #fff; }
.btn-primary:hover { background: var(--orange-dark); }
.btn-outline { border-color: currentColor; color: var(--ink); background: transparent; }
.btn-light { border-color: rgba(255,255,255,.5); color: #fff; }
.btn-light:hover { background: rgba(255,255,255,.1); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* Top bar + header */
.topbar { background: var(--ink); color: #c9cdd4; font-size: .85rem; }
.topbar .container { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-top: 8px; padding-bottom: 8px; }
.topbar a { color: #fff; text-decoration: none; font-weight: 600; }
.topbar .hide-sm { display: inline; }

.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.95); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 74px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--font-head); font-weight: 700; font-size: 1.35rem; color: var(--ink); }
.logo-mark { width: 38px; height: 38px; }
.logo span b { color: var(--orange); }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { text-decoration: none; color: var(--ink-2); font-weight: 500; padding: 8px 14px; border-radius: 999px; font-size: .97rem; }
.nav a:hover { background: var(--bg-alt); }
.nav a.active { color: var(--orange-dark); background: var(--orange-soft); }
.nav .btn { margin-left: 8px; padding: 10px 18px; color: #fff; }
.nav .btn:hover { background: var(--orange-dark); }
.menu-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.menu-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; transition: .2s; }

/* Hero */
.hero { position: relative; overflow: hidden; background: radial-gradient(1200px 500px at 85% 10%, #ffe2cf 0%, transparent 60%), var(--bg); padding: 80px 0 90px; }
.hero .container { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.hero h1 span { color: var(--orange); }
.hero .lead { margin-bottom: 28px; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; background: #fff; border: 1px solid var(--line); border-radius: 999px; font-size: .88rem; font-weight: 500; color: var(--ink-2); }
.badge::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--orange); }

.hero-visual { position: relative; aspect-ratio: 1 / 1; max-width: 480px; margin-left: auto; width: 100%; }
.hero-photo { position: absolute; inset: 0; border-radius: 24px; overflow: hidden; box-shadow: var(--shadow); }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.hero-card {
  position: absolute; background: #fff; border-radius: 14px; box-shadow: var(--shadow); padding: 14px 18px;
  font-size: .9rem; display: flex; gap: 12px; align-items: center;
}
.hero-card strong { display: block; font-family: var(--font-head); color: var(--ink); font-size: 1.1rem; }
.hero-card.one { left: -28px; bottom: 40px; }
.hero-card.two { right: -18px; top: 30px; }
.hero-card .dot { width: 40px; height: 40px; border-radius: 10px; background: var(--orange-soft); display: grid; place-items: center; color: var(--orange); font-weight: 700; font-family: var(--font-head); }

/* Page hero (inner pages) */
.page-hero { background: var(--ink); color: #c9cdd4; padding: 72px 0 64px; position: relative; overflow: hidden; }
.page-hero::after {
  content: ""; position: absolute; inset: 0;
  background: repeating-linear-gradient(0deg, rgba(255,255,255,.035) 0 2px, transparent 2px 10px);
  pointer-events: none;
}
.page-hero h1 { color: #fff; }
.page-hero .lead { color: #aeb4bd; }

/* Grids & cards */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; transition: transform .2s, box-shadow .2s; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card p { color: var(--muted); margin-bottom: 0; }
.icon { width: 52px; height: 52px; border-radius: 12px; background: var(--orange-soft); color: var(--orange); display: grid; place-items: center; margin-bottom: 18px; }
.icon svg { width: 26px; height: 26px; }
.card ul { padding-left: 18px; margin: 12px 0 0; color: var(--muted); }
.card ul li { margin-bottom: 4px; }

.section-head { margin-bottom: 48px; }
.section-head.split { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; }

/* Stats strip */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stat strong { display: block; font-family: var(--font-head); font-size: 2.4rem; color: #fff; line-height: 1; margin-bottom: 6px; }
.stat strong em { color: var(--orange); font-style: normal; }
.stat span { font-size: .95rem; }

/* Steps */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.step { position: relative; padding-top: 56px; }
.step::before {
  counter-increment: step; content: "0" counter(step); position: absolute; top: 0; left: 0;
  font-family: var(--font-head); font-weight: 700; font-size: 2.2rem; color: var(--orange);
}
.step p { color: var(--muted); }
.section.dark .step p { color: #aeb4bd; }

/* Portfolio tiles */
.work-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.work {
  position: relative; border-radius: var(--radius); overflow: hidden; background: var(--ink); cursor: pointer;
  aspect-ratio: 4 / 3; border: 0; padding: 0; text-align: left; font: inherit; width: 100%;
}
.work img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease, opacity .3s; }
.work:hover img, .work:focus-visible img { transform: scale(1.05); opacity: .85; }
.work .work-info {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 20px; color: #fff;
  background: linear-gradient(to top, rgba(10,11,14,.88), rgba(10,11,14,0));
}
.work .work-info h3 { color: #fff; margin: 0 0 2px; font-size: 1.15rem; }
.work .work-info span { font-size: .82rem; color: #ffc9a8; text-transform: uppercase; letter-spacing: .1em; font-weight: 600; }
.work .count { position: absolute; top: 14px; right: 14px; background: rgba(0,0,0,.6); color: #fff; font-size: .78rem; padding: 4px 10px; border-radius: 999px; }

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.filter { border: 1px solid var(--line); background: #fff; padding: 9px 18px; border-radius: 999px; cursor: pointer; font: inherit; font-weight: 500; font-size: .95rem; color: var(--ink-2); }
.filter.active, .filter:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.work[hidden] { display: none; }

/* Case study detail */
.case { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; padding: 56px 0; border-bottom: 1px solid var(--line); }
.case:last-child { border-bottom: 0; }
.case.flip .case-media { order: 2; }
.case-media { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/3; background: var(--bg-alt); }
.case-media img { width: 100%; height: 100%; object-fit: cover; }
.tag { display: inline-block; font-size: .78rem; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; color: var(--orange-dark); background: var(--orange-soft); padding: 4px 10px; border-radius: 6px; margin-bottom: 12px; }
.case dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; margin: 16px 0 0; font-size: .95rem; }
.case dt { font-weight: 600; color: var(--ink); }
.case dd { margin: 0; color: var(--muted); }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(10,11,14,.94); display: none; align-items: center; justify-content: center; padding: 60px 16px; }
.lightbox.open { display: flex; }
.lightbox figure { margin: 0; max-width: 1100px; width: 100%; text-align: center; }
.lightbox img { max-height: 76vh; margin: 0 auto; border-radius: 8px; object-fit: contain; }
.lightbox figcaption { color: #d9dce1; margin-top: 14px; font-size: .95rem; }
.lb-btn { position: absolute; background: rgba(255,255,255,.12); color: #fff; border: 0; width: 48px; height: 48px; border-radius: 50%; font-size: 1.5rem; cursor: pointer; display: grid; place-items: center; }
.lb-btn:hover { background: var(--orange); }
.lb-close { top: 16px; right: 16px; }
.lb-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 16px; top: 50%; transform: translateY(-50%); }

/* Videos */
.video { position: relative; aspect-ratio: 16/9; border-radius: var(--radius); overflow: hidden; background: #000; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Spec table */
.spec { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.spec th, .spec td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--line); font-size: .97rem; }
.spec th { width: 40%; color: var(--ink); font-weight: 600; background: var(--bg-alt); }
.spec tr:last-child th, .spec tr:last-child td { border-bottom: 0; }

/* Materials chips */
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 12px 16px; min-width: 150px; flex: 1 1 150px; }
.chip strong { display: block; font-family: var(--font-head); color: var(--ink); }
.chip span { font-size: .87rem; color: var(--muted); }

/* Areas */
.areas { display: flex; flex-wrap: wrap; gap: 10px; }
.area { padding: 8px 16px; border-radius: 999px; background: rgba(255,255,255,.08); color: #fff; font-size: .95rem; border: 1px solid rgba(255,255,255,.14); }
.section:not(.dark) .area { background: #fff; color: var(--ink-2); border-color: var(--line); }

/* FAQ */
.faq details { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq summary { cursor: pointer; font-family: var(--font-head); font-weight: 600; font-size: 1.1rem; color: var(--ink); list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--orange); font-size: 1.5rem; line-height: 1; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 12px 0 0; color: var(--muted); }

/* CTA band */
.cta-band { background: linear-gradient(120deg, var(--orange) 0%, #ff8a3d 100%); color: #fff; border-radius: 24px; padding: 56px; display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap; }
.cta-band h2 { color: #fff; margin-bottom: 8px; }
.cta-band p { margin: 0; opacity: .92; max-width: 560px; }
.cta-band .btn-primary { background: var(--ink); }
.cta-band .btn-primary:hover { background: #000; }

/* Forms */
.form { display: grid; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label { display: block; font-weight: 600; font-size: .92rem; color: var(--ink); margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 14px; border: 1px solid #cfd3da; border-radius: 10px; font: inherit; font-size: 1rem; background: #fff; color: var(--text);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--orange); outline-offset: 1px; border-color: var(--orange); }
.field textarea { min-height: 140px; resize: vertical; }
.field small { color: var(--muted); font-size: .85rem; }
.form-note { font-size: .88rem; color: var(--muted); }
.form-success { display: none; background: #eaf7ee; border: 1px solid #b9e2c5; color: #1d5c32; padding: 16px; border-radius: 10px; }

.contact-card { background: var(--ink); color: #c9cdd4; border-radius: var(--radius); padding: 32px; }
.contact-card h3 { color: #fff; }
.contact-item { display: flex; gap: 14px; align-items: flex-start; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.1); }
.contact-item:last-child { border-bottom: 0; }
.contact-item svg { width: 22px; height: 22px; color: var(--orange); flex-shrink: 0; margin-top: 3px; }
.contact-item a { color: #fff; text-decoration: none; font-weight: 600; }
.contact-item small { display: block; color: #8e95a0; }

/* Split media */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split-media { border-radius: 20px; overflow: hidden; aspect-ratio: 4/3; box-shadow: var(--shadow); }
.split-media img { width: 100%; height: 100%; object-fit: cover; }
.checklist { list-style: none; padding: 0; margin: 20px 0; }
.checklist li { position: relative; padding-left: 32px; margin-bottom: 12px; }
.checklist li::before { content: ""; position: absolute; left: 0; top: 4px; width: 20px; height: 20px; border-radius: 50%; background: var(--orange) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center/12px no-repeat; }

/* Footer */
.site-footer { background: #0f1115; color: #9aa1ac; padding: 64px 0 28px; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 40px; }
.site-footer h4 { color: #fff; font-size: 1rem; margin-bottom: 14px; }
.site-footer a { color: #c9cdd4; text-decoration: none; }
.site-footer a:hover { color: var(--orange); }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer .logo { color: #fff; margin-bottom: 14px; }
.footer-bottom { border-top: 1px solid #23262d; padding-top: 22px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: .85rem; }

/* Reveal animation */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* Responsive */
@media (max-width: 980px) {
  .hero .container, .split, .case { grid-template-columns: 1fr; }
  .case.flip .case-media { order: 0; }
  .hero-visual { margin: 0 auto; max-width: 420px; }
  .grid-3, .grid-4, .work-grid, .steps, .stats { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-card.one { left: -8px; }
  .hero-card.two { right: -8px; }
}
@media (max-width: 860px) {
  .menu-toggle { display: block; }
  .nav {
    position: absolute; top: 74px; left: 0; right: 0; background: #fff; flex-direction: column; align-items: stretch;
    padding: 12px 16px 20px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px 14px; }
  .nav .btn { margin: 8px 0 0; justify-content: center; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .section { padding: 64px 0; }
  .container { padding: 0 16px; }
  .grid-2, .grid-3, .grid-4, .work-grid, .steps, .form-row, .footer-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .cta-band { padding: 36px 24px; }
  .topbar .hide-sm { display: none; }
  .hero { padding: 48px 0 64px; }
  .hero-card { font-size: .8rem; padding: 10px 12px; }
  .hero-card.one { left: 8px; bottom: 16px; }
  .hero-card.two { right: 8px; top: 16px; }
  .lb-prev, .lb-next { top: auto; bottom: 16px; transform: none; }
}

/* Logo image */
.logo-img { height: 46px; width: auto; }
.site-footer .logo-img { height: 52px; }
@media (max-width: 640px) { .logo-img { height: 38px; } }

/* Printer photo slots: show a labeled placeholder until the photo file exists */
.shop-grid { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; gap: 16px; }
.shop-grid figure:first-child { grid-row: span 2; }
.shop-photo { position: relative; margin: 0; border-radius: var(--radius); overflow: hidden; background: var(--ink); min-height: 200px; max-width: 100%; }
.shop-photo img { width: 100%; height: 100%; object-fit: cover; }
.shop-photo figcaption { position: absolute; left: 12px; bottom: 12px; background: rgba(10,11,14,.75); color: #fff; font-size: .85rem; font-weight: 600; padding: 6px 12px; border-radius: 999px; }
.shop-photo.missing { display: grid; place-items: center; background: repeating-linear-gradient(0deg, #1d2027 0 2px, #16181d 2px 10px); }
.shop-photo.missing img { display: none; }
.shop-photo.missing::before { content: "Photo coming soon"; color: #8e95a0; font-size: .9rem; }
@media (max-width: 640px) {
  .shop-grid { grid-template-columns: 1fr; grid-template-rows: none; }
  .shop-grid figure:first-child { grid-row: auto; aspect-ratio: 4/3; }
  .shop-photo { aspect-ratio: 4/3; }
}
.shop-photo.light { background: #eceef1; }
.shop-photo.light img { object-fit: contain; padding: 16px; }
/* Wide shop photo on top, two detail photos below */
.shop-grid { grid-template-columns: 1fr 1fr; grid-template-rows: none; }
.shop-grid figure:first-child { grid-row: auto; grid-column: 1 / -1; aspect-ratio: 16 / 9; }
.shop-grid figure:not(:first-child) { aspect-ratio: 16 / 9; }
@media (max-width: 640px) {
  .shop-grid { grid-template-columns: 1fr; }
  .shop-grid figure:first-child { grid-column: auto; }
}
