/*
Theme Name: Nordun
Theme URI: https://www.nordunpowdercoating.com
Author: Nordun
Description: Lightweight B2B theme for powder coating equipment and replacement parts.
Version: 1.0
Text Domain: nordun
*/

/* ---------- reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
:root{
  --navy:#0d2136; --navy-2:#14304d; --steel:#4a6076; --line:#dfe6ed;
  --ink:#1c2530; --muted:#5b6b7c; --bg:#ffffff; --soft:#f5f7fa;
  --accent:#e2542a; --accent-d:#c8461f; --radius:10px;
}
html{ -webkit-text-size-adjust:100%; }
body{
  margin:0; font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;
  font-size:16px; line-height:1.7; color:var(--ink); background:var(--bg);
}
img{ max-width:100%; height:auto; display:block; }
a{ color:var(--navy-2); text-decoration:none; }
a:hover{ color:var(--accent); }
h1,h2,h3,h4{ margin:0 0 .6em; line-height:1.25; color:var(--navy); font-weight:700; letter-spacing:-.01em; }
h1{ font-size:2rem; } h2{ font-size:1.5rem; } h3{ font-size:1.15rem; }
p{ margin:0 0 1em; }
ul,ol{ margin:0 0 1em 1.2em; }
table{ border-collapse:collapse; width:100%; margin:1.2em 0; font-size:.95rem; }
th,td{ border:1px solid var(--line); padding:10px 12px; text-align:left; vertical-align:top; }
th{ background:var(--soft); font-weight:600; }
.wrap{ width:min(1180px,92%); margin:0 auto; }
.btn{
  display:inline-flex; align-items:center; gap:8px; padding:12px 22px; border-radius:6px;
  background:var(--accent); color:#fff !important; font-weight:600; font-size:.95rem;
  transition:.2s; border:0; cursor:pointer;
}
.btn:hover{ background:var(--accent-d); transform:translateY(-1px); }
.btn-ghost{ background:transparent; color:var(--navy) !important; border:1px solid var(--line); }
.btn-ghost:hover{ border-color:var(--navy); background:#fff; }

/* ---------- header ---------- */
.site-header{ position:sticky; top:0; z-index:50; background:#fff; border-bottom:1px solid var(--line); }
.header-inner{ display:flex; align-items:center; gap:20px; height:76px; }
.logo{ display:flex; align-items:center; gap:10px; font-weight:800; color:var(--navy); font-size:1.25rem; letter-spacing:.02em; }
.logo-mark{ width:34px; height:34px; border-radius:8px; background:linear-gradient(135deg,var(--navy),var(--steel)); color:#fff; display:grid; place-items:center; font-size:.9rem; font-weight:800; }
.logo small{ display:block; font-weight:500; font-size:.64rem; color:var(--muted); letter-spacing:.1em; text-transform:uppercase; white-space:nowrap; line-height:1.4; }
.nav{ margin-left:auto; display:flex; gap:20px; align-items:center; white-space:nowrap; }
.nav a{ font-size:.95rem; font-weight:500; color:var(--ink); padding:6px 0; border-bottom:2px solid transparent; }
.nav a:hover,.nav a.is-active{ color:var(--navy); border-color:var(--accent); }
.nav-cta{ margin-left:8px; padding:10px 18px; font-size:.9rem; }
.header-contact{ display:flex; flex-direction:column; font-size:.75rem; color:var(--muted); line-height:1.35; white-space:nowrap; }
.header-contact b a{ font-size:.82rem; }
.header-contact b{ font-size:.9rem; color:var(--navy); }
@media(max-width:960px){
  .nav{ display:none; }
  .header-contact{ margin-left:auto; }
}

/* ---------- hero ---------- */
.hero{ position:relative; background:linear-gradient(120deg,#0b1b2c 0%,#142f49 55%,#20445f 100%); color:#fff; overflow:hidden; }
.hero-grid{ display:grid; grid-template-columns:1.05fr .95fr; gap:48px; align-items:center; padding:76px 0; }
.hero h1{ color:#fff; font-size:2.6rem; line-height:1.15; margin-bottom:18px; }
.hero p{ color:#cfdae6; font-size:1.05rem; max-width:34em; }
.hero-media{ border-radius:14px; overflow:hidden; box-shadow:0 24px 60px rgba(0,0,0,.35); }
.hero-media img{ width:100%; aspect-ratio:4/3; object-fit:cover; }
.kicker{ display:inline-block; font-size:.75rem; letter-spacing:.18em; text-transform:uppercase; color:#9fb6cc; margin-bottom:14px; }
.hero-stats{ display:flex; gap:32px; margin-top:30px; flex-wrap:wrap; }
.hero-stats div b{ display:block; font-size:1.4rem; color:#fff; }
.hero-stats div span{ font-size:.8rem; color:#a9bccd; }
@media(max-width:900px){ .hero-grid{ grid-template-columns:1fr; padding:48px 0; } .hero h1{ font-size:2rem; } }

/* ---------- sections ---------- */
.section{ padding:64px 0; }
.section.soft{ background:var(--soft); }
.sec-head{ display:flex; align-items:flex-end; justify-content:space-between; gap:20px; margin-bottom:32px; }
.sec-head h2{ margin:0; font-size:1.7rem; }
.sec-head p{ margin:0; color:var(--muted); max-width:46em; }
.sec-head a{ font-size:.9rem; font-weight:600; white-space:nowrap; }

/* category cards */
.cat-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:20px; }
.cat-card{ position:relative; border:1px solid var(--line); border-radius:var(--radius); overflow:hidden; background:#fff; transition:.25s; }
.cat-card:hover{ box-shadow:0 14px 34px rgba(15,35,55,.12); transform:translateY(-3px); }
.cat-card img{ aspect-ratio:4/3; object-fit:cover; width:100%; }
.cat-card .body{ padding:18px 18px 22px; }
.cat-card h3{ margin:0 0 6px; font-size:1.05rem; }
.cat-card p{ margin:0; color:var(--muted); font-size:.88rem; }
@media(max-width:980px){ .cat-grid{ grid-template-columns:repeat(2,1fr); } }

/* product cards */
.prod-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:22px; }
.prod-card{ border:1px solid var(--line); border-radius:var(--radius); overflow:hidden; background:#fff; display:flex; flex-direction:column; transition:.2s; }
.prod-card:hover{ box-shadow:0 12px 30px rgba(15,35,55,.1); }
.prod-card .thumb{ background:#fff; display:grid; place-items:center; aspect-ratio:1/1; padding:14px; border-bottom:1px solid var(--line); }
.prod-card .thumb img{ max-height:100%; object-fit:contain; }
.prod-card .body{ padding:14px 16px 18px; flex:1; display:flex; flex-direction:column; gap:6px; }
.prod-card h3{ font-size:.98rem; margin:0; line-height:1.35; }
.prod-card .cat{ font-size:.72rem; text-transform:uppercase; letter-spacing:.1em; color:var(--accent); }
.prod-card .more{ margin-top:auto; font-size:.85rem; font-weight:600; color:var(--navy); }
@media(max-width:1100px){ .prod-grid{ grid-template-columns:repeat(3,1fr); } }
@media(max-width:760px){ .prod-grid{ grid-template-columns:repeat(2,1fr); } }

/* trust strip */
.trust{ display:grid; grid-template-columns:repeat(3,1fr); gap:28px; }
.trust-item{ background:#fff; border:1px solid var(--line); border-radius:var(--radius); padding:24px; }
.trust-item b{ display:block; color:var(--navy); margin-bottom:6px; font-size:1.02rem; }
.trust-item p{ margin:0; color:var(--muted); font-size:.9rem; }
@media(max-width:860px){ .trust{ grid-template-columns:1fr; } }

/* ---------- page / article ---------- */
.page-hero{ background:var(--navy); color:#fff; padding:46px 0 40px; }
.page-hero h1{ color:#fff; margin:0 0 10px; font-size:2rem; }
.page-hero .crumbs{ font-size:.8rem; color:#9db2c7; }
.page-hero .crumbs a{ color:#cfdae6; }
.content-area{ padding:52px 0 64px; }
.layout{ display:grid; grid-template-columns:minmax(0,1fr) 300px; gap:52px; align-items:start; }
@media(max-width:1000px){ .layout{ grid-template-columns:1fr; } }
.entry{ max-width:820px; }
.entry img{ border-radius:6px; margin:18px 0; max-width:100%; height:auto; }
.single-product .entry p > img{ max-width:560px; }
.entry h2{ margin-top:1.6em; }
.entry h3{ margin-top:1.3em; }
.entry table{ font-size:.92rem; }
@media(max-width:700px){ .entry table{ display:block; overflow-x:auto; white-space:nowrap; } }
.entry table tr:nth-child(even) td{ background:#fcfdfe; }

/* sidebar */
.sidebar{ position:sticky; top:92px; display:flex; flex-direction:column; gap:22px; }
.side-box{ border:1px solid var(--line); border-radius:var(--radius); padding:22px; background:#fff; }
.side-box h4{ margin:0 0 14px; font-size:.95rem; text-transform:uppercase; letter-spacing:.08em; color:var(--steel); }
.side-box ul{ list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:10px; }
.side-box li a{ font-size:.9rem; color:var(--ink); }
.side-cta{ background:var(--navy); color:#fff; }
.side-cta h4{ color:#9db2c7; }
.side-cta p{ color:#cfdae6; font-size:.9rem; }
@media(max-width:1000px){ .sidebar{ position:static; } }

/* product single */
.product-head{ display:grid; grid-template-columns:1fr 1fr; gap:48px; align-items:start; padding:48px 0 8px; }
.gallery-main{ border:1px solid var(--line); border-radius:var(--radius); padding:20px; background:#fff; }
.gallery-main img{ width:100%; object-fit:contain; max-height:520px; }
.thumbs{ display:flex; gap:10px; margin-top:12px; flex-wrap:wrap; }
.thumbs img{ width:74px; height:74px; object-fit:cover; border:1px solid var(--line); border-radius:6px; cursor:pointer; opacity:.75; }
.thumbs img:hover{ opacity:1; border-color:var(--navy); }
.product-intro .cat{ font-size:.72rem; letter-spacing:.12em; text-transform:uppercase; color:var(--accent); display:block; margin-bottom:10px; }
.product-intro h1{ font-size:1.9rem; margin-bottom:14px; }
.product-actions{ display:flex; gap:12px; margin:22px 0; flex-wrap:wrap; }
.product-meta{ border-top:1px solid var(--line); margin-top:18px; padding-top:18px; font-size:.88rem; color:var(--muted); }
@media(max-width:900px){ .product-head{ grid-template-columns:1fr; gap:24px; } }

/* inquiry form */
.inquiry{ border:1px solid var(--line); border-radius:var(--radius); background:var(--soft); padding:28px; margin-top:36px; }
.inquiry h3{ margin:0 0 6px; }
.inquiry p.note{ font-size:.85rem; color:var(--muted); margin-bottom:18px; }
.form-grid{ display:grid; grid-template-columns:1fr 1fr; gap:14px; }
.form-grid .full{ grid-column:1/-1; }
.field label{ display:block; font-size:.8rem; font-weight:600; color:var(--steel); margin-bottom:6px; text-transform:uppercase; letter-spacing:.06em; }
.field input,.field textarea,.field select{
  width:100%; padding:11px 13px; border:1px solid var(--line); border-radius:6px; font:inherit; background:#fff; color:var(--ink);
}
.field textarea{ min-height:110px; resize:vertical; }
.field input:focus,.field textarea:focus{ outline:2px solid rgba(226,84,42,.25); border-color:var(--accent); }
.form-foot{ display:flex; align-items:center; justify-content:space-between; gap:16px; margin-top:16px; flex-wrap:wrap; }
.form-foot small{ color:var(--muted); font-size:.78rem; max-width:34em; }
.notice{ padding:12px 16px; border-radius:6px; background:#e8f6ec; border:1px solid #bfe3c9; color:#1d6b38; margin-bottom:18px; }
@media(max-width:700px){ .form-grid{ grid-template-columns:1fr; } }

/* posts list */
.post-list{ display:flex; flex-direction:column; gap:0; }
.post-row{ display:grid; grid-template-columns:180px 1fr; gap:24px; padding:26px 0; border-bottom:1px solid var(--line); }
.post-row img{ border-radius:8px; aspect-ratio:4/3; object-fit:cover; width:100%; }
.post-row .date{ font-size:.78rem; color:var(--muted); text-transform:uppercase; letter-spacing:.08em; }
.post-row h3{ margin:6px 0 8px; font-size:1.1rem; }
.post-row p{ margin:0; color:var(--muted); font-size:.9rem; }
@media(max-width:700px){ .post-row{ grid-template-columns:1fr; } }

/* cta band */
.cta-band{ background:linear-gradient(120deg,#10263c,#1d4463); color:#fff; padding:56px 0; }
.cta-band .wrap{ display:flex; align-items:center; justify-content:space-between; gap:32px; flex-wrap:wrap; }
.cta-band h2{ color:#fff; margin:0 0 8px; }
.cta-band p{ color:#cfdae6; margin:0; }

/* footer */
.site-footer{ background:#0a1a2a; color:#a9bccd; padding:56px 0 26px; font-size:.9rem; }
.footer-grid{ display:grid; grid-template-columns:1.4fr .8fr .8fr 1fr; gap:36px; }
.site-footer h4{ color:#fff; font-size:.95rem; margin-bottom:14px; }
.site-footer a{ color:#a9bccd; }
.site-footer a:hover{ color:#fff; }
.site-footer ul{ list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:8px; }
.footer-bottom{ border-top:1px solid rgba(255,255,255,.1); margin-top:40px; padding-top:18px; display:flex; justify-content:space-between; gap:16px; font-size:.8rem; color:#7f94a8; flex-wrap:wrap; }
@media(max-width:900px){ .footer-grid{ grid-template-columns:1fr 1fr; } }

/* misc */
.pagination{ display:flex; gap:8px; margin-top:28px; }
.pagination a,.pagination span{ padding:8px 14px; border:1px solid var(--line); border-radius:6px; font-size:.9rem; }
.prose-narrow{ max-width:760px; }
.eyebrow{ font-size:.72rem; letter-spacing:.16em; text-transform:uppercase; color:var(--accent); font-weight:700; }
