/*
Theme Name: CM TECH Precision
Theme URI: https://cmtechcnc.com/
Author: CM TECH AUTOMATION CO., LTD
Description: A responsive precision CNC manufacturing theme with interactive industry workflows, founders, blog and secure RFQ uploads.
Version: 1.1.1
Requires at least: 6.4
Requires PHP: 8.0
Text Domain: cmtech-precision
*/

@import url("https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@400;500;600;700&family=Inter:wght@400;500;600&display=swap");

:root {
  color: #f5f5f2;
  background: #080908;
  font-family: "Inter", Arial, sans-serif;
  font-synthesis: none;
  --ink: #080908;
  --surface: #0c0d0c;
  --surface-2: #111310;
  --line: #2c302b;
  --muted: #a1a69e;
  --white: #f5f5f2;
  --lime: #9dff00;
  --display: "Barlow Condensed", "Arial Narrow", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; min-height: 100vh; background: var(--ink); -webkit-font-smoothing: antialiased; }
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; }
a { color: inherit; text-decoration: none; }
img { display: block; width: 100%; }

.site-shell { overflow: hidden; background: var(--ink); }
.site-header { height: 86px; display: grid; grid-template-columns: 230px 1fr auto; align-items: center; gap: 28px; padding: 0 3vw; border-bottom: 1px solid rgba(255,255,255,.08); position: absolute; inset: 0 0 auto; z-index: 20; }
.wordmark { display: inline-flex; align-items: baseline; gap: 7px; white-space: nowrap; }
.wordmark strong { font-family: var(--display); font-size: 28px; line-height: 1; letter-spacing: .02em; }
.wordmark span { font-size: 9px; color: var(--muted); letter-spacing: .04em; }
.nav-links { display: flex; justify-content: center; gap: clamp(18px, 2.6vw, 42px); font-size: 12px; }
.nav-links a { padding: 10px 0; color: #d9dcd6; transition: color .25s ease; }
.nav-links a:hover { color: var(--lime); }
.menu-toggle { display: none; background: none; color: var(--white); border: 0; font-size: 22px; }
.button { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; gap: 18px; padding: 0 24px; background: var(--lime); border: 1px solid var(--lime); color: #0b0c0a; text-transform: uppercase; letter-spacing: .02em; font-size: 12px; font-weight: 600; cursor: pointer; transition: background .25s ease, color .25s ease, transform .25s ease; }
.button:hover { transform: translateY(-2px); background: #b5ff3d; }
.button-small { min-height: 42px; padding-inline: 20px; }
.button-ghost { background: transparent; color: var(--white); border-color: #565b53; }
.button-ghost:hover { background: var(--white); color: var(--ink); border-color: var(--white); }
.section-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.eyebrow { margin: 0 0 22px; color: var(--lime); font-family: var(--display); font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.eyebrow span { width: 9px; height: 9px; display: inline-block; margin-right: 8px; background: var(--lime); border-radius: 50%; box-shadow: 0 0 0 4px rgba(157,255,0,.12); }
h1, h2, h3, p { margin-top: 0; }
h1, h2 { font-family: var(--display); font-weight: 500; letter-spacing: -.035em; text-transform: uppercase; }
h1 span, h2 span { color: var(--lime); }

.hero { min-height: 850px; padding: 150px 3vw 70px; border-bottom: 1px solid var(--line); position: relative; }
.hero::before, .hero::after { content: ""; position: absolute; pointer-events: none; border-color: rgba(255,255,255,.07); border-style: solid; }
.hero::before { inset: 86px 50% 0 auto; border-width: 0 1px 0 0; }
.hero::after { width: 37vw; height: 1px; left: 4vw; top: 67%; border-width: 1px 0 0; }
.hero-copy { position: relative; z-index: 3; align-self: center; padding-right: 3vw; }
.hero h1 { font-size: clamp(84px, 10.5vw, 168px); line-height: .76; margin: 0 0 32px; }
.hero-intro { max-width: 480px; color: #c9cdc5; font-size: 17px; line-height: 1.55; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 36px 0 48px; }
.proof-row { display: flex; gap: 0; max-width: 640px; }
.proof-row > div { min-width: 150px; display: flex; align-items: center; gap: 12px; padding-right: 24px; margin-right: 24px; border-right: 1px solid var(--line); }
.proof-row > div:last-child { border-right: 0; }
.proof-row svg, .proof-row i { color: var(--lime); font-size: 22px; }
.proof-row span { color: var(--muted); font-size: 10px; text-transform: uppercase; line-height: 1.45; }
.proof-row strong { display: block; color: var(--white); font-size: 11px; font-weight: 500; }
.hero-visual { position: relative; align-self: center; min-width: 0; }
.hero-visual::after { content: ""; position: absolute; inset: 4% 6%; border: 1px solid rgba(157,255,0,.12); z-index: 0; }
.hero-visual img { min-height: 640px; object-fit: cover; object-position: 64% center; filter: contrast(1.08) saturate(.78); position: relative; z-index: 1; animation: heroFloat 9s ease-in-out infinite; }
.dimension { position: absolute; z-index: 2; color: var(--muted); font-family: var(--display); font-size: 12px; letter-spacing: .08em; }
.dimension::after { content: ""; width: 90px; display: inline-block; vertical-align: middle; margin-left: 10px; border-top: 1px dashed #646a60; }
.dimension small { color: #d7dad4; }
.dimension-a { top: 12%; left: 4%; }
.dimension-b { bottom: 9%; right: 4%; }
@keyframes heroFloat { 0%,100% { transform: translate3d(0,0,0); } 50% { transform: translate3d(0,-8px,0); } }

.industry-process { padding: 0 3vw 120px; }
.industry-tabs { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-top: 0; }
.industry-tab { height: 92px; display: flex; align-items: center; gap: 18px; padding: 0 30px; background: transparent; color: var(--muted); border: 0; border-right: 1px solid var(--line); text-align: left; cursor: pointer; transition: color .25s, background .25s; }
.industry-tab:last-child { border-right: 0; }
.industry-tab svg, .industry-tab i { font-size: 24px; }
.industry-tab span { font-family: var(--display); font-size: 15px; letter-spacing: .04em; }
.industry-tab:hover, .industry-tab.active { color: var(--lime); background: #0d100a; }
.industry-tab.active { box-shadow: inset 0 0 0 1px var(--lime); }
.industry-context { min-height: 82px; display: grid; grid-template-columns: 1fr 2fr 1fr; align-items: center; gap: 28px; border-bottom: 1px solid var(--line); animation: contentIn .5s ease both; }
.industry-context span { font-family: var(--display); color: var(--white); font-size: 20px; text-transform: uppercase; }
.industry-context p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.industry-context small { text-align: right; color: var(--lime); font-size: 10px; text-transform: uppercase; }
.process-timeline { display: grid; grid-template-columns: repeat(7, 1fr); padding: 48px 0 42px; overflow-x: auto; }
.process-step { min-width: 125px; position: relative; padding: 0 10px 20px; background: none; border: 0; color: #686d65; cursor: pointer; text-align: left; }
.process-step::before { content: ""; position: absolute; z-index: 0; left: 0; right: 0; top: 25px; border-top: 1px dashed #4c5149; }
.process-step:first-child::before { left: 25px; }
.process-step:last-child::before { right: calc(100% - 25px); }
.step-number { width: 50px; height: 50px; display: grid; place-items: center; position: relative; z-index: 1; margin-bottom: 15px; border: 1px solid #555b51; border-radius: 50%; background: var(--ink); font-family: var(--display); font-size: 23px; transition: color .25s, border-color .25s, box-shadow .25s; }
.step-label { font-family: var(--display); font-size: 12px; letter-spacing: .04em; }
.process-step:hover, .process-step.active { color: var(--lime); }
.process-step.active .step-number { border-color: var(--lime); box-shadow: 0 0 0 5px rgba(157,255,0,.08); }
.process-detail { min-height: 650px; display: grid; grid-template-columns: .95fr 1.05fr; align-items: stretch; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); animation: contentIn .55s ease both; transition: opacity .2s ease, transform .2s ease; }
.process-detail.is-changing { opacity: .18; transform: translateY(10px); }
@keyframes contentIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
.process-image-wrap { position: relative; overflow: hidden; grid-column: 2; grid-row: 1; }
.process-image-wrap img { height: 100%; min-height: 650px; object-fit: cover; filter: saturate(.72) contrast(1.08); }
.image-index { position: absolute; left: 22px; top: 20px; color: rgba(255,255,255,.2); font-family: var(--display); font-size: 90px; line-height: 1; }
.process-copy { display: flex; flex-direction: column; justify-content: center; grid-column: 1; grid-row: 1; padding: 70px clamp(38px, 5vw, 86px); background: var(--surface); }
.process-copy h2, .section-heading h2, .quality h2, .founders h2, .blog h2, .rfq h2 { font-size: clamp(54px, 6vw, 94px); line-height: .88; margin-bottom: 30px; }
.process-copy > p:not(.eyebrow), .quality-copy > p:not(.eyebrow), .founders-copy > p:not(.eyebrow), .rfq-copy > p:not(.eyebrow) { color: var(--muted); font-size: 15px; line-height: 1.75; }
.process-copy ul, .quality-copy ul { list-style: none; padding: 0; margin: 34px 0 0; }
.process-copy li, .quality-copy li { padding: 15px 0; border-bottom: 1px solid var(--line); color: #d7dad4; font-size: 12px; }
.process-copy li svg, .quality-copy li svg, .process-copy li i, .quality-copy li i { color: var(--lime); margin-right: 12px; }

.capabilities { padding: 145px 3vw; border-bottom: 1px solid var(--line); }
.section-heading { padding-right: 6vw; }
.section-heading h2 { margin: 0; }
.capability-columns { display: grid; grid-template-columns: repeat(3, 1fr); border-left: 1px solid var(--line); }
.capability-columns article { padding: 28px; border-right: 1px solid var(--line); }
.capability-columns svg, .capability-columns i { color: var(--lime); font-size: 26px; }
.capability-columns h3 { margin: 60px 0 18px; font-family: var(--display); font-size: 23px; font-weight: 500; text-transform: uppercase; }
.capability-columns p { color: var(--muted); font-size: 12px; line-height: 1.7; }

.stability-statement { padding: 150px 3vw; border-bottom: 1px solid var(--line); }
.stability-statement > p { color: var(--lime); font-family: var(--display); font-size: 13px; letter-spacing: .15em; }
.stability-statement > h2 { max-width: 1150px; font-size: clamp(58px, 8vw, 126px); line-height: .88; }
.stability-statement > h2 span { color: #6f746c; }
.stability-list { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 85px; border-top: 1px solid var(--line); }
.stability-list > div { padding: 34px 7vw 0 0; }
.stability-list strong { display: block; color: var(--lime); font-family: var(--display); font-size: 13px; margin-bottom: 42px; }
.stability-list span { display: block; font-family: var(--display); font-size: 25px; text-transform: uppercase; }
.stability-list p { margin-top: 16px; color: var(--muted); font-size: 12px; line-height: 1.65; }

.quality { min-height: 740px; border-bottom: 1px solid var(--line); }
.quality-image img { height: 100%; min-height: 740px; object-fit: cover; filter: saturate(.65); }
.quality-copy { display: flex; flex-direction: column; justify-content: center; padding: 70px clamp(38px, 6vw, 100px); }
.quality-copy h2, .founders h2 { margin-bottom: 30px; }

.founders { min-height: 720px; border-bottom: 1px solid var(--line); }
.founders-copy { display: flex; flex-direction: column; justify-content: center; padding: 70px 6vw 70px 3vw; }
.founders-image img { height: 100%; min-height: 720px; object-fit: cover; object-position: center; filter: saturate(.72); }
.founder-names { display: grid; grid-template-columns: 1fr 1fr; margin-top: 34px; border-top: 1px solid var(--line); }
.founder-names div { padding: 22px 12px 22px 0; border-right: 1px solid var(--line); }
.founder-names div:last-child { padding-left: 22px; border-right: 0; }
.founder-names strong, .founder-names span { display: block; }
.founder-names strong { font-family: var(--display); font-size: 20px; text-transform: uppercase; }
.founder-names span, .replace-note { margin-top: 7px; color: var(--muted); font-size: 10px; line-height: 1.5; }
.replace-note { color: var(--lime); }

.blog { padding: 130px 3vw; border-bottom: 1px solid var(--line); }
.blog-heading { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 58px; }
.blog-heading h2 { margin-bottom: 0; }
.blog-heading a { padding: 16px 0; color: var(--lime); font-size: 12px; }
.post-list { border-top: 1px solid var(--line); }
.post-list article { display: grid; grid-template-columns: 90px 1fr auto; align-items: center; min-height: 150px; border-bottom: 1px solid var(--line); transition: color .25s, padding .25s; }
.post-list article:hover { color: var(--lime); padding-inline: 12px; }
.post-list article > span { color: var(--lime); font-family: var(--display); }
.post-list small { color: var(--muted); font-size: 9px; letter-spacing: .08em; }
.post-list h3 { max-width: 850px; margin: 12px 0 0; font-family: var(--display); font-size: clamp(24px, 3vw, 42px); font-weight: 500; text-transform: uppercase; }
.post-list article > svg, .post-list article > i { margin-right: 18px; }

.rfq { padding: 140px 3vw; background: var(--surface-2); }
.rfq-copy { padding-right: 8vw; }
.file-types { display: inline-flex; align-items: center; gap: 12px; margin-top: 30px; color: var(--lime); font-size: 10px; }
.rfq-form { padding-left: 5vw; border-left: 1px solid var(--line); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.rfq-form label { display: flex; flex-direction: column; gap: 9px; margin-bottom: 18px; color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: .08em; }
.rfq-form input, .rfq-form textarea, .rfq-form select { width: 100%; color: var(--white); background: #0a0b0a; border: 1px solid #353a33; border-radius: 0; outline: 0; padding: 15px; transition: border-color .25s; }
.rfq-form input:focus, .rfq-form textarea:focus, .rfq-form select:focus { border-color: var(--lime); }
.upload-field { min-height: 100px; display: grid !important; grid-template-columns: 42px 1fr; align-items: center; position: relative; padding: 18px; border: 1px dashed #5b6256; cursor: pointer; }
.upload-field > svg, .upload-field > i { color: var(--lime); font-size: 27px; }
.upload-field strong, .upload-field small { display: block; }
.upload-field strong { color: var(--white); font-size: 12px; }
.upload-field small { margin-top: 7px; font-size: 9px; }
.upload-field input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.submit-button { width: 100%; }
.form-success { min-height: 430px; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; }
.form-success > svg { width: 46px; height: 46px; padding: 14px; color: var(--ink); background: var(--lime); border-radius: 50%; }
.form-success h3 { margin: 28px 0 12px; font-family: var(--display); font-size: 42px; font-weight: 500; text-transform: uppercase; }
.form-success p { max-width: 520px; color: var(--muted); line-height: 1.7; }

footer { min-height: 130px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 30px; padding: 30px 3vw; border-top: 1px solid var(--line); color: var(--muted); }
footer p { margin: 0; font-size: 10px; }
footer > div { display: flex; justify-content: flex-end; gap: 28px; font-size: 10px; text-transform: uppercase; }

.reveal { opacity: 0; transform: translateY(30px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

.admin-bar .site-header { top: 32px; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.honeypot { position: absolute !important; left: -9999px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
.rfq-status { margin: 0 0 24px; padding: 16px 18px; border: 1px solid var(--lime); color: var(--white); font-size: 12px; line-height: 1.6; }
.rfq-status.error { border-color: #ff6157; }
.page-hero { min-height: 510px; display: flex; align-items: flex-end; padding: 160px 3vw 75px; border-bottom: 1px solid var(--line); }
.page-hero h1 { margin: 0; font-size: clamp(72px, 10vw, 150px); line-height: .82; }
.content-page { max-width: 1040px; margin: 0 auto; padding: 100px 3vw 140px; color: #c9cdc5; font-size: 16px; line-height: 1.85; }
.content-page h2, .content-page h3 { color: var(--white); font-family: var(--display); text-transform: uppercase; }
.posts-page { padding: 140px 3vw; min-height: 75vh; }
.posts-page .post-list { margin-top: 50px; }
.post-meta { color: var(--lime); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
.article-content { max-width: 880px; margin: 0 auto; padding: 100px 3vw 140px; color: #c9cdc5; font-size: 17px; line-height: 1.9; }
.article-content h2, .article-content h3 { color: var(--white); font-family: var(--display); text-transform: uppercase; }
.article-content a, .content-page a { color: var(--lime); text-decoration: underline; }
.about-page-founders { padding-top: 0; }
.founder-edit-link { display: inline-flex; margin-top: 22px; color: var(--lime); font-size: 11px; text-transform: uppercase; }

@media (max-width: 1050px) {
  .site-header { grid-template-columns: 1fr auto; }
  .menu-toggle { display: block; }
  .nav-links { position: absolute; left: 0; right: 0; top: 86px; display: none; flex-direction: column; align-items: flex-start; gap: 0; padding: 22px 3vw; background: #0a0b0a; border-bottom: 1px solid var(--line); }
  .nav-links.is-open { display: flex; }
  .nav-links a { width: 100%; padding: 14px 0; }
  .header-cta { display: none; }
  .hero { grid-template-columns: 1fr; padding-top: 140px; }
  .hero-visual { margin-top: 35px; }
  .hero-visual img { min-height: 440px; }
  .hero::before { display: none; }
  .industry-tabs { grid-template-columns: 1fr 1fr; }
  .industry-tab:nth-child(2) { border-right: 0; }
  .industry-tab:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .process-detail, .quality, .founders, .capabilities, .rfq { grid-template-columns: 1fr; }
  .process-image-wrap { grid-column: 1; grid-row: 1; }
  .process-copy { grid-column: 1; grid-row: 2; }
  .process-image-wrap img, .quality-image img, .founders-image img { min-height: 520px; }
  .section-heading { margin-bottom: 55px; }
  .rfq-form { margin-top: 60px; padding: 60px 0 0; border-left: 0; border-top: 1px solid var(--line); }
}

@media (max-width: 700px) {
  .admin-bar .site-header { top: 46px; }
  .site-header { height: 74px; padding-inline: 20px; }
  .wordmark span { display: none; }
  .nav-links { top: 74px; }
  .hero, .industry-process, .capabilities, .stability-statement, .blog, .rfq { padding-left: 20px; padding-right: 20px; }
  .hero { min-height: auto; padding-top: 125px; }
  .hero h1 { font-size: clamp(70px, 24vw, 108px); }
  .hero-actions .button { width: 100%; }
  .proof-row { flex-direction: column; gap: 16px; }
  .proof-row > div { border-right: 0; }
  .hero-visual img { min-height: 360px; }
  .industry-tabs { margin-inline: -20px; }
  .industry-tab { height: 78px; padding: 0 16px; gap: 10px; }
  .industry-context { grid-template-columns: 1fr; gap: 8px; padding: 22px 0; }
  .industry-context small { text-align: left; }
  .process-timeline { margin-right: -20px; }
  .process-detail { margin-inline: -20px; }
  .process-image-wrap img { min-height: 420px; }
  .process-copy { padding: 54px 20px; }
  .process-copy h2, .section-heading h2, .quality h2, .founders h2, .blog h2, .rfq h2 { font-size: 52px; }
  .capability-columns { grid-template-columns: 1fr; border-left: 0; border-top: 1px solid var(--line); }
  .capability-columns article { border-right: 0; border-bottom: 1px solid var(--line); padding-inline: 0; }
  .capability-columns h3 { margin-top: 28px; }
  .stability-list { grid-template-columns: 1fr; }
  .stability-list > div { border-bottom: 1px solid var(--line); padding-bottom: 30px; }
  .quality-copy, .founders-copy { padding: 60px 20px; }
  .quality-image img, .founders-image img { min-height: 420px; }
  .founder-names { grid-template-columns: 1fr; }
  .founder-names div, .founder-names div:last-child { padding: 18px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .blog-heading { align-items: flex-start; flex-direction: column; }
  .post-list article { grid-template-columns: 45px 1fr auto; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  footer { grid-template-columns: 1fr; text-align: left; }
  footer > div { justify-content: flex-start; }
}

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