/* ==========================================================================
   Repute Steel — shared header / footer / quote modal for LEGACY pages.
   Every class is prefixed "rsc-" so the old Bootstrap 3 theme (.nav, .btn,
   .modal, .container, .panel …) cannot collide with it, and every rule
   re-states the properties the old theme sets globally (a, p, ul, button…).
   ========================================================================== */
:root {
  --rsc-ink: #0b1622; --rsc-ink2: #2b3846; --rsc-muted: #5f6b79; --rsc-line: #e4e8ee; --rsc-line2: #d3d9e2;
  --rsc-soft: #f5f7fa; --rsc-brand: #1565d8; --rsc-brand600: #0f52b6; --rsc-brand50: #e9f1fd; --rsc-wa: #1fae5b;
  --rsc-font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --rsc-head: "Manrope", "Inter", system-ui, sans-serif;
}
[class^="rsc-"], [class*=" rsc-"], [class^="rsc-"] *, [class*=" rsc-"] * { box-sizing: border-box; }
.rsc-topbar, .rsc-site-header, .rsc-site-footer, .rsc-modal, .rsc-mobile-bar { font-family: var(--rsc-font); font-size: 16px; line-height: 1.6; letter-spacing: normal; text-transform: none; }
.rsc-topbar ul, .rsc-site-header ul, .rsc-site-footer ul { list-style: none; margin: 0; padding: 0; }
.rsc-topbar a, .rsc-site-header a, .rsc-site-footer a, .rsc-modal a, .rsc-mobile-bar a { text-decoration: none; outline: none; }
.rsc-site-header svg, .rsc-topbar svg, .rsc-site-footer svg, .rsc-mobile-bar svg, .rsc-modal svg { flex-shrink: 0; }
.rsc-container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* Top bar */
.rsc-topbar { background: var(--rsc-ink); color: #b8c3cf; font-size: 13px; }
.rsc-topbar .rsc-container { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 40px; }
.rsc-topbar-links { display: flex; gap: 22px; flex-wrap: wrap; align-items: center; }
.rsc-topbar-links a, .rsc-topbar-links span { display: inline-flex; align-items: center; gap: 6px; color: #e6ecf2; font-size: 13px; }
.rsc-topbar-links span { color: #b8c3cf; }
.rsc-topbar svg { width: 14px; height: 14px; opacity: .8; }
.rsc-topbar #google_translate_element { line-height: 1; }
.rsc-topbar #google_translate_element select { font-size: 12px; padding: 2px 4px; border-radius: 4px; }

/* Header */
.rsc-site-header { position: sticky; top: 0; z-index: 1000; background: rgba(255,255,255,.96); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s; }
.rsc-site-header.rsc-is-stuck { border-bottom-color: var(--rsc-line); box-shadow: 0 1px 2px rgba(11,22,34,.06); }
.rsc-site-header > .rsc-container { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 76px; }
.rsc-brand { display: inline-flex; }
.rsc-brand img { height: 46px; width: auto; max-width: none; }
.rsc-nav { display: flex; align-items: center; }
.rsc-nav > ul { display: flex; gap: 2px; }
.rsc-nav > ul > li { position: relative; float: none; margin: 0; padding: 0; }
.rsc-nav > ul > li > a, .rsc-nav > ul > li > button {
  display: inline-flex; align-items: center; gap: 4px; padding: 10px 14px; border-radius: 999px; border: 0; background: none; cursor: pointer;
  font: 500 15px/1 var(--rsc-font); color: var(--rsc-ink2); text-transform: none; letter-spacing: normal;
}
.rsc-nav > ul > li > a:hover, .rsc-nav > ul > li > button:hover, .rsc-nav > ul > li.rsc-open > button { background: var(--rsc-soft); color: var(--rsc-ink); }
.rsc-chev { width: 14px; height: 14px; transition: transform .2s; }
.rsc-nav li.rsc-open .rsc-chev { transform: rotate(180deg); }
.rsc-dropdown { position: absolute; top: calc(100% + 8px); left: 50%; transform: translateX(-50%) translateY(6px); min-width: 260px; background: #fff; border: 1px solid var(--rsc-line); border-radius: 14px; box-shadow: 0 24px 48px -20px rgba(11,22,34,.28); padding: 10px; opacity: 0; visibility: hidden; transition: opacity .18s, transform .18s, visibility .18s; z-index: 1001; }
.rsc-dropdown.rsc-mega { min-width: 640px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px 12px; padding: 18px; }
.rsc-dd-title { grid-column: 1 / -1; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--rsc-muted); font-weight: 600; padding: 4px 10px 8px; }
.rsc-dropdown a { display: block; padding: 9px 12px; border-radius: 8px; color: var(--rsc-ink2); font-size: 14.5px; line-height: 1.3; }
.rsc-dropdown a:hover { background: var(--rsc-soft); color: var(--rsc-brand); }
.rsc-nav li.rsc-open > .rsc-dropdown, .rsc-nav li:hover > .rsc-dropdown { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.rsc-header-cta { display: flex; align-items: center; gap: 10px; }
.rsc-nav-toggle { display: none; background: #fff; border: 1px solid var(--rsc-line2); border-radius: 10px; width: 44px; height: 44px; cursor: pointer; align-items: center; justify-content: center; padding: 0; color: var(--rsc-ink); }
.rsc-nav-toggle svg { width: 22px; height: 22px; }

/* Buttons */
.rsc-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: 600 15px/1 var(--rsc-font); padding: 14px 22px; border-radius: 999px; border: 1px solid transparent; cursor: pointer; white-space: nowrap; text-decoration: none; transition: background .18s, color .18s, border-color .18s, transform .18s; margin: 0; text-transform: none; letter-spacing: normal; box-shadow: none; }
.rsc-btn:hover { transform: translateY(-1px); }
.rsc-btn svg { width: 18px; height: 18px; }
.rsc-btn-primary { background: var(--rsc-brand); color: #fff; box-shadow: 0 6px 18px -8px rgba(21,101,216,.7); }
.rsc-btn-primary:hover, .rsc-btn-primary:focus { background: var(--rsc-brand600); color: #fff; }
.rsc-btn-ghost { background: #fff; color: var(--rsc-ink); border-color: var(--rsc-line2); }
.rsc-btn-ghost:hover, .rsc-btn-ghost:focus { border-color: var(--rsc-ink); color: var(--rsc-ink); }
.rsc-btn-sm { padding: 10px 16px; font-size: 14px; }
.rsc-btn-block { width: 100%; }

/* Footer */
.rsc-site-footer { background: #08111b; color: #93a1b0; padding: 72px 0 28px; font-size: 15px; clear: both; }
.rsc-site-footer p { color: #93a1b0; font: 400 15px/1.65 var(--rsc-font); margin: 0 0 14px; }
.rsc-site-footer h4 { color: #fff; font: 700 13px/1.3 var(--rsc-head); letter-spacing: .12em; text-transform: uppercase; margin: 0 0 18px; }
.rsc-site-footer a { color: #b9c5d1; display: inline; }
.rsc-site-footer a:hover { color: #fff; }
.rsc-footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; }
.rsc-footer-grid ul { display: grid; gap: 10px; }
.rsc-footer-grid li { color: #93a1b0; line-height: 1.5; }
.rsc-footer-logo { background: #fff; padding: 10px 14px; border-radius: 12px; display: inline-block; margin-bottom: 18px; }
.rsc-footer-logo img { height: 40px; width: auto; display: block; }
.rsc-small { font-size: 13px !important; }
.rsc-social { display: flex; gap: 10px; margin-top: 16px; }
.rsc-site-footer .rsc-social a { width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(255,255,255,.15); display: grid; place-items: center; color: #c9d3de; }
.rsc-site-footer .rsc-social a:hover { background: var(--rsc-brand); border-color: var(--rsc-brand); color: #fff; }
.rsc-social svg { width: 16px; height: 16px; }
.rsc-footer-bottom { margin-top: 56px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.08); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13px; }

/* Floating WhatsApp + mobile bar */
.rsc-wa-float { position: fixed; right: 20px; bottom: 20px; z-index: 1002; width: 56px; height: 56px; border-radius: 50%; background: var(--rsc-wa); color: #fff; display: grid; place-items: center; box-shadow: 0 10px 24px -8px rgba(31,174,91,.7); transition: transform .2s; }
.rsc-wa-float:hover { transform: scale(1.06); color: #fff; }
.rsc-wa-float svg { width: 28px; height: 28px; }
.rsc-mobile-bar { display: none; }
.scroll-to-top { display: none !important; }   /* old theme button would sit under the WhatsApp button */

/* Quote modal */
.rsc-modal { position: fixed; inset: 0; z-index: 2000; display: none; align-items: center; justify-content: center; padding: 20px; }
.rsc-modal.rsc-open { display: flex; }
.rsc-modal-backdrop { position: absolute; inset: 0; background: rgba(8,17,27,.55); backdrop-filter: blur(3px); }
.rsc-panel { position: relative; width: 100%; max-width: 560px; max-height: calc(100vh - 40px); overflow: auto; background: #fff; border: 1px solid var(--rsc-line); border-radius: 22px; padding: 28px; box-shadow: 0 24px 48px -20px rgba(11,22,34,.28); margin: 0; }
.rsc-panel h3 { font: 800 20px/1.2 var(--rsc-head); color: var(--rsc-ink); margin: 0 0 4px; }
.rsc-sub { color: var(--rsc-muted) !important; font: 400 14px/1.5 var(--rsc-font) !important; margin: 0 0 18px !important; }
.rsc-modal-close { position: absolute; top: 14px; right: 14px; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--rsc-line); background: #fff; cursor: pointer; font-size: 20px; line-height: 1; color: var(--rsc-muted); display: grid; place-items: center; padding: 0; }
.rsc-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.rsc-full { grid-column: 1 / -1; }
.rsc-field label { display: block; font: 600 12.5px/1.3 var(--rsc-font); color: var(--rsc-ink2); margin: 0 0 6px; max-width: none; }
.rsc-muted { color: var(--rsc-muted); font-weight: 400; }
.rsc-field input, .rsc-field textarea { display: block; width: 100%; font: 400 15px/1.4 var(--rsc-font); color: var(--rsc-ink); background: var(--rsc-soft); border: 1px solid var(--rsc-line); border-radius: 10px; padding: 12px 14px; height: auto; box-shadow: none; margin: 0; }
.rsc-field input[type=file] { background: #fff; border-style: dashed; padding: 10px; font-size: 13px; }
.rsc-field input:focus, .rsc-field textarea:focus { outline: none; background: #fff; border-color: var(--rsc-brand); box-shadow: 0 0 0 4px var(--rsc-brand50); }
.rsc-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.rsc-form-note { font: 400 12.5px/1.4 var(--rsc-font) !important; color: var(--rsc-muted) !important; margin: 10px 0 0 !important; display: flex; gap: 6px; align-items: center; }
.rsc-form-note svg { width: 14px; height: 14px; }
.rsc-form-status { display: none; margin-top: 12px; padding: 12px 14px; border-radius: 10px; font-size: 14px; }
.rsc-form-status.rsc-ok { display: block; background: #e8f6ee; color: #0e6b3f; border: 1px solid #bfe5cf; }
.rsc-form-status.rsc-err { display: block; background: #fbecea; color: #9a2c20; border: 1px solid #f0c6c0; }
.rsc-js-rfq.rsc-is-sending button[type=submit] { opacity: .7; pointer-events: none; }

/* Responsive */
@media (max-width: 1080px) { .rsc-dropdown.rsc-mega { min-width: 520px; grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 960px) {
  .rsc-nav, .rsc-header-cta .rsc-btn-ghost { display: none; }
  .rsc-nav-toggle { display: inline-flex; }
  .rsc-nav.rsc-open { display: block; position: fixed; inset: 116px 0 0 0; background: #fff; padding: 16px 20px 120px; overflow: auto; border-top: 1px solid var(--rsc-line); z-index: 1003; }
  .rsc-nav.rsc-open > ul { flex-direction: column; gap: 0; }
  .rsc-nav.rsc-open > ul > li > a, .rsc-nav.rsc-open > ul > li > button { width: 100%; justify-content: space-between; padding: 16px 4px; border-radius: 0; border-bottom: 1px solid var(--rsc-line); font-size: 16px; }
  .rsc-nav.rsc-open .rsc-dropdown { position: static; transform: none; opacity: 1; visibility: visible; box-shadow: none; border: 0; padding: 4px 0 8px 8px; display: none; min-width: 0; }
  .rsc-nav.rsc-open li.rsc-open > .rsc-dropdown { display: grid; grid-template-columns: 1fr; }
  .rsc-footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  html.rsc-legacy body { padding-bottom: 64px; }
  .rsc-hide-sm { display: none !important; }
  .rsc-brand img { height: 38px; }
  .rsc-header-cta .rsc-btn-primary { display: none; }
  .rsc-wa-float { display: none; }
  .rsc-footer-grid, .rsc-form-grid { grid-template-columns: 1fr; }
  .rsc-panel { padding: 22px; }
  .rsc-mobile-bar { display: grid; grid-template-columns: 1fr 1fr 1fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 1002; background: #fff; border-top: 1px solid var(--rsc-line); box-shadow: 0 -6px 20px -10px rgba(0,0,0,.2); }
  .rsc-mobile-bar a, .rsc-mobile-bar button { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 9px 4px 10px; font: 600 11.5px/1.2 var(--rsc-font); color: var(--rsc-ink2); background: none; border: 0; cursor: pointer; }
  .rsc-mobile-bar svg { width: 20px; height: 20px; }
  .rsc-mobile-bar .rsc-wa { color: var(--rsc-wa); }
  .rsc-mobile-bar .rsc-q { background: var(--rsc-brand); color: #fff; }
}
