/* /exothermic-welding.html — dedicated layout (resources/views/pages/exothermic-welding.php)
   Obsidian & Copper: red #e5343b / lime #a6cf3f / ink, Fraunces upright headings, compact scale. */

.eg-page main { --eg-gap: 56px; }
.eg-band { position: relative; padding: 88px 0; background: #fff; overflow: hidden; }
.eg-band--paper { background: var(--nx-paper); }
.eg-band > .nx-wrap { position: relative; z-index: 1; }
.eg-band p { margin: 0 0 14px; color: var(--nx-muted); font-size: 15px; line-height: 1.8; }
.eg-band p:last-child { margin-bottom: 0; }
.eg-band a { color: var(--nx-copper-3); text-decoration: underline; text-underline-offset: 3px; }
.eg-band strong { color: var(--nx-text); font-weight: 600; }

html body.nx-ui main .eg-h2 { --h-ff: var(--nx-serif); --h-fs: clamp(24px, 2.2vw, 31px); --h-fw: 500; --h-lh: 1.2; margin: 0 0 14px; color: var(--nx-ink); font-style: normal; }
html body.nx-ui main .eg-h3 { --h-ff: var(--nx-serif); --h-fs: 17.5px; --h-fw: 500; --h-lh: 1.3; margin: 0 0 10px; color: var(--nx-ink); font-style: normal; }
.eg-h2::after { content: ""; display: block; width: 46px; height: 3px; margin-top: 14px; border-radius: 3px; background: linear-gradient(90deg, var(--nx-copper) 0 70%, var(--nx-green) 70% 100%); }
.eg-head { max-width: 760px; margin-bottom: 36px; }
.eg-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.eg-head--center .eg-h2::after { margin-left: auto; margin-right: auto; }

/* icon chip */
.eg-icon { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; color: var(--nx-copper-3); background: rgba(229, 52, 59, .08); border: 1px solid rgba(229, 52, 59, .16); transition: background .4s var(--nx-ease), color .4s var(--nx-ease), transform .4s var(--nx-ease); }
.eg-icon svg { width: 22px; height: 22px; }
.eg-icon--dark { color: var(--nx-green); background: rgba(166, 207, 63, .1); border-color: rgba(166, 207, 63, .22); }
.eg-check { flex: none; display: grid; place-items: center; width: 20px; height: 20px; margin-top: 3px; border-radius: 50%; color: #fff; background: var(--nx-copper-grad); }
.eg-check svg { width: 12px; height: 12px; stroke-width: 2.6; }

/* corner ticks on framed media */
.eg-tick { position: absolute; z-index: 2; width: 26px; height: 26px; border: 2px solid var(--nx-copper); pointer-events: none; }
.eg-tick--tl { top: -10px; left: -10px; border-right: 0; border-bottom: 0; border-radius: 6px 0 0 0; }
.eg-tick--br { right: -10px; bottom: -10px; border-left: 0; border-top: 0; border-radius: 0 0 6px 0; border-color: var(--nx-green); }

/* ---------- Intro ---------- */
.eg-intro-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: var(--eg-gap); align-items: center; }
.eg-intro-copy { position: relative; padding-left: 34px; }
.eg-mark { position: absolute; left: 0; top: 6px; bottom: 6px; width: 5px; display: grid; grid-template-rows: 62fr 38fr; gap: 6px; }
.eg-mark i { border-radius: 5px; background: var(--nx-copper); }
.eg-mark i + i { background: var(--nx-green); }
.eg-band .eg-lead { margin-bottom: 18px; font-size: clamp(17px, 1.35vw, 20px); line-height: 1.65; color: var(--nx-text); }
.eg-intro-media { position: relative; margin: 0; }
.eg-intro-media img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 20px; box-shadow: 0 40px 70px -46px rgba(11, 12, 15, .6); }
.eg-flame { position: absolute; left: -22px; bottom: 28px; display: grid; place-items: center; width: 58px; height: 58px; border-radius: 16px; color: #fff; background: var(--nx-copper-grad); box-shadow: 0 18px 34px -16px rgba(196, 31, 39, .7); }
.eg-flame svg { width: 28px; height: 28px; }

/* ---------- What is ---------- */
.eg-what-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: var(--eg-gap); align-items: start; }
.eg-what-def { position: sticky; top: 130px; }
.eg-band .eg-def { font-size: 16.5px; line-height: 1.8; color: var(--nx-text); }
.eg-feats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.eg-feat { display: flex; gap: 14px; padding: 20px; background: #fff; border: 1px solid var(--nx-line); border-radius: 18px; transition: transform .45s var(--nx-ease), box-shadow .45s var(--nx-ease), border-color .45s var(--nx-ease); }
.eg-feat:hover { transform: translateY(-4px); border-color: rgba(229, 52, 59, .3); box-shadow: 0 28px 50px -38px rgba(11, 12, 15, .45); }
.eg-feat:hover .eg-icon { color: #fff; background: var(--nx-copper-grad); }
.eg-feat strong, .eg-apps-list strong, .eg-kit-list strong, .eg-steps strong { display: block; margin-bottom: 3px; font-size: 15px; color: var(--nx-ink); }
.eg-feat div > span, .eg-apps-list div > span, .eg-kit-list div > span, .eg-steps div > span { display: block; font-size: 14.5px; line-height: 1.65; color: var(--nx-muted); }

/* ---------- Dark bands ---------- */
.eg-dark { background: radial-gradient(90% 120% at 100% 0%, rgba(229, 52, 59, .22), transparent 55%), radial-gradient(70% 90% at 0% 100%, rgba(166, 207, 63, .08), transparent 60%), var(--nx-ink); }
.eg-dark .nx-tex { opacity: .5; }
html body.nx-ui main .eg-dark :is(.eg-h2, .eg-h3) { color: #fff; }
.eg-dark .eg-h2::after { background: linear-gradient(90deg, var(--nx-green) 0 70%, var(--nx-copper) 70% 100%); }
.eg-dark p { color: var(--nx-muted-d); }
.eg-dark strong { color: #fff; }

.eg-why-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; counter-reset: eg; }
.eg-why-list li { position: relative; display: grid; align-content: start; gap: 8px; padding: 26px 22px 24px; border: 1px solid var(--nx-line-d); border-radius: 18px; background: rgba(255, 255, 255, .03); counter-increment: eg; transition: transform .45s var(--nx-ease), border-color .45s var(--nx-ease), background .45s var(--nx-ease); }
.eg-why-list li::after { content: counter(eg); position: absolute; right: 18px; top: 14px; font: 500 34px/1 var(--nx-serif); color: rgba(255, 255, 255, .08); }
.eg-why-list li:hover { transform: translateY(-4px); background: rgba(255, 255, 255, .06); border-color: rgba(166, 207, 63, .35); }
.eg-why-list .eg-icon { margin-bottom: 6px; }
.eg-why-list strong { font-size: 15.5px; line-height: 1.35; }
.eg-why-list li > span:last-child { font-size: 14px; line-height: 1.65; color: var(--nx-muted-d); }

/* ---------- Process ---------- */
.eg-process-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: var(--eg-gap); align-items: start; }
.eg-steps { list-style: none; margin: 18px 0 0; padding: 0; counter-reset: st; }
.eg-steps li { position: relative; display: flex; gap: 18px; padding: 0 0 26px 0; counter-increment: st; }
.eg-steps li:last-child { padding-bottom: 0; }
.eg-steps li::before { content: ""; position: absolute; left: 19px; top: 40px; bottom: 0; width: 2px; background: linear-gradient(var(--nx-sand), var(--nx-sand)); }
.eg-steps li:last-child::before { display: none; }
.eg-step-dot { flex: none; position: relative; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: #fff; border: 1.5px solid rgba(229, 52, 59, .4); }
.eg-step-dot::after { content: counter(st); font: 600 13px/1 var(--nx-mono); color: var(--nx-copper-3); }
.eg-steps li.is-hot .eg-step-dot { background: var(--nx-copper-grad); border-color: transparent; box-shadow: 0 0 0 6px rgba(229, 52, 59, .12); }
.eg-steps li.is-hot .eg-step-dot::after { color: #fff; }
.eg-steps li > div { padding: 16px 20px; flex: 1; background: var(--nx-paper); border: 1px solid var(--nx-line); border-radius: 16px; transition: border-color .4s var(--nx-ease), background .4s var(--nx-ease); }
.eg-steps li:hover > div { background: #fff; border-color: rgba(229, 52, 59, .3); }
.eg-practice { position: sticky; top: 130px; overflow: hidden; background: #fff; border: 1px solid var(--nx-line); border-radius: 22px; box-shadow: 0 40px 70px -54px rgba(11, 12, 15, .55); }
.eg-practice img { display: block; width: 100%; height: 220px; object-fit: cover; background: var(--nx-paper); }
.eg-practice-body { padding: 26px; }
.eg-checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.eg-checks li { display: flex; gap: 12px; font-size: 14.5px; line-height: 1.65; color: var(--nx-muted); }
.eg-checks--sm li { font-size: 14px; }

/* ---------- Types ---------- */
.eg-types-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.eg-type { position: relative; display: grid; align-content: start; gap: 6px; padding: 24px 22px; background: #fff; border: 1px solid var(--nx-line); border-radius: 18px; transition: transform .45s var(--nx-ease), box-shadow .45s var(--nx-ease), border-color .45s var(--nx-ease); }
.eg-type::before { content: ""; position: absolute; left: 22px; right: 22px; top: 0; height: 3px; border-radius: 0 0 3px 3px; background: var(--nx-copper-grad); transform: scaleX(.2); transform-origin: left; transition: transform .6s var(--nx-ease); }
.eg-type:hover { transform: translateY(-4px); border-color: rgba(229, 52, 59, .3); box-shadow: 0 30px 56px -40px rgba(11, 12, 15, .45); }
.eg-type:hover::before { transform: scaleX(1); }
.eg-diagram { display: grid; place-items: center; width: 64px; height: 64px; margin-bottom: 10px; border-radius: 16px; color: var(--nx-copper-3); background: var(--nx-paper); border: 1px solid var(--nx-line); }
.eg-diagram svg { width: 40px; height: 40px; }
.eg-type:hover .eg-diagram { color: var(--nx-green-deep, #6f9a1c); }

/* ---------- Applications ---------- */
.eg-apps-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: var(--eg-gap); align-items: start; }
.eg-head--side { margin-bottom: 0; }
.eg-apps-media { margin: 26px 0 0; overflow: hidden; border-radius: 20px; border: 1px solid var(--nx-line); background: var(--nx-paper); }
.eg-apps-media img { display: block; width: 100%; height: 260px; object-fit: cover; }
.eg-apps-list, .eg-kit-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.eg-apps-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.eg-apps-list li, .eg-kit-list li { display: flex; gap: 14px; padding: 20px; background: var(--nx-paper); border: 1px solid var(--nx-line); border-radius: 18px; transition: transform .4s var(--nx-ease), background .4s var(--nx-ease), border-color .4s var(--nx-ease); }
.eg-apps-list li:hover, .eg-kit-list li:hover { transform: translateY(-3px); background: #fff; border-color: rgba(229, 52, 59, .3); }
.eg-apps-list li:hover .eg-icon, .eg-kit-list li:hover .eg-icon { color: #fff; background: var(--nx-copper-grad); }

/* ---------- Why choose ---------- */
.eg-choose-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.eg-choose-card { display: grid; align-content: start; gap: 10px; padding: 28px 26px; border: 1px solid var(--nx-line-d); border-radius: 18px; background: rgba(255, 255, 255, .03); transition: transform .45s var(--nx-ease), border-color .45s var(--nx-ease), background .45s var(--nx-ease); }
.eg-choose-card:hover { transform: translateY(-4px); background: rgba(255, 255, 255, .06); border-color: rgba(166, 207, 63, .35); }
.eg-choose-card .eg-icon { margin-bottom: 6px; }
html body.nx-ui main .eg-choose-card .eg-h3 { margin: 0; }
.eg-choose-card p { font-size: 14.5px; }

/* ---------- Kit ---------- */
.eg-kit-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: var(--eg-gap); align-items: center; }
.eg-kit-media { position: relative; margin: 0; }
.eg-kit-media img { display: block; width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 22px; background: var(--nx-paper); box-shadow: 0 40px 70px -50px rgba(11, 12, 15, .55); }
.eg-kit .eg-head { margin-bottom: 24px; }

/* ---------- FAQ ---------- */
.eg-faq-grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: var(--eg-gap); align-items: start; }
.eg-faq-side { position: sticky; top: 130px; padding: 30px; background: #fff; border: 1px solid var(--nx-line); border-radius: 22px; box-shadow: inset 4px 0 0 var(--nx-copper); }
.eg-faq-list { display: grid; gap: 10px; }
.eg-qa { overflow: hidden; background: #fff; border: 1px solid var(--nx-line); border-radius: 16px; transition: border-color .4s var(--nx-ease), box-shadow .4s var(--nx-ease); }
.eg-qa[open] { border-color: rgba(229, 52, 59, .4); box-shadow: inset 3px 0 0 var(--nx-copper), 0 24px 44px -36px rgba(11, 12, 15, .4); }
.eg-qa summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 20px; cursor: pointer; list-style: none; font-weight: 600; font-size: 15px; line-height: 1.5; color: var(--nx-ink); }
.eg-qa summary::-webkit-details-marker { display: none; }
.eg-qa summary i { position: relative; flex: none; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--nx-line); transition: background .3s var(--nx-ease), transform .3s var(--nx-ease); }
.eg-qa summary i::before, .eg-qa summary i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 10px; height: 1.6px; margin: -.8px 0 0 -5px; background: var(--nx-copper-3); border-radius: 2px; }
.eg-qa summary i::after { transform: rotate(90deg); transition: transform .3s var(--nx-ease); }
.eg-qa[open] summary { color: var(--nx-copper-3); }
.eg-qa[open] summary i { background: var(--nx-copper-grad); border-color: transparent; }
.eg-qa[open] summary i::before, .eg-qa[open] summary i::after { background: #fff; }
.eg-qa[open] summary i::after { transform: rotate(0deg); }
.eg-qa-a { margin: 0 20px; padding: 14px 0 18px; border-top: 1px dashed rgba(196, 31, 39, .25); }
.eg-qa-a p { font-size: 14.5px; }

/* ---------- Responsive ---------- */
@media (max-width: 1200px) {
    .eg-why-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .eg-types-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
    .eg-page main { --eg-gap: 32px; }
    .eg-band { padding: 64px 0; }
    .eg-intro-grid, .eg-what-grid, .eg-process-grid, .eg-apps-grid, .eg-kit-grid, .eg-faq-grid { grid-template-columns: minmax(0, 1fr); }
    .eg-what-def, .eg-practice, .eg-faq-side { position: static; }
    .eg-choose-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .eg-kit-media { max-width: 420px; }
}
@media (max-width: 720px) {
    .eg-band { padding: 52px 0; }
    .eg-feats, .eg-apps-list, .eg-choose-grid, .eg-why-list, .eg-types-grid { grid-template-columns: minmax(0, 1fr); }
    .eg-intro-copy { padding-left: 22px; }
    .eg-flame { left: 12px; bottom: -18px; width: 48px; height: 48px; }
    .eg-faq-side { padding: 22px; }
}
