/*
Theme Name: Industrial B2B
Theme URI: https://example.com/
Author: Generated for COMPANY NAME
Author URI: https://example.com/
Description: A complete, self-contained B2B industrial equipment / foreign-trade theme. Six product categories, industries, services, about, resources and an RFQ contact page. All content is hard-coded in the templates and in the ib2b_settings() array inside functions.php, so the site looks finished the moment the theme is activated, with no page builder required.
Version: 1.0.0
Requires at least: 5.8
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: industrial-b2b
Tags: business, portfolio, custom-menu, custom-logo, featured-images, translation-ready, full-width-template
*/

/* =========================================================
   Industrial B2B — Foreign Trade Site Stylesheet
   Placeholder brand: COMPANY NAME (replace later)
   ========================================================= */

:root {
  --navy: #0d2b45;
  --navy-2: #123a5e;
  --navy-3: #0a2136;
  --ink: #17232e;
  --muted: #55677a;
  --accent: #f2a900;
  --accent-d: #d89200;
  --bg: #ffffff;
  --bg-alt: #f4f6f9;
  --line: #e2e8ef;
  --radius: 10px;
  --shadow: 0 10px 30px rgba(13, 43, 69, .10);
  --shadow-sm: 0 4px 14px rgba(13, 43, 69, .08);
  --maxw: 1200px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--navy-2); text-decoration: none; transition: color .2s; }
a:hover { color: var(--accent-d); }
ul { list-style: none; }

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

/* ---------- Topbar ---------- */
.topbar { background: var(--navy-3); color: #c6d3de; font-size: 13px; }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 38px; flex-wrap: wrap; }
.topbar a { color: #e8eef4; }
.topbar a:hover { color: var(--accent); }
.topbar-left, .topbar-right { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.topbar .sep { opacity: .35; }
.topbar-item { display: inline-flex; align-items: center; gap: 6px; }
.topbar svg { width: 15px; height: 15px; color: var(--accent); flex: none; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 28px; min-height: 78px; }
.brand { display: flex; align-items: center; gap: 12px; flex: none; }
.brand-mark { width: 44px; height: 44px; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong {
  font-size: 19px; letter-spacing: 2.5px; color: var(--navy);
  text-transform: uppercase; font-weight: 800;
}
.brand-text small { font-size: 9.5px; letter-spacing: 1.8px; color: var(--muted); text-transform: uppercase; }

.main-nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.main-nav a {
  padding: 10px 13px; font-size: 15px; font-weight: 600; color: var(--ink);
  border-radius: 6px; position: relative;
}
.main-nav a:hover { color: var(--navy-2); background: var(--bg-alt); }
.main-nav a.is-active { color: var(--navy-2); }
.main-nav a.is-active::after {
  content: ""; position: absolute; left: 13px; right: 13px; bottom: 3px;
  height: 3px; border-radius: 2px; background: var(--accent);
}

.header-cta { flex: none; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; margin-left: auto; }
.nav-toggle span { display: block; width: 24px; height: 2.5px; background: var(--navy); margin: 5px 0; border-radius: 2px; transition: .25s; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 26px; border-radius: 6px; font-weight: 700; font-size: 15px;
  border: 2px solid transparent; cursor: pointer; transition: .2s; line-height: 1.2;
}
.btn-accent { background: var(--accent); color: #241a00; }
.btn-accent:hover { background: var(--accent-d); color: #241a00; }
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-2); color: #fff; }
.btn-outline { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { background: var(--bg-alt); color: var(--navy); }
.btn-ghost { border-color: rgba(255,255,255,.65); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.12); color: #fff; }
.btn-sm { padding: 9px 18px; font-size: 14px; }

/* ---------- Hero ---------- */
.hero { position: relative; color: #fff; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(8,25,42,.92) 0%, rgba(10,33,54,.72) 45%, rgba(10,33,54,.35) 100%);
}
.hero-inner { position: relative; padding: 110px 0 130px; max-width: 760px; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 10px; font-size: 13px; letter-spacing: 2.5px;
  text-transform: uppercase; color: var(--accent); font-weight: 700; margin-bottom: 18px;
}
.hero-eyebrow::before { content: ""; width: 34px; height: 2px; background: var(--accent); }
.hero h1 { font-size: clamp(34px, 5vw, 54px); line-height: 1.12; font-weight: 800; letter-spacing: -.5px; margin-bottom: 20px; }
.hero p.lead { font-size: clamp(16px, 2vw, 19px); color: #d8e3ec; max-width: 620px; margin-bottom: 32px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-stats {
  position: relative; background: var(--navy); color: #fff; border-top: 3px solid var(--accent);
}
.hero-stats-inner { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding: 30px 0; }
.stat b { display: block; font-size: clamp(26px, 3vw, 36px); font-weight: 800; color: var(--accent); line-height: 1.1; }
.stat span { font-size: 13.5px; color: #b9c8d5; letter-spacing: .4px; text-transform: uppercase; }

/* ---------- Page hero (sub pages) ---------- */
.page-hero { position: relative; color: #fff; overflow: hidden; }
.page-hero .hero-bg img { object-position: center 35%; }
.page-hero .hero-bg::after { background: linear-gradient(90deg, rgba(8,25,42,.9), rgba(10,33,54,.55)); }
.page-hero-inner { position: relative; padding: 70px 0 66px; }
.page-hero h1 { font-size: clamp(30px, 4vw, 44px); font-weight: 800; margin-bottom: 10px; }
.page-hero p { color: #d5e0ea; max-width: 720px; font-size: 17px; }
.breadcrumbs { font-size: 13.5px; color: #a9bccb; margin-bottom: 14px; }
.breadcrumbs a { color: #cfdde8; }
.breadcrumbs a:hover { color: var(--accent); }

/* ---------- Sections ---------- */
.section { padding: 84px 0; }
.section-alt { background: var(--bg-alt); }
.section-navy { background: var(--navy); color: #fff; }
.section-navy h2, .section-navy h3 { color: #fff; }
.section-navy p { color: #c3d1dd; }

.section-head { max-width: 760px; margin-bottom: 46px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.eyebrow {
  display: inline-block; font-size: 12.5px; letter-spacing: 2.2px; text-transform: uppercase;
  color: var(--accent-d); font-weight: 800; margin-bottom: 12px;
}
.section-navy .eyebrow { color: var(--accent); }
.section-head h2 { font-size: clamp(26px, 3.4vw, 38px); line-height: 1.2; font-weight: 800; color: var(--navy); letter-spacing: -.3px; }
.section-head p { margin-top: 14px; color: var(--muted); font-size: 17px; }

/* ---------- Card grids ---------- */
.grid { display: grid; gap: 26px; }
.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);
  overflow: hidden; transition: .25s; display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: transparent; }
.card-media { aspect-ratio: 4 / 3; overflow: hidden; background: var(--bg-alt); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.card:hover .card-media img { transform: scale(1.05); }
.card-body { padding: 22px 24px 24px; display: flex; flex-direction: column; flex: 1; }
.card-tag { font-size: 11.5px; letter-spacing: 1.6px; text-transform: uppercase; color: var(--accent-d); font-weight: 800; margin-bottom: 8px; }
.card-body h3 { font-size: 19px; color: var(--navy); margin-bottom: 9px; line-height: 1.3; }
.card-body p { color: var(--muted); font-size: 15px; flex: 1; }
.card-link { margin-top: 16px; font-weight: 700; font-size: 14.5px; color: var(--navy-2); display: inline-flex; align-items: center; gap: 6px; }
.card-link::after { content: "→"; transition: transform .2s; }
.card:hover .card-link::after { transform: translateX(4px); }

/* icon card */
.icon-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 26px; transition: .25s; }
.icon-card:hover { box-shadow: var(--shadow-sm); transform: translateY(-4px); }
.icon-card .ico {
  width: 52px; height: 52px; border-radius: 12px; background: rgba(242,169,0,.13);
  display: flex; align-items: center; justify-content: center; margin-bottom: 18px;
}
.icon-card .ico svg { width: 26px; height: 26px; color: var(--accent-d); }
.icon-card h3 { font-size: 17.5px; color: var(--navy); margin-bottom: 8px; }
.icon-card p { font-size: 14.5px; color: var(--muted); }

/* ---------- Split layout ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split-media { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.split-media img { width: 100%; height: 100%; object-fit: cover; }
.split-body h2 { font-size: clamp(25px, 3vw, 34px); color: var(--navy); margin-bottom: 16px; line-height: 1.25; }
.split-body > p { color: var(--muted); margin-bottom: 18px; }

.check-list li { display: flex; gap: 11px; align-items: flex-start; padding: 8px 0; color: var(--ink); font-size: 15.5px; }
.check-list svg { width: 19px; height: 19px; color: var(--accent); flex: none; margin-top: 3px; }
.check-list b { color: var(--navy); }

/* ---------- Feature band (navy, 4 tiles) ---------- */
.tile {
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius); padding: 30px 26px; transition: .25s; display: block;
}
.tile:hover { background: rgba(255,255,255,.09); transform: translateY(-4px); }
.tile .ico { width: 50px; height: 50px; border-radius: 12px; background: rgba(242,169,0,.16); display: flex; align-items: center; justify-content: center; margin-bottom: 18px; }
.tile .ico svg { width: 25px; height: 25px; color: var(--accent); }
.tile h3 { font-size: 18px; margin-bottom: 8px; }
.tile p { font-size: 14.5px; }

/* ---------- Industries band ---------- */
.band { position: relative; color: #fff; overflow: hidden; }
.band-bg { position: absolute; inset: 0; }
.band-bg img { width: 100%; height: 100%; object-fit: cover; }
.band-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8,25,42,.94) 10%, rgba(10,33,54,.72) 60%, rgba(10,33,54,.45)); }
.band-inner { position: relative; padding: 90px 0; }
.chip-list { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; max-width: 780px; }
.chip {
  padding: 9px 18px; border: 1px solid rgba(255,255,255,.35); border-radius: 999px;
  font-size: 14px; font-weight: 600; color: #eaf1f7; background: rgba(255,255,255,.06); transition: .2s;
}
.chip:hover { background: var(--accent); border-color: var(--accent); color: #241a00; }

/* ---------- Timeline ---------- */
.timeline { position: relative; margin-top: 10px; padding-left: 28px; border-left: 2px solid rgba(255,255,255,.18); }
.timeline-item { position: relative; padding-bottom: 30px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
  content: ""; position: absolute; left: -36px; top: 6px; width: 14px; height: 14px;
  border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(242,169,0,.22);
}
.timeline-item .year { font-size: 13px; letter-spacing: 1.6px; color: var(--accent); font-weight: 800; text-transform: uppercase; }
.timeline-item h3 { font-size: 18px; margin: 4px 0 6px; }
.timeline-item p { font-size: 15px; }

/* ---------- Spec table ---------- */
.spec-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); font-size: 15px; }
.spec-table th, .spec-table td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--line); }
.spec-table thead th { background: var(--navy); color: #fff; font-size: 13.5px; letter-spacing: 1px; text-transform: uppercase; }
.spec-table tbody tr:nth-child(even) { background: var(--bg-alt); }
.spec-table tbody tr:last-child td { border-bottom: 0; }
.spec-table td:first-child { font-weight: 700; color: var(--navy); }

/* ---------- Forms ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 13.5px; font-weight: 700; color: var(--navy); letter-spacing: .3px; }
.field label span { color: #c0392b; }
.field input, .field select, .field textarea {
  padding: 13px 15px; border: 1px solid #cfd8e1; border-radius: 7px; font-size: 15px;
  font-family: inherit; background: #fff; color: var(--ink); transition: .2s; width: 100%;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--navy-2); box-shadow: 0 0 0 3px rgba(18,58,94,.12);
}
.field textarea { min-height: 130px; resize: vertical; }
.form-note { font-size: 13px; color: var(--muted); margin-top: 14px; }
.form-success {
  background: #e8f6ec; border: 1px solid #b7e0c3; color: #1d6b33;
  padding: 14px 18px; border-radius: 8px; margin-bottom: 20px; font-size: 15px;
}

/* ---------- Contact info cards ---------- */
.contact-card { display: flex; gap: 16px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.contact-card .ico { width: 46px; height: 46px; border-radius: 11px; background: rgba(18,58,94,.08); display: flex; align-items: center; justify-content: center; flex: none; }
.contact-card .ico svg { width: 22px; height: 22px; color: var(--navy-2); }
.contact-card h3 { font-size: 16px; color: var(--navy); margin-bottom: 4px; }
.contact-card p, .contact-card a { font-size: 14.5px; color: var(--muted); }

/* ---------- CTA band ---------- */
.cta-band { background: linear-gradient(100deg, var(--navy-3), var(--navy-2)); color: #fff; position: relative; overflow: hidden; }
.cta-band::before {
  content: ""; position: absolute; right: -80px; top: -80px; width: 340px; height: 340px;
  border-radius: 50%; background: rgba(242,169,0,.12);
}
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; padding: 62px 0; position: relative; flex-wrap: wrap; }
.cta-inner h2 { font-size: clamp(24px, 3vw, 34px); margin-bottom: 8px; }
.cta-inner p { color: #c3d1dd; max-width: 620px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-3); color: #a7b8c6; font-size: 14.5px; }
.footer-main { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 44px; padding: 66px 0 50px; }
.site-footer h4 { color: #fff; font-size: 15px; letter-spacing: 1.4px; text-transform: uppercase; margin-bottom: 20px; }
.site-footer ul li { margin-bottom: 11px; }
.site-footer a { color: #a7b8c6; }
.site-footer a:hover { color: var(--accent); }
.footer-brand { display: flex; align-items: center; gap: 11px; margin-bottom: 18px; }
.footer-brand strong { font-size: 17px; letter-spacing: 2.4px; color: #fff; text-transform: uppercase; }
.footer-about p { line-height: 1.75; }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; }
.footer-contact svg { width: 16px; height: 16px; color: var(--accent); flex: none; margin-top: 4px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 20px 0; }
.footer-bottom-inner { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 13.5px; }
.footer-bottom-inner a { color: #8ba0b2; }

/* ---------- News card small ---------- */
.news-meta { font-size: 13px; color: var(--muted); letter-spacing: .4px; margin-bottom: 8px; text-transform: uppercase; }

/* ---------- Misc ---------- */
.mt-40 { margin-top: 40px; }
.text-link { font-weight: 700; color: var(--navy-2); }
.two-col-text { columns: 2; column-gap: 44px; color: var(--muted); }
.two-col-text p { margin-bottom: 14px; break-inside: avoid; }

.badge-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 24px; }
.badge {
  border: 1px solid var(--line); border-radius: 8px; padding: 12px 18px; background: #fff;
  font-size: 13.5px; font-weight: 700; color: var(--navy); display: inline-flex; gap: 9px; align-items: center;
}
.badge svg { width: 18px; height: 18px; color: var(--accent-d); }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-main { grid-template-columns: 1fr 1fr; gap: 36px; }
  .split { grid-template-columns: 1fr; gap: 34px; }
  .two-col-text { columns: 1; }
}
@media (max-width: 860px) {
  .main-nav {
    position: fixed; inset: 78px 0 auto 0; background: #fff; flex-direction: column;
    align-items: stretch; gap: 0; padding: 10px 24px 24px; border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow); transform: translateY(-130%); transition: transform .3s; margin-left: 0;
  }
  .main-nav.open { transform: translateY(0); }
  .main-nav a { padding: 14px 4px; border-bottom: 1px solid var(--line); border-radius: 0; font-size: 16px; }
  .main-nav a.is-active::after { display: none; }
  .nav-toggle { display: block; }
  .header-cta { display: none; }
  .hero-inner { padding: 80px 0 90px; }
  .hero-stats-inner { grid-template-columns: repeat(2, 1fr); }
  .section { padding: 60px 0; }
  .form-grid { grid-template-columns: 1fr; }
  .cta-inner { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 620px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .footer-main { grid-template-columns: 1fr; }
  .topbar-right { display: none; }
  .brand-text small { display: none; }
}
