/* =========================================================
   NBYOGO — Inner page styles (heritage system)
   Loaded on all static pages except homepage
   ========================================================= */

/* ---------- Page hero (compact) ---------- */
.page-hero {
  position: relative; color: #fff; overflow: hidden;
  background: linear-gradient(90deg, rgba(8,28,51,.96) 0%, rgba(8,28,51,.86) 45%, rgba(8,28,51,.62) 100%),
              url('../img/workshop-grinding.jpg') center 55%/cover no-repeat;
  border-bottom: 4px solid var(--brass);
}
.page-hero .wrap { padding-top: 66px; padding-bottom: 66px; }
.page-hero h1 { color: #fff; font-size: clamp(30px, 4vw, 48px); max-width: 940px; }
.page-hero .lead { color: #d3dee8; }
.page-hero .eyebrow { color: var(--brass); }

/* ---------- Breadcrumb ---------- */
.crumbs { background: #eef2f6; border-bottom: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.crumbs .wrap { padding-top: 12px; padding-bottom: 12px; }
.crumbs a { color: var(--navy); font-weight: 600; }
.crumbs a:hover { color: var(--amber-deep); }
.crumbs .sep { margin: 0 9px; color: #9aabb9; }

/* ---------- Generic content ---------- */
.content-section { padding: 64px 0; }
.article-grid { display: grid; grid-template-columns: 1fr 320px; gap: 52px; align-items: start; }
.prose { font-size: 16px; line-height: 1.85; color: #33404d; }
.prose h2 { font-family: var(--serif); font-size: 28px; margin: 34px 0 14px; }
.prose h3 { font-family: var(--serif); font-size: 21px; margin: 26px 0 10px; }
.prose h4 { font-size: 17px; margin: 20px 0 8px; }
.prose p { margin-bottom: 18px; }
.prose img { border-radius: 8px; margin: 20px 0; border: 1px solid var(--line); }
.prose ul, .prose ol { margin: 0 0 20px; padding-left: 22px; }
.prose li { margin-bottom: 8px; }
.prose a { color: var(--amber-deep); font-weight: 600; text-decoration: underline; }
.prose table { width: 100%; border-collapse: collapse; margin: 18px 0; }
.prose th, .prose td { border: 1px solid var(--line); padding: 10px 14px; text-align: left; }
.prose th { background: var(--bg); color: var(--navy); font-weight: 700; }

/* gallery */
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin: 24px 0; }
.gallery figure { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 10px; }
.gallery img { width: 100%; height: 220px; object-fit: contain; margin: 0; border: 0; }
.gallery--single { grid-template-columns: 1fr; }
.gallery--single figure { display: flex; align-items: center; justify-content: center; padding: 18px; }
.gallery--single img { height: 520px; max-width: 100%; }

/* ---------- Sidebar cards ---------- */
.side-card { background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--brass); border-radius: 8px; padding: 24px; margin-bottom: 22px; }
.side-card h3 { font-size: 18px; margin-bottom: 14px; }
.side-card p, .side-card li { font-size: 14px; color: var(--muted); }
.side-card ul { list-style: none; }
.side-card li { padding: 7px 0 7px 22px; position: relative; border-bottom: 1px solid var(--line); }
.side-card li:last-child { border-bottom: 0; }
.side-card li::before { content: '\2714'; position: absolute; left: 0; color: var(--brass-deep); font-weight: 800; }
.fact-row { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.fact-row:last-child { border-bottom: 0; }
.fact-row span:first-child { color: var(--muted); }
.fact-row span:last-child { font-weight: 700; color: var(--navy); text-align: right; }
.side-cta { background: var(--navy); color: #fff; border: 0; text-align: center; }
.side-cta h3 { color: #fff; }
.side-cta p { color: #c7d3e0; }
.side-cta .btn { width: 100%; }

/* ---------- Related products ---------- */
.related { background: var(--bg); padding: 60px 0; }
.related .rel-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 28px; }
.rel-card { background: #fff; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; transition: .2s; }
.rel-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.rel-card img { width: 100%; height: 190px; object-fit: contain; padding: 14px; }
.rel-card .t { padding: 12px 14px 16px; font-size: 14px; font-weight: 700; color: var(--navy); font-family: var(--serif); }
.rel-card .t a { color: var(--navy); }

/* ---------- Listing grid (categories / news) ---------- */
.list-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 34px; }
.list-card { background: #fff; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; transition: .25s; display: flex; flex-direction: column; }
.list-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.list-card .pic { height: 250px; background: #fff; padding: 18px; display: flex; align-items: center; justify-content: center; border-bottom: 1px solid var(--line); }
.list-card .pic img { height: 100%; width: 100%; object-fit: contain; }
.list-card .body { padding: 18px 20px 22px; flex: 1; display: flex; flex-direction: column; }
.list-card .cat { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--brass-deep); font-weight: 800; }
.list-card h3 { font-family: var(--serif); font-size: 18px; margin: 8px 0; }
.list-card h3 a { color: var(--navy); }
.list-card p { font-size: 14px; color: var(--muted); flex: 1; }
.list-card .date { font-size: 12px; color: var(--muted); }
.list-card .more { font-size: 13px; font-weight: 700; color: var(--amber-deep); margin-top: 12px; }

/* ---------- FAQ block ---------- */
.faq-block { margin-top: 40px; }
.faq-block details { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 18px 22px; margin-bottom: 12px; }
.faq-block summary { cursor: pointer; font-weight: 700; font-family: var(--serif); font-size: 17px; color: var(--navy); list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq-block summary::-webkit-details-marker { display: none; }
.faq-block summary::after { content: '+'; color: var(--brass-deep); font-size: 22px; line-height: 1; }
.faq-block details[open] summary::after { content: '\2212'; }
.faq-block details p { color: var(--muted); font-size: 15px; margin: 14px 0 0; }

/* ---------- Capability feature rows ---------- */
.feature-row { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; padding: 48px 0; border-bottom: 1px solid var(--line); }
.feature-row:last-child { border-bottom: 0; }
.feature-row .pic img { width: 100%; border-radius: 10px; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }
.contact-block { background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--brass); border-radius: 10px; padding: 30px; margin-bottom: 20px; }
.contact-block h2 { font-size: 24px; }
.contact-block .line { display: flex; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.contact-block .line:last-child { border-bottom: 0; }
.contact-block .ico { color: var(--brass-deep); font-size: 20px; width: 26px; flex: none; }

/* ---------- RFQ / quote form ---------- */
.quote-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 48px; align-items: start; }
.quote-form { background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--brass); border-radius: 10px; padding: 32px 34px 36px; }
.quote-form h2 { font-size: 24px; margin-bottom: 4px; }
.quote-form .hint { color: var(--muted); font-size: 14px; margin-bottom: 22px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 13px; font-weight: 700; color: var(--navy); margin-bottom: 7px; letter-spacing: .02em; }
.field label .req { color: #b4482f; }
.field input, .field select, .field textarea {
  width: 100%; border: 1px solid #cfd8e2; border-radius: 6px; background: #fbfcfd;
  padding: 12px 14px; font-size: 15px; color: var(--ink); font-family: inherit; transition: .15s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brass); background: #fff; box-shadow: 0 0 0 3px rgba(245,166,35,.16); }
.field textarea { resize: vertical; min-height: 130px; }
.field .note { font-size: 12px; color: var(--muted); margin-top: 6px; }
.form-submit { display: flex; align-items: center; gap: 16px; margin-top: 8px; }
.form-submit .btn { cursor: pointer; border-width: 2px; }
.form-submit .fine { font-size: 12px; color: var(--muted); }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.quote-aside .side-card p, .quote-aside .side-card li { font-size: 14px; }
.quote-aside .side-card .line { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.quote-aside .side-card .line:last-child { border-bottom: 0; }
.quote-aside .side-card .ico { color: var(--brass-deep); font-size: 18px; width: 22px; flex: none; }
.thanks-box { background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--brass); border-radius: 10px; padding: 46px 40px; text-align: center; max-width: 820px; margin: 0 auto; }
.thanks-box .mark { font-size: 46px; color: var(--brass-deep); line-height: 1; }
.thanks-box h2 { font-size: 30px; margin: 14px 0; }
.thanks-box p { color: var(--muted); font-size: 16px; }

@media (max-width: 1060px) {
  .quote-grid { grid-template-columns: 1fr; gap: 28px; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .article-grid { grid-template-columns: 1fr; }
  .related .rel-grid { grid-template-columns: repeat(2, 1fr); }
  .list-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 700px) {
  .related .rel-grid, .list-grid { grid-template-columns: 1fr; }
  .feature-row, .contact-grid, .quote-grid { grid-template-columns: 1fr; gap: 24px; }
  .quote-form { padding: 24px 20px 28px; }
  .gallery { grid-template-columns: 1fr; }
}
