/* ============================================
   Marine Diesel Parts — Global Stylesheet
   Light maritime theme, responsive, SEO-friendly
   ============================================ */
:root {
  --navy: #0b2545;
  --navy-2: #13315c;
  --blue: #1d6fb8;
  --blue-light: #e8f2fb;
  --accent: #e8a33d;
  --text: #22303e;
  --muted: #5b6b7a;
  --bg: #ffffff;
  --bg-alt: #f4f7fa;
  --border: #dde5ec;
  --radius: 10px;
  --shadow: 0 2px 12px rgba(11, 37, 69, 0.08);
  --max: 1180px;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: "Segoe UI", "Helvetica Neue", Arial, "PingFang SC", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  font-size: 16px;
}
img { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
.container { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* ---------- Header ---------- */
.topbar {
  background: var(--navy);
  color: #cfe0f0;
  font-size: 13px;
  padding: 6px 0;
}
.topbar .container { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.topbar a { color: #fff; }
header.site-header {
  background: #fff;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
}
.nav-wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.logo { display: flex; align-items: center; gap: 10px; padding: 14px 0; }
.logo-mark {
  width: 42px; height: 42px; border-radius: 9px;
  background: linear-gradient(135deg, var(--navy), var(--blue));
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 18px; letter-spacing: 0.5px;
}
.logo-text { font-weight: 800; font-size: 19px; color: var(--navy); line-height: 1.2; }
.logo-text small { display: block; font-weight: 500; font-size: 11px; color: var(--muted); letter-spacing: 1px; text-transform: uppercase; }
nav.main-nav ul { list-style: none; display: flex; gap: 4px; flex-wrap: wrap; }
nav.main-nav a {
  display: block; padding: 10px 14px; color: var(--navy-2);
  font-weight: 600; font-size: 15px; border-radius: 8px;
}
nav.main-nav a:hover, nav.main-nav a.active { background: var(--blue-light); color: var(--blue); text-decoration: none; }
.nav-cta {
  background: var(--accent); color: var(--navy) !important;
  padding: 10px 18px !important; border-radius: 8px; font-weight: 700;
}
.nav-cta:hover { background: #d6942f; }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(rgba(11, 37, 69, 0.82), rgba(19, 49, 92, 0.88)),
    repeating-linear-gradient(90deg, #122b4d 0 60px, #0f2645 60px 120px);
  color: #fff; padding: 84px 0 90px; text-align: center;
}
.hero h1 { font-size: clamp(28px, 4.5vw, 46px); line-height: 1.25; max-width: 900px; margin: 0 auto 18px; }
.hero p { font-size: 18px; color: #cfe0f0; max-width: 760px; margin: 0 auto 32px; }
.btn {
  display: inline-block; padding: 13px 30px; border-radius: 8px;
  font-weight: 700; font-size: 16px;
}
.btn-primary { background: var(--accent); color: var(--navy); }
.btn-primary:hover { background: #d6942f; text-decoration: none; }
.btn-outline { border: 2px solid rgba(255,255,255,0.7); color: #fff; margin-left: 10px; }
.btn-outline:hover { background: rgba(255,255,255,0.12); text-decoration: none; }
.hero-stats { display: flex; justify-content: center; gap: 48px; margin-top: 52px; flex-wrap: wrap; }
.hero-stats div strong { display: block; font-size: 30px; color: var(--accent); }
.hero-stats div span { font-size: 13px; color: #cfe0f0; }

/* ---------- Sections ---------- */
section { padding: 64px 0; }
section.alt { background: var(--bg-alt); }
.sec-head { text-align: center; max-width: 780px; margin: 0 auto 44px; }
.sec-head h2 { font-size: clamp(24px, 3vw, 34px); color: var(--navy); margin-bottom: 10px; }
.sec-head p { color: var(--muted); font-size: 17px; }
.eyebrow {
  display: inline-block; font-size: 12px; font-weight: 800; letter-spacing: 2px;
  text-transform: uppercase; color: var(--blue); margin-bottom: 8px;
}

/* Category cards */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 26px; }
.cat-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.cat-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(11,37,69,0.14); }
.cat-card .cat-body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.cat-card h3 { color: var(--navy); font-size: 20px; margin-bottom: 10px; }
.cat-card p { color: var(--muted); font-size: 15px; flex: 1; }
.cat-card .more { font-weight: 700; margin-top: 16px; }
.cat-icon {
  height: 120px; display: flex; align-items: center; justify-content: center;
  font-size: 52px; color: var(--navy);
  background: linear-gradient(135deg, var(--blue-light), #d7e8f7);
}

/* Brand wall */
.brand-wall { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; }
.brand-chip {
  background: #fff; border: 1px solid var(--border); border-radius: 8px;
  padding: 16px 10px; text-align: center; font-weight: 700; color: var(--navy-2);
  font-size: 14px; letter-spacing: 0.3px;
}
.brand-chip small { display: block; font-weight: 500; color: var(--muted); font-size: 12px; margin-top: 3px; }

/* Feature list */
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 26px; }
.feature { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.feature .f-ico { font-size: 30px; margin-bottom: 10px; }
.feature h3 { font-size: 17px; color: var(--navy); margin-bottom: 8px; }
.feature p { font-size: 14.5px; color: var(--muted); }

/* ---------- Product listing ---------- */
.brand-block { margin-bottom: 52px; }
.brand-block > h2 {
  font-size: 24px; color: var(--navy); border-left: 5px solid var(--accent);
  padding-left: 14px; margin-bottom: 8px;
}
.brand-block > .brand-sub { color: var(--muted); margin-bottom: 22px; padding-left: 19px; font-size: 15px; }
.prod-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 20px; }
.prod-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow); transition: transform 0.15s ease;
  display: flex; flex-direction: column;
}
.prod-card:hover { transform: translateY(-3px); }
/* Placeholder image slot — replace with real <img> (see README) */
.ph {
  aspect-ratio: 4 / 3; display: flex; flex-direction: column; gap: 6px;
  align-items: center; justify-content: center;
  background: repeating-linear-gradient(45deg, #eef3f8 0 14px, #e6edf4 14px 28px);
  color: #8fa5ba; font-size: 13px; font-weight: 600; text-align: center; padding: 10px;
}
.ph .ph-ico { font-size: 34px; opacity: 0.8; }
.prod-card .p-body { padding: 14px 16px 18px; }
.prod-card .p-body h3 { font-size: 15.5px; color: var(--navy); line-height: 1.4; }
.prod-card .p-body .p-meta { font-size: 12.5px; color: var(--muted); margin-top: 6px; }
.inq {
  display: inline-block; margin-top: 12px; font-size: 13.5px; font-weight: 700;
  color: var(--blue);
}
.model-tags { display: flex; flex-wrap: wrap; gap: 8px; padding-left: 19px; margin-bottom: 24px; }
.model-tags span {
  background: var(--blue-light); color: var(--navy-2); border: 1px solid #cfe0f0;
  font-size: 12.5px; padding: 4px 10px; border-radius: 999px; font-weight: 600;
}

/* ---------- CTA band ---------- */
.cta-band { background: var(--navy); color: #fff; text-align: center; padding: 56px 0; }
.cta-band h2 { font-size: clamp(22px, 3vw, 30px); margin-bottom: 12px; }
.cta-band p { color: #cfe0f0; margin-bottom: 26px; }

/* ---------- Breadcrumb ---------- */
.breadcrumb { font-size: 13px; color: var(--muted); padding: 14px 0 0; }
.breadcrumb a { color: var(--muted); }
.breadcrumb span[aria-current] { color: var(--navy-2); font-weight: 600; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { background: var(--navy); color: #fff; padding: 44px 0 48px; }
.page-hero h1 { font-size: clamp(24px, 3.4vw, 36px); margin-bottom: 8px; }
.page-hero p { color: #cfe0f0; max-width: 820px; font-size: 16.5px; }

/* ---------- Article / news ---------- */
.article-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 26px; }
.article-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.article-card .a-body { padding: 22px; }
.article-card h3 { font-size: 17.5px; color: var(--navy); margin-bottom: 8px; line-height: 1.45; }
.article-card p { font-size: 14.5px; color: var(--muted); }
.article-card .a-date { font-size: 12.5px; color: var(--blue); font-weight: 700; letter-spacing: 0.5px; text-transform: uppercase; margin-bottom: 8px; }
.prose { max-width: 820px; margin: 0 auto; }
.prose h2 { color: var(--navy); font-size: 24px; margin: 34px 0 12px; }
.prose h3 { color: var(--navy-2); font-size: 19px; margin: 26px 0 10px; }
.prose p, .prose li { color: var(--text); font-size: 16px; }
.prose ul { padding-left: 22px; margin: 12px 0; }
.prose table { width: 100%; border-collapse: collapse; margin: 18px 0; font-size: 14.5px; }
.prose th, .prose td { border: 1px solid var(--border); padding: 9px 12px; text-align: left; }
.prose th { background: var(--bg-alt); color: var(--navy); }

/* ---------- Contact form ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 40px; }
@media (max-width: 820px) { .contact-grid { grid-template-columns: 1fr; } }
.info-item { margin-bottom: 18px; }
.info-item strong { display: block; color: var(--navy); font-size: 14px; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 3px; }
form.contact-form { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }
form label { display: block; font-size: 13.5px; font-weight: 700; color: var(--navy-2); margin: 14px 0 5px; }
form input, form textarea, form select {
  width: 100%; padding: 11px 12px; border: 1px solid var(--border); border-radius: 8px;
  font-size: 15px; font-family: inherit; background: #fbfdff;
}
form input:focus, form textarea:focus { outline: 2px solid var(--blue); border-color: var(--blue); }

/* ---------- Footer ---------- */
footer.site-footer { background: var(--navy); color: #b9cbdd; padding: 56px 0 0; font-size: 14.5px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 36px; padding-bottom: 40px; }
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
footer h4 { color: #fff; font-size: 15px; margin-bottom: 14px; letter-spacing: 0.5px; }
footer ul { list-style: none; }
footer li { margin-bottom: 8px; }
footer a { color: #b9cbdd; }
footer a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.12); padding: 18px 0; font-size: 13px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

/* ---------- Misc ---------- */
.check-list { list-style: none; max-width: 760px; margin: 0 auto; }
.check-list li { padding-left: 30px; position: relative; margin-bottom: 12px; color: var(--text); }
.check-list li::before { content: "✔"; position: absolute; left: 0; color: var(--blue); font-weight: 800; }
.note { background: #fff8ea; border: 1px solid #f0dfb6; border-radius: 8px; padding: 14px 18px; font-size: 14px; color: #7a5c14; margin: 18px 0; }
@media (max-width: 720px) {
  .nav-wrap { flex-wrap: wrap; }
  .hero { padding: 60px 0; }
  .hero-stats { gap: 28px; }
}
