:root {
  --bg: #ffffff;
  --bg-soft: #f5f7fa;
  --fg: #1c2733;
  --fg-soft: #51606e;
  --accent: #0f4c81;
  --accent-dark: #0a3459;
  --border: #e2e8f0;
  --link: #1559a8;
  --max: 1180px;
  --max-header: 1280px;
  --radius: 10px;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--fg);
  background: var(--bg);
  line-height: 1.65;
  font-size: 17px;
}

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

a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(160%) blur(8px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 64px;
  padding: 8px 0;
}
/* Let the header span a little wider than the content column so the
   9-item menu stays on one row at desktop widths without crowding. */
.site-header .container { max-width: min(var(--max-header), 100%); }
.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 700;
  color: var(--accent);
  font-size: 0.92rem;
  letter-spacing: -0.01em;
  line-height: 1.2;
  flex: 0 1 auto;
  min-width: 0;
  max-width: 360px;
  white-space: normal;
}
.brand-mark { font-size: 1.25rem; line-height: 1; flex: 0 0 auto; }
.brand-text { min-width: 0; }
.site-nav {
  display: flex;
  gap: 2px;
  margin-left: auto;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.site-nav a {
  color: var(--fg-soft);
  font-size: 0.88rem;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: 7px;
  white-space: nowrap;
}
.site-nav a:hover { background: var(--bg-soft); color: var(--accent); text-decoration: none; }
/* B2B "Request Quote" CTA — sits at the right end of the nav, filled with the
   brand accent so it reads as a primary action without disturbing the text menu. */
.site-nav a.cta-button {
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: 7px;
  box-shadow: 0 1px 2px rgba(15, 76, 129, 0.25);
}
.site-nav a.cta-button:hover {
  background: var(--accent-dark);
  color: #fff;
  text-decoration: none;
}
.nav-toggle, .nav-toggle-label { display: none; }

/* ---------- Main ---------- */
main.container { padding-top: 34px; padding-bottom: 56px; }

/* ---------- Breadcrumb ---------- */
.breadcrumb { font-size: 0.86rem; color: var(--fg-soft); margin-bottom: 18px; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0; }
.breadcrumb li::after { content: "/"; margin-left: 6px; color: var(--border); }
.breadcrumb li:last-child::after { content: ""; }
.breadcrumb ol { align-items: center; }

/* ---------- Page header ---------- */
.page-header { margin-bottom: 22px; border-bottom: 1px solid var(--border); padding-bottom: 16px; }
.page-header h1 { font-size: 2.05rem; line-height: 1.2; margin: 0 0 10px; color: var(--accent-dark); }
.lead { font-size: 1.12rem; color: var(--fg-soft); margin: 0; }
.page-meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 0; }
.meta-pill {
  font-size: 0.78rem;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  color: var(--fg-soft);
  padding: 3px 10px;
  border-radius: 999px;
}
.meta-pill a { color: var(--fg-soft); }

/* ---------- Prose ---------- */
.prose { max-width: 740px; margin: 0 auto; line-height: 1.72; }
.prose h2 {
  font-size: 1.5rem;
  margin: 2.5rem 0 0.8rem;
  padding-top: 0.6rem;
  color: var(--accent-dark);
  border-top: 1px solid var(--border);
}
.prose h3 { font-size: 1.2rem; margin: 1.9rem 0 0.6rem; color: var(--fg); }
.prose p { margin: 1rem 0; }
.prose ul, .prose ol { padding-left: 1.5rem; }
.prose li { margin: 0.42rem 0; }

.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.2rem 0;
  font-size: 0.95rem;
}
.prose th, .prose td {
  border: 1px solid var(--border);
  padding: 8px 11px;
  text-align: left;
  vertical-align: top;
}
.prose thead th { background: var(--bg-soft); color: var(--accent-dark); }
.prose tbody tr:nth-child(even) { background: #fafbfc; }

.prose code {
  font-family: var(--mono);
  font-size: 0.88em;
  background: var(--bg-soft);
  padding: 1px 5px;
  border-radius: 4px;
}
.prose pre {
  background: #0f1b2d;
  color: #e6edf3;
  padding: 14px 16px;
  border-radius: var(--radius);
  overflow-x: auto;
}
.prose pre code { background: none; color: inherit; padding: 0; }
.prose blockquote {
  margin: 1.1rem 0;
  padding: 0.4rem 1rem;
  border-left: 4px solid var(--accent);
  background: var(--bg-soft);
  color: var(--fg-soft);
}

/* ---------- Cards ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  margin-top: 24px;
}
.card {
  display: block;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
  background: var(--bg);
  transition: border-color .15s, box-shadow .15s, transform .15s;
  color: var(--fg);
}
.card:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 16px rgba(15, 76, 129, 0.10);
  transform: translateY(-2px);
  text-decoration: none;
}
.card h3 { margin: 0 0 6px; font-size: 1.08rem; color: var(--accent-dark); }
.card p { margin: 0; font-size: 0.92rem; color: var(--fg-soft); }
.card-meta {
  display: inline-block;
  margin-top: 10px;
  font-size: 0.76rem;
  color: var(--fg-soft);
}

/* ---------- Contact / Quote form ---------- */
.quote-form { display: grid; gap: 14px; max-width: 560px; margin: 1.5rem 0; }
.quote-form div { display: grid; gap: 5px; }
.quote-form label { font-weight: 600; font-size: 0.92rem; color: var(--fg); }
.quote-form input, .quote-form select, .quote-form textarea {
  width: 100%;
  font: inherit;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
  color: var(--fg);
}
.quote-form input:focus, .quote-form select:focus, .quote-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(15, 76, 129, 0.12);
}
.quote-form textarea { min-height: 130px; resize: vertical; }
.quote-form .submit-btn {
  justify-self: start;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font: inherit;
  border: none;
  padding: 11px 22px;
  border-radius: 8px;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(15, 76, 129, 0.25);
}
.quote-form .submit-btn:hover { background: var(--accent-dark); }

/* ---------- RFQ success panel ---------- */
.rfq-success {
  max-width: 560px;
  margin: 1.5rem 0;
  padding: 1.25rem 1.5rem;
  border: 1px solid var(--accent);
  border-left: 4px solid var(--accent);
  border-radius: 10px;
  background: var(--bg-soft);
}
.rfq-success h2 { margin: 0 0 0.35rem; font-size: 1.25rem; color: var(--accent-dark); }
.rfq-success p { margin: 0; color: var(--fg-soft); }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg-soft); border-top: 1px solid var(--border); margin-top: 40px; }
.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 26px;
  padding: 34px 20px 10px;
}
.footer-col h4 { margin: 0 0 10px; font-size: 0.95rem; color: var(--accent-dark); }
.footer-col p { font-size: 0.9rem; color: var(--fg-soft); }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin: 5px 0; }
.footer-col a { font-size: 0.9rem; }
.footer-bottom { padding: 12px 20px 26px; font-size: 0.82rem; color: var(--fg-soft); }

.page-footer { margin-top: 34px; padding-top: 16px; border-top: 1px solid var(--border); }
.back-link { font-weight: 600; }

/* ---------- Responsive ---------- */
/* Tablet: tighten nav spacing so the 9 items wrap gracefully instead of crowding. */
@media (max-width: 1024px) {
  .site-nav a { padding: 7px 10px; font-size: 0.85rem; }
}

@media (max-width: 760px) {
  body { font-size: 16px; }
  .header-inner { gap: 12px; }
  .brand { font-size: 0.9rem; max-width: 70%; }
  .nav-toggle-label { display: inline-block; cursor: pointer; }
  .nav-toggle-label span, .nav-toggle-label span::before, .nav-toggle-label span::after {
    display: block; width: 22px; height: 2px; background: var(--fg); position: relative;
  }
  .nav-toggle-label span::before { content: ""; position: absolute; top: -6px; }
  .nav-toggle-label span::after { content: ""; position: absolute; top: 6px; }
  .site-nav {
    display: none;
    position: absolute;
    top: 100%; right: 0; left: 0;
    background: #fff;
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 8px 16px;
  }
  .site-nav a { white-space: normal; }
  /* CTA opens inside the hamburger dropdown on mobile — full width, no overlap. */
  .site-nav a.cta-button { display: block; text-align: center; margin-top: 6px; }
  .nav-toggle:checked ~ .site-nav { display: flex; }
  .footer-inner { grid-template-columns: 1fr; }
}
