/* =========================================================
   Techpro — stylesheet
   ========================================================= */

:root{
  --green: #16a45e;
  --green-dark: #0f7f47;
  --ink: #0b0f14;
  --navy-900: #0a0e13;
  --navy-800: #0f151c;
  --navy-700: #161d26;
  --grey-50: #f4f5f7;
  --grey-100: #eceef1;
  --grey-300: #d7dce1;
  --grey-500: #6b7480;
  --grey-700: #3d444d;
  --white: #ffffff;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --shadow-card: 0 1px 2px rgba(10,14,19,.05), 0 8px 24px rgba(10,14,19,.06);
  --container: 1160px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

*,*::before,*::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; overflow-x:hidden; }
body{
  margin:0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  line-height:1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x:hidden;
  width:100%;
}
img{ max-width:100%; display:block; }
a{ text-decoration:none; color:inherit; }
ul{ list-style:none; margin:0; padding:0; }
/* WordPress's theme.json injects a global "h1,h2,h3,h4,h5,h6{color:...}"
   rule (same specificity as this one, but earlier in the document) that
   otherwise wins over every dark-background heading here relying on
   inherited white text -- explicit color:inherit restores that inheritance
   and wins the cascade since this stylesheet loads after global-styles-inline-css. */
h1,h2,h3,h4{ margin:0; font-weight:700; letter-spacing:-0.01em; color:inherit; }
p{ margin:0; }
.container{ max-width: var(--container); margin:0 auto; padding: 0 24px; }

/* ---------- Buttons ---------- */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  font-size:13px; font-weight:600; letter-spacing:.03em; text-transform:uppercase;
  padding:14px 24px; border-radius: var(--radius-sm);
  border:1px solid transparent; cursor:pointer; white-space:nowrap;
  transition: background-color .18s ease, border-color .18s ease, color .18s ease, transform .12s ease;
}
.btn svg{ flex-shrink:0; }
.btn:active{ transform: translateY(1px); }
.btn-primary{ background: var(--green); color:#fff; }
.btn-primary:hover{ background: var(--green-dark); }
.btn-outline{ background: transparent; color: var(--ink); border-color: var(--grey-300); }
.btn-outline:hover{ border-color: var(--green); color: var(--green); }
.btn-outline-light{ background: transparent; color:#fff; border-color: rgba(255,255,255,.35); }
.btn-outline-light:hover{ border-color: var(--green); color: var(--green); }
.btn-sm{ padding:10px 18px; font-size:12px; }
.btn-block{ width:100%; }

/* ---------- Header ---------- */
.site-header{
  position: sticky; top:0; z-index: 100;
  background: var(--navy-900);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.header-inner{
  max-width: 1320px; margin:0 auto; padding: 14px 24px;
  display:flex; align-items:center; gap:32px;
}
.logo{ display:flex; align-items:center; gap:9px; color:#fff; font-weight:700; font-size:19px; letter-spacing:-.01em; flex-shrink:0; }
.logo img.site-logo-image{ height:26px; width:auto; display:block; }
/* Matches the reference design: a plain white bolt-in-circle mark (no green
   tint) next to the wordmark set in the site's serif heading font, not the
   body sans-serif. */
.logo span{ font-family: var(--wp--preset--font-family--heading, 'Cardo', serif); }
.main-nav{ display:flex; gap:26px; flex:1; }
.main-nav a{
  color: rgba(255,255,255,.82); font-size:13px; font-weight:600; letter-spacing:.02em; text-transform:uppercase;
  padding: 6px 0; position:relative;
}
.main-nav a:hover{ color:#fff; }
.main-nav a::after{
  content:""; position:absolute; left:0; right:0; bottom:-2px; height:2px; background: var(--green);
  transform: scaleX(0); transform-origin:left; transition: transform .18s ease;
}
.main-nav a:hover::after{ transform: scaleX(1); }

.header-actions{ display:flex; align-items:center; gap:14px; flex-shrink:0; }
.icon-btn{
  background:transparent; border:none; color:#fff; cursor:pointer; padding:6px;
  display:flex; align-items:center; opacity:.85;
}
.icon-btn:hover{ opacity:1; }

.lang-select{ position:relative; }
.lang-btn{
  display:flex; align-items:center; gap:6px; background:transparent; border:none; color:#fff;
  font-size:13px; font-weight:600; cursor:pointer; padding:6px;
}
.flag{ font-size:15px; }
.lang-menu{
  position:absolute; top: calc(100% + 8px); right:0; background:#fff; border-radius: var(--radius-sm);
  box-shadow: 0 10px 30px rgba(0,0,0,.18); min-width:150px; padding:6px; opacity:0; visibility:hidden;
  transform: translateY(-6px); transition: all .16s ease; z-index:50;
}
.lang-menu.open{ opacity:1; visibility:visible; transform:translateY(0); }
.lang-menu li{ padding:9px 12px; border-radius:6px; font-size:13px; color:var(--ink); cursor:pointer; }
.lang-menu li:hover{ background: var(--grey-50); }

.hamburger{
  display:none; flex-direction:column; justify-content:center; gap:4px;
  width:30px; height:30px; background:transparent; border:none; cursor:pointer;
}
.hamburger span{ display:block; height:2px; background:#fff; border-radius:2px; transition: all .2s ease; }
.hamburger.open span:nth-child(1){ transform: translateY(6px) rotate(45deg); }
.hamburger.open span:nth-child(2){ opacity:0; }
.hamburger.open span:nth-child(3){ transform: translateY(-6px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero{ position:relative; color:#fff; overflow:hidden; min-height: 620px; display:flex; align-items:center; }
.hero-media{
  position:absolute; inset:0;
  background:
    linear-gradient(100deg, rgba(6,9,14,.92) 10%, rgba(6,9,14,.55) 45%, rgba(30,20,10,.25) 75%),
    url('https://picsum.photos/seed/techpro-rig/1600/900') center/cover no-repeat;
}
.hero-overlay{
  position:absolute; inset:0;
  background: linear-gradient(0deg, var(--navy-900) 0%, transparent 22%);
}
.hero-inner{
  position:relative; z-index:2; max-width:1320px; margin:0 auto; padding: 90px 24px 70px;
  display:grid; grid-template-columns: 1.15fr .85fr; gap:40px; align-items:start; width:100%;
}
.hero .eyebrow{ color: var(--green); }
.eyebrow{
  font-size:12px; font-weight:700; letter-spacing:.09em; text-transform:uppercase;
  color: var(--green); margin-bottom:14px; display:block;
}
.hero h1{ font-size:44px; line-height:1.12; margin-bottom:18px; max-width: 620px; }
.hero-sub{ font-size:16px; color: rgba(255,255,255,.72); max-width:480px; margin-bottom:30px; }
.hero-actions{ display:flex; gap:14px; flex-wrap:wrap; }

.hero-stats{
  background: rgba(10,14,20,.55); border:1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-md); backdrop-filter: blur(6px);
  display:grid; grid-template-columns: 1fr 1fr; margin-top: 34px;
}
.stat{ padding: 26px 28px; border-right:1px solid rgba(255,255,255,.1); border-bottom:1px solid rgba(255,255,255,.1); }
.stat:nth-child(2n){ border-right:none; }
.stat:nth-child(3),.stat:nth-child(4){ border-bottom:none; }
.stat-num{ display:block; font-size:30px; font-weight:800; margin-bottom:6px; }
.stat-num em{ color: var(--green); font-style:normal; }
.stat-label{ font-size:11.5px; color: rgba(255,255,255,.65); text-transform:uppercase; letter-spacing:.03em; line-height:1.4; }

/* ---------- Logo strip ---------- */
.logo-strip{ background: var(--grey-50); border-bottom:1px solid var(--grey-100); }
.logo-strip-inner{
  max-width:1160px; margin:0 auto; padding: 30px 24px;
  display:flex; align-items:center; justify-content: space-around; gap:32px; flex-wrap:wrap;
}
.partner-logo{ display:flex; align-items:center; gap:8px; font-weight:800; font-size:19px; color:#333; opacity:.9; }
.partner-logo.hengtong{ color:#c8102e; font-style:italic; }
.partner-logo.techpro-mini{ color: var(--green); }
.partner-logo.techpro-mini svg{ color: var(--green); }
.partner-logo.iljin{ background:#0a4fa0; color:#fff; padding:8px 16px; border-radius:4px; font-size:16px; }
.cmp-badge{
  width:40px; height:40px; border:2px solid #c9a24a; border-radius:50%; display:flex; align-items:center; justify-content:center;
  font-size:10px; font-weight:700; color:#1c1c1c;
}

/* ---------- Sections ---------- */
.section{ padding: 88px 0; }
.section-tight{ padding-top:0; }
.section-light{ background: var(--white); }
.section-light + .section-light{ background: var(--grey-50); }
.section-dark{ background: var(--navy-900); color:#fff; }
.section-dark .section-sub{ color: rgba(255,255,255,.6); }

.section-head{ margin-bottom:44px; }
.section-head h2{ font-size:32px; margin-bottom:14px; }
.section-sub{ font-size:15.5px; color: var(--grey-500); max-width:560px; }
.section-head.split{ display:flex; justify-content:space-between; align-items:flex-end; gap:24px; flex-wrap:wrap; }
.section-head.center{ text-align:center; }
.section-head.center .section-sub{ margin:0 auto; }
.center-actions{ display:flex; justify-content:center; gap:14px; margin-top:44px; flex-wrap:wrap; }

/* ---------- Product grid ---------- */
.product-grid{ display:grid; grid-template-columns: repeat(4, 1fr); gap:20px; }
.product-card{
  background:#fff; border:1px solid var(--grey-100); border-radius: var(--radius-md); overflow:hidden;
  box-shadow: var(--shadow-card); transition: transform .2s ease, box-shadow .2s ease;
}
/* Lift-on-hover affordance -- CSS :hover is inherently per-element, so this
   only ever affects the single card under the cursor, never its siblings
   or any other section. */
.product-card:hover{ transform: translateY(-6px); box-shadow: 0 20px 36px rgba(10,14,19,.14); }
.product-card .thumb{ height:150px; overflow:hidden; background:#eee; }
.product-card .thumb img{ width:100%; height:100%; object-fit:cover; }
.product-card .body{ padding:18px 20px 22px; }
.product-card h3{ font-size:18px; margin-bottom:6px; }
.product-card p{ font-size:13.5px; color: var(--grey-500); }
/* Matches the reference design exactly: the Flow card is permanently
   "dark" (a navy card, taller aspect-ratio thumb with a dimmed image, and a
   centered icon + heading + "View More" overlay in place of the plain body
   text), determined by the Series term's slug -- not a hover state. */
.product-card.dark{ background: var(--navy-800); color:#fff; position:relative; }
.product-card.dark .thumb{
  height:auto; aspect-ratio: 1 / 0.62; position:relative; background:#0e1218;
  display:flex; align-items:center; justify-content:center; overflow:hidden;
}
.product-card.dark .thumb img{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; opacity:.35; }
.product-card.dark .thumb-content{
  display:flex; flex-direction:column; align-items:center;
  position:relative; z-index:1; text-align:center; padding:18px;
}
.product-card.dark .thumb-content .ico{ color: var(--green); margin-bottom:8px; font-size:22px; }
.product-card.dark .thumb-content h3{ font-size:19px; margin-bottom:8px; }
.product-card.dark .view-more{ color: var(--green); font-size:12.5px; font-weight:600; text-decoration:underline; }
.product-card.dark .body{ display:none; }

/* ---------- Markets grid ---------- */
.market-grid{ display:grid; grid-template-columns: 1fr 1fr; gap:20px; }
.market-card{
  position:relative; border-radius: var(--radius-md); overflow:hidden; height:280px;
  display:flex; align-items:flex-end; padding:26px; isolation:isolate;
}
.market-card img{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; z-index:-2; }
.market-card::after{
  content:""; position:absolute; inset:0; z-index:-1;
  background: linear-gradient(0deg, rgba(4,6,9,.88) 0%, rgba(4,6,9,.15) 55%, rgba(4,6,9,0) 100%);
}
.market-card h3{ font-size:22px; margin-bottom:6px; }
.market-card p{ font-size:13.5px; color: rgba(255,255,255,.72); }

/* ---------- Solution grid ---------- */
.solution-grid{ display:grid; grid-template-columns: repeat(4,1fr); gap:20px; }
.solution-card{
  background:#fff; border:1px solid var(--grey-100); border-radius: var(--radius-md);
  padding:26px 24px; box-shadow: var(--shadow-card);
}
.solution-card .ico-box{
  width:44px; height:44px; border-radius:10px; background:#e6f7ee; color: var(--green);
  display:flex; align-items:center; justify-content:center; margin-bottom:18px; font-size:19px;
}
.solution-card h3{ font-size:17px; margin-bottom:12px; line-height:1.3; }
.solution-card li{ font-size:13.5px; color: var(--grey-500); padding-left:16px; position:relative; margin-bottom:6px; }
.solution-card li::before{ content:"•"; position:absolute; left:0; color: var(--grey-300); }

/* ---------- Project / article grid ---------- */
.project-grid, .article-grid{ display:grid; grid-template-columns: repeat(3,1fr); gap:20px; }
.project-card, .article-card{
  background: var(--navy-800); border:1px solid rgba(255,255,255,.07); border-radius: var(--radius-md); overflow:hidden;
}
.project-card .thumb{ position:relative; height:190px; }
.project-card .thumb img{ width:100%; height:100%; object-fit:cover; }
.badge{
  position:absolute; top:14px; right:14px; background: rgba(10,20,15,.65); border:1px solid rgba(255,255,255,.2);
  color: var(--green); font-size:10.5px; font-weight:700; letter-spacing:.04em; text-transform:uppercase;
  padding:6px 10px; border-radius:20px; backdrop-filter: blur(4px);
}
.project-card .body, .article-card .body{ padding:22px 22px 24px; }
.project-card h3{ font-size:18px; margin-bottom:10px; }
.project-card p{ font-size:13.5px; color: rgba(255,255,255,.6); margin-bottom:16px; }
.read-more{ display:inline-flex; align-items:center; gap:4px; color: var(--green); font-size:13px; font-weight:600;
  padding-top:14px; border-top:1px solid rgba(255,255,255,.08); width:100%; }

.article-card .thumb{ height:170px; }
.article-card .thumb img{ width:100%; height:100%; object-fit:cover; }
.article-card .cat{ font-size:11px; font-weight:700; letter-spacing:.05em; text-transform:uppercase; color: var(--green); margin-bottom:8px; display:block; }
.article-card h3{ font-size:17px; margin-bottom:10px; line-height:1.3; }
.article-card p{ font-size:13px; color: rgba(255,255,255,.6); margin-bottom:16px; }

/* ---------- About ---------- */
.about-grid{ display:grid; grid-template-columns: 1fr 1fr; gap:60px; align-items:center; }
.about-copy h2{ font-size:32px; margin-bottom:16px; }
.about-copy .section-sub{ margin-bottom:16px; max-width:none; }
.about-highlight{ font-size:15.5px; color: var(--grey-700); margin-bottom:26px; }
.about-cards{ display:grid; grid-template-columns: repeat(3,1fr); gap:14px; margin-bottom:28px; }
.about-cards .mini-card{
  background:#fff; border:1px solid var(--grey-100); border-radius: var(--radius-md); padding:18px 16px;
  box-shadow: var(--shadow-card);
}
.mini-card .ico-box{
  width:34px; height:34px; border-radius:8px; background:#e6f7ee; color: var(--green);
  display:flex; align-items:center; justify-content:center; margin-bottom:12px; font-size:15px;
}
.mini-card h4{ font-size:13px; text-transform:uppercase; letter-spacing:.02em; margin-bottom:8px; }
.mini-card p{ font-size:12.5px; color: var(--grey-500); line-height:1.45; }
.about-media img{ border-radius: var(--radius-lg); aspect-ratio: 1/0.86; object-fit:cover; }

/* ---------- Quality ---------- */
.quality-grid{ display:grid; grid-template-columns: 1fr 1fr; gap:60px; align-items:center; padding-top:60px; }
.iso-grid{ display:grid; grid-template-columns: 1fr 1fr; gap:16px; margin-top:20px; }
.iso-card{
  background: var(--navy-800); border:1px solid rgba(255,255,255,.08); border-radius: var(--radius-md);
  padding:22px 20px;
}
.iso-card .ico-box{
  width:38px; height:38px; border-radius:50%; border:1.5px solid rgba(255,255,255,.25); color: var(--green);
  display:flex; align-items:center; justify-content:center; margin-bottom:16px; font-size:16px;
}
.iso-card h4{ font-size:14.5px; margin-bottom:8px; }
.iso-card p{ font-size:12.5px; color: rgba(255,255,255,.55); line-height:1.5; }
.quality-right h2{ font-size:30px; margin-bottom:16px; }
.check-list{ margin:22px 0 30px; display:flex; flex-direction:column; gap:12px; }
.check-list li{ display:flex; align-items:center; gap:10px; font-size:14.5px; color: rgba(255,255,255,.85); }
.check-ico{
  width:20px; height:20px; border-radius:50%; background: rgba(22,164,94,.18); color: var(--green);
  display:flex; align-items:center; justify-content:center; font-size:12px; flex-shrink:0;
}

/* ---------- Contact ---------- */
.contact-card{
  background:#fff; border-radius: var(--radius-lg); box-shadow: 0 1px 3px rgba(10,14,19,.06), 0 24px 60px rgba(10,14,19,.08);
  display:grid; grid-template-columns: 1fr 1fr; overflow:hidden; position:relative;
}
.contact-info, .contact-form{ padding:52px 48px; }
.contact-info{ border-right:1px solid var(--grey-100); }
.contact-info h2, .contact-form h2{ font-size:28px; margin-bottom:12px; }
.contact-info .section-sub, .contact-form .section-sub{ margin-bottom:28px; }
.info-list{ display:flex; flex-direction:column; gap:20px; margin-bottom:30px; }
.info-list li{ display:flex; gap:14px; font-size:13.5px; color: var(--grey-700); }
.info-list strong{ display:block; font-size:11.5px; text-transform:uppercase; letter-spacing:.04em; color: var(--ink); margin-bottom:4px; }
.info-list a{ color: var(--green); }
.info-ico{ flex-shrink:0; margin-top:1px; color: var(--green); display:flex; }
.kiwa-label{ font-size:11px; font-weight:700; letter-spacing:.05em; text-transform:uppercase; color: var(--grey-500); margin-bottom:12px; }
.kiwa-badges{ display:flex; gap:10px; }
.kiwa-badge{ width:58px; height:auto; display:block; }

.form-row{ display:grid; grid-template-columns:1fr 1fr; gap:16px; }
.form-field{ margin-bottom:18px; }
.form-field label{ display:block; font-size:12.5px; font-weight:600; margin-bottom:8px; color: var(--grey-700); }
.form-field input, .form-field textarea{
  width:100%; border:1px solid var(--grey-300); border-radius: var(--radius-sm); padding:13px 14px;
  font-family: var(--font); font-size:14px; color: var(--ink); background:#fcfcfd; resize:vertical;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.form-field input:focus, .form-field textarea:focus{
  outline:none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(22,164,94,.15);
}
.form-status{ margin-top:14px; font-size:13px; color: var(--green-dark); min-height:18px; }

/* ---------- Footer ---------- */
.site-footer{ background: var(--navy-900); color: rgba(255,255,255,.75); padding-top:70px; }
.footer-top{ display:grid; grid-template-columns: 1.6fr 1fr 1fr 1fr 1fr; gap:32px; padding-bottom:50px; }
.footer-brand .logo{ margin-bottom:16px; }
.footer-brand p{ font-size:13.5px; line-height:1.6; color: rgba(255,255,255,.5); margin-bottom:16px; max-width:320px; }
.reg{ font-size:12.5px; color: rgba(255,255,255,.45); }
.reg strong{ color: rgba(255,255,255,.7); }
.footer-col h4{ font-size:12px; text-transform:uppercase; letter-spacing:.05em; color:#fff; margin-bottom:18px; }
.footer-col a{ display:block; font-size:13.5px; color: rgba(255,255,255,.55); margin-bottom:12px; }
.footer-col a:hover{ color: var(--green); }
.footer-bottom{
  border-top:1px solid rgba(255,255,255,.08); padding:24px; text-align:center; font-size:12.5px; color: rgba(255,255,255,.45);
}

/* ---------- Back to top ---------- */
.back-to-top{
  position:fixed; bottom:28px; right:28px; width:44px; height:44px; border-radius:50%;
  background: var(--green); color:#fff; border:none; display:flex; align-items:center; justify-content:center;
  cursor:pointer; box-shadow: 0 8px 20px rgba(22,164,94,.35); opacity:0; visibility:hidden; transform: translateY(10px);
  transition: all .25s ease; z-index:90;
}
.back-to-top.visible{ opacity:1; visibility:visible; transform:translateY(0); }
.back-to-top:hover{ background: var(--green-dark); }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1080px){
  .product-grid{ grid-template-columns: repeat(2,1fr); }
  .solution-grid{ grid-template-columns: repeat(2,1fr); }
  .project-grid, .article-grid{ grid-template-columns: repeat(2,1fr); }
  .hero-inner{ grid-template-columns:1fr; }
  .hero-stats{ margin-top:20px; }
}

@media (max-width: 860px){
  .main-nav{ display:none; }
  .hamburger{ display:flex; }
  .header-inner{ padding:14px 16px; gap:10px; }
  .header-actions{ gap:8px; }
  .icon-btn{ display:none; }
  .lang-code{ display:none; }
  .btn-sm{ padding:9px 12px; font-size:11px; }

  .site-header.nav-open .main-nav{
    display:flex; position:absolute; top:100%; left:0; right:0; background: var(--navy-900);
    flex-direction:column; padding:16px 20px 24px; gap:4px; border-top:1px solid rgba(255,255,255,.08);
  }
  .site-header.nav-open .main-nav a{ padding:12px 0; text-transform:none; font-size:15px; }

  .hero h1{ font-size:32px; }
  .hero-stats{ grid-template-columns: 1fr 1fr; }

  .about-grid, .quality-grid{ grid-template-columns:1fr; }
  .about-media{ order:-1; }
  .about-cards{ grid-template-columns:1fr 1fr; }
  .iso-grid{ grid-template-columns:1fr 1fr; }

  .contact-card{ grid-template-columns:1fr; }
  .contact-info{ border-right:none; border-bottom:1px solid var(--grey-100); }
  .contact-info, .contact-form{ padding:36px 26px; }

  .footer-top{ grid-template-columns: 1fr 1fr; }
}

@media (max-width: 560px){
  .container{ padding:0 18px; }
  .section{ padding:60px 0; }
  .product-grid, .solution-grid, .project-grid, .article-grid, .market-grid{ grid-template-columns:1fr; }
  .about-cards, .iso-grid{ grid-template-columns:1fr; }
  .form-row{ grid-template-columns:1fr; }
  .hero-stats{ grid-template-columns:1fr 1fr; }
  .stat{ padding:18px; }
  .section-head h2, .about-copy h2, .quality-right h2{ font-size:26px; }
  .hero h1{ font-size:28px; }
  .footer-top{ grid-template-columns:1fr 1fr; }
}
