/* RAVXPERT INC — public site, "Control Room" theme.
   Dark navy ground, amber signal colour, mono type for data.
   The admin area keeps css/style.css; this file is loaded by includes/header.php only. */

:root {
  --bg: #08111f;
  --panel: #0f1b30;
  --panel-2: #132238;
  --ink: #e9eefb;
  --mute: #93a1bf;
  --line: #22314f;
  --brand: #ffb020;
  --on-brand: #1b1200;
  --ok: #3ddc97;
  --off: #62708f;
  --danger-bg: #3a1620;
  --danger-ink: #ffc4cb;
  --danger-line: #6d2634;
  --display: "Sora", system-ui, -apple-system, "Segoe UI", sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;
  --radius: 12px;

  /* Old names, still used by inline styles in the pages. */
  --blue-900: var(--ink);
  --blue-700: var(--brand);
  --blue-600: var(--brand);
  --blue-500: var(--brand);
  --blue-100: var(--panel);
  --gray-900: var(--ink);
  --gray-600: var(--mute);
  --gray-200: var(--line);
  --white: var(--panel);
  --shadow: none;
  color-scheme: dark;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { font-family: var(--display); letter-spacing: -0.02em; line-height: 1.15; text-wrap: balance; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.mono { font-family: var(--mono); }
.eyebrow { font-family: var(--mono); color: var(--brand); text-transform: uppercase; letter-spacing: 0.09em; font-size: 0.78rem; font-weight: 500; }
.lede { color: var(--mute); max-width: 60ch; font-size: 1.05rem; }

/* ---------- Header ---------- */
.site-header { background: var(--bg); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 100; transition: background 0.3s, box-shadow 0.3s; }
.site-header.is-scrolled { background: rgba(8, 17, 31, 0.88); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35); }
.nav-wrap { display: flex; align-items: center; gap: 28px; padding: 14px 20px; }
.brand { display: flex; align-items: center; flex-shrink: 0; }
.brand-logo { height: 38px; width: auto; }
nav.main-nav { flex: 1; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
nav.main-nav ul { list-style: none; display: flex; gap: 26px; }
nav.main-nav a { font-weight: 500; color: var(--mute); padding: 6px 0; border-bottom: 2px solid transparent; transition: color 0.15s, border-color 0.15s; white-space: nowrap; }
nav.main-nav a:hover, nav.main-nav a.active { color: var(--ink); border-color: var(--brand); }
nav.main-nav a.nav-cta { color: var(--on-brand); border: 0; padding: 10px 18px; }
nav.main-nav a.nav-login { color: var(--ink); display: inline-flex; align-items: center; gap: 8px; }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.nav-toggle { display: none; margin-left: auto; background: none; border: 1px solid var(--line); border-radius: 8px; font-size: 1.3rem; line-height: 1; padding: 8px 12px; color: var(--ink); cursor: pointer; }

/* ---------- Buttons ---------- */
.btn { display: inline-block; padding: 13px 22px; border-radius: 8px; font-family: var(--body); font-weight: 700; font-size: 0.95rem; cursor: pointer; border: 0; transition: transform 0.15s, filter 0.15s, background 0.15s; }
.btn:hover { transform: translateY(-1px); filter: brightness(1.08); }
.btn-primary { background: var(--brand); color: var(--on-brand); }
.btn-outline { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn-outline:hover { background: var(--panel); }
.btn-sm { padding: 8px 16px; font-size: 0.88rem; border-radius: 999px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- Sections ---------- */
section { padding: clamp(48px, 7vw, 88px) 0; }
.section-head { max-width: 680px; margin: 0 0 36px; display: grid; gap: 12px; }
.section-head h2, .band-head h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
.section-head p { color: var(--mute); }
.section-alt { background: var(--panel); border-block: 1px solid var(--line); }
.section-alt .card, .section-alt .stat-box { background: var(--panel-2); }

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.grid > * { min-width: 0; }

.card { display: block; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 22px; transition: border-color 0.2s, transform 0.2s; }
.card:hover { border-color: var(--brand); transform: translateY(-2px); }
.card .icon { width: 46px; height: 46px; border-radius: 10px; background: rgba(255, 176, 32, 0.12); color: var(--brand); display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.card h3 { font-size: 1.08rem; margin-bottom: 6px; }
.card p { color: var(--mute); font-size: 0.95rem; }
.card .more { display: inline-block; margin-top: 12px; color: var(--brand); font-weight: 600; font-size: 0.92rem; }

.tag { display: inline-block; font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--brand); border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px; }
.empty-state { text-align: center; color: var(--mute); padding: 40px 0; }
.empty-state a { color: var(--brand); font-weight: 600; }

/* Product images sit on a light tile so catalogue photos with white backgrounds look right. */
.product-thumb { width: 100%; height: 170px; background: #f2f4f8; border-radius: 8px; margin-bottom: 14px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.product-thumb img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.product-thumb-lg { width: 100%; min-height: 280px; background: #f2f4f8; color: #5a6472; border-radius: var(--radius); display: flex; align-items: center; justify-content: center; overflow: hidden; padding: 20px; }
.product-thumb-lg img { max-width: 100%; max-height: 420px; width: auto; height: auto; object-fit: contain; }

.two-col { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
.two-col > * { min-width: 0; }
.check-list { list-style: none; margin-top: 18px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 12px; color: var(--mute); }
.check-list li::before { content: ""; flex-shrink: 0; width: 12px; height: 3px; margin-top: 0.7em; background: var(--brand); }

.stat-box { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.stat-box .stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.stat-box .num { font-family: var(--mono); font-size: 1.6rem; font-weight: 500; color: var(--brand); display: block; }
.stat-box .label { color: var(--mute); font-size: 0.85rem; }

/* ---------- Home hero: the live map ---------- */
.hero { position: relative; overflow: hidden; padding: 0; border-bottom: 1px solid var(--line); }
.hero .bgmap { position: absolute; inset: 0; }
.hero .bgmap svg { display: block; width: 100%; height: 100%; }
.hero .bgmap img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 62% 60%; }
.hero .bgmap::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, #08111f 0%, rgba(8, 17, 31, 0.88) 36%, rgba(8, 17, 31, 0.25) 100%); }
.hero .container { position: relative; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: 32px; align-items: center; padding-block: clamp(48px, 8vw, 104px); }
.hero .txt { display: grid; gap: 22px; }
.hero h1 { font-size: clamp(2.1rem, 5vw, 3.7rem); font-weight: 700; }
.hero h1 em { font-style: normal; color: var(--brand); }
.live-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); margin-right: 8px; animation: blink 1.6s ease-in-out infinite; }
@keyframes blink { 50% { opacity: 0.3; } }
.pulse { animation: pulse 2.2s ease-out infinite; transform-origin: center; transform-box: fill-box; }
@keyframes pulse { 0% { transform: scale(0.5); opacity: 0.7; } 100% { transform: scale(2.4); opacity: 0; } }

.board { background: rgba(12, 22, 39, 0.95); border: 1px solid var(--line); border-radius: 14px; font-family: var(--mono); font-size: 0.82rem; }
.board header { display: flex; justify-content: space-between; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--line); color: var(--mute); }
.board .row { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; padding: 11px 16px; border-bottom: 1px solid var(--line); }
.board .row small { display: block; color: var(--mute); font-size: 0.74rem; }
.board .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--ok); }
.board .dot.idle { background: var(--brand); }
.board .dot.off { background: var(--off); }
.board .alarm { margin: 12px; padding: 10px 12px; border-radius: 8px; background: var(--danger-bg); color: var(--danger-ink); border: 1px solid var(--danger-line); }

.strip { padding: 0; border-bottom: 1px solid var(--line); font-family: var(--mono); }
.strip .container { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.strip div div { padding: 22px 0; display: grid; gap: 2px; }
.strip b { font-size: 1.5rem; color: var(--brand); font-weight: 500; }
.strip span { color: var(--mute); font-size: 0.82rem; }

.feat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 28px 24px; }
.feat { border-top: 2px solid var(--line); padding-top: 18px; display: grid; gap: 8px; align-content: start; }
.feat svg { color: var(--brand); }
.feat h3 { font-size: 1.1rem; }
.feat p { color: var(--mute); font-size: 0.95rem; }

.steps { list-style: none; counter-reset: s; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px 0; }
.steps li { counter-increment: s; border-left: 1px solid var(--line); padding: 4px 20px 8px; display: grid; gap: 6px; align-content: start; }
.steps li::before { content: "0" counter(s); font-family: var(--mono); color: var(--brand); font-size: 0.85rem; }
.steps p { color: var(--mute); font-size: 0.95rem; }

.svc-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 0 32px; }
.svc-list a { display: flex; gap: 12px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); font-weight: 600; transition: color 0.15s; }
.svc-list a:hover { color: var(--brand); }
.svc-list svg { color: var(--brand); flex-shrink: 0; }

.photo, .photo-pair figure { margin: 0; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--panel); }
.photo img, .photo-pair img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }
.photo-pair { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; margin-top: 48px; }
.photo-pair figcaption { padding: 14px 18px; color: var(--mute); font-size: 0.95rem; }
.photo-pair figcaption b { display: block; color: var(--ink); font-family: var(--display); margin-bottom: 2px; }

.pills { display: flex; flex-wrap: wrap; gap: 10px; }
.pills span { border: 1px solid var(--line); border-radius: 999px; padding: 9px 16px; font-weight: 500; }

.alert-table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.alert-table th { text-align: left; font-family: var(--mono); font-weight: 500; font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--mute); padding: 10px 14px; border-bottom: 1px solid var(--line); }
.alert-table td { padding: 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.alert-table td:first-child { font-family: var(--mono); color: var(--brand); white-space: nowrap; }
.alert-table td:last-child { color: var(--mute); }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel-2); }

/* ---------- Interior page banner ---------- */
.page-banner { background: var(--panel); border-bottom: 1px solid var(--line); padding: 56px 0; }
.page-banner h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); margin-bottom: 8px; }
.page-banner p { color: var(--mute); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px; }
.contact-grid > * { min-width: 0; }
.contact-info .item { display: flex; gap: 14px; margin-bottom: 22px; }
.contact-info .icon { width: 42px; height: 42px; border-radius: 10px; background: rgba(255, 176, 32, 0.12); color: var(--brand); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.contact-info h4 { margin-bottom: 2px; font-size: 0.95rem; }
.contact-info p, .contact-info a { color: var(--mute); font-size: 0.95rem; }
form.contact-form { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; min-width: 0; }
.field label { font-size: 0.85rem; font-weight: 600; }
.field input, .field select, .field textarea { padding: 11px 13px; border: 1px solid var(--line); border-radius: 8px; font-size: 0.95rem; font-family: inherit; color: var(--ink); background: var(--bg); width: 100%; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(255, 176, 32, 0.18); }
.field textarea { resize: vertical; min-height: 120px; }
.hp-field { position: absolute; left: -9999px; top: -9999px; }
.alert { padding: 14px 16px; border-radius: 8px; margin-bottom: 20px; font-size: 0.95rem; font-weight: 600; }
.alert-success { background: #0f2e22; color: #9af0c6; border: 1px solid #1f5c43; }
.alert-error { background: var(--danger-bg); color: var(--danger-ink); border: 1px solid var(--danger-line); }

/* ---------- CTA band + footer ---------- */
.cta-band { background: var(--panel); border-top: 1px solid var(--line); }
.cta-band .container { display: flex; flex-wrap: wrap; gap: 20px 40px; align-items: center; justify-content: space-between; }
.cta-band h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); margin-bottom: 8px; }
.cta-band p { color: var(--mute); }

footer.site-footer { background: #060d18; border-top: 1px solid var(--line); color: var(--mute); padding: 46px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; margin-bottom: 30px; }
.footer-grid h4 { color: var(--ink); margin-bottom: 14px; font-size: 1rem; }
.footer-grid ul { list-style: none; }
.footer-grid li { margin-bottom: 8px; font-size: 0.92rem; }
.footer-grid a:hover { color: var(--brand); }
.footer-bottom { border-top: 1px solid var(--line); padding-top: 18px; font-size: 0.85rem; font-family: var(--mono); }

/* ---------- Scroll reveal (content stays visible without JavaScript) ---------- */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.is-visible, .no-js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { transition: none; opacity: 1; transform: none; }
  .pulse, .live-dot { animation: none; }
  .pulse { opacity: 0.25; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .two-col, .contact-grid, .hero .container { grid-template-columns: 1fr; }
  .hero .bgmap::after { background: rgba(8, 17, 31, 0.86); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  nav.main-nav { position: absolute; top: 100%; left: 0; right: 0; background: var(--bg); border-bottom: 1px solid var(--line); display: none; padding-bottom: 16px; }
  nav.main-nav.open { display: block; }
  nav.main-nav ul { flex-direction: column; gap: 0; }
  nav.main-nav li { border-bottom: 1px solid var(--line); }
  nav.main-nav ul a { display: block; padding: 14px 20px; border-bottom: 0; }
  .nav-actions { flex-direction: column; align-items: stretch; gap: 10px; margin: 16px 20px 0; }
  nav.main-nav a.nav-cta { display: flex; justify-content: center; text-align: center; }
  .nav-toggle { display: block; }
}
@media (max-width: 600px) {
  .form-row, .footer-grid { grid-template-columns: 1fr; }
}

/* ---------- Chat bubble (js/chat.js), lower-right on every page ---------- */
.rxc { position: fixed; right: 18px; bottom: 18px; z-index: 200; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; font-family: var(--body); }
/* The panel and other parts are shown and hidden with the hidden attribute; without this rule
   their own display values win and the chat window stays open on every page load. */
.rxc [hidden] { display: none !important; }
.rxc-launcher { display: flex; align-items: center; gap: 0; padding: 0; border: 0; background: none; cursor: pointer; color: var(--ink); text-align: left; filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.45)); }
.rxc-avatar { position: relative; z-index: 1; width: 62px; height: 62px; border-radius: 50%; background: var(--brand); color: var(--on-brand); display: flex; align-items: center; justify-content: center; border: 3px solid var(--bg); flex-shrink: 0; }
.rxc-avatar { overflow: visible; }
.rxc-photo { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; background: var(--panel-2); }
.rxc-head-left { display: flex; align-items: center; gap: 10px; min-width: 0; }
.rxc-head-photo { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; flex-shrink: 0; border: 2px solid var(--line); }
.rxc-mini { width: 18px; height: 18px; border-radius: 50%; object-fit: cover; vertical-align: -4px; margin-right: 5px; }
.rxc-badge { position: absolute; top: -4px; right: -4px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: #e5484d; color: #fff; font-size: 0.72rem; font-weight: 700; line-height: 20px; text-align: center; }
.rxc-hello { margin-left: -22px; padding: 0 0 0 30px; background: var(--panel-2); border: 1px solid var(--line); border-radius: 0 12px 12px 0; overflow: hidden; display: grid; }
.rxc-hello b { padding: 8px 14px 6px 0; font-size: 0.86rem; font-weight: 600; max-width: 190px; line-height: 1.3; }
.rxc-state { margin-left: -30px; padding: 4px 14px 4px 30px; background: var(--off); color: #fff; font-size: 0.76rem; font-weight: 700; }
.rxc.is-online .rxc-state { background: #1f9d63; }
.rxc.is-open .rxc-hello { display: none; }

.rxc-panel { width: min(370px, calc(100vw - 24px)); height: min(580px, calc(100vh - 110px)); background: var(--panel); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 18px 50px rgba(0, 0, 0, 0.55); }
.rxc-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; background: var(--panel-2); border-bottom: 1px solid var(--line); }
.rxc-head b { display: block; font-family: var(--display); font-size: 1rem; }
.rxc-sub { display: block; font-size: 0.78rem; color: var(--mute); }
.rxc.is-online .rxc-sub::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--ok); margin-right: 6px; }
.rxc-x { background: none; border: 0; color: var(--mute); font-size: 1.6rem; line-height: 1; cursor: pointer; padding: 2px 8px; border-radius: 6px; }
.rxc-x:hover { color: var(--ink); background: var(--panel); }
.rxc-body { flex: 1; min-height: 0; display: flex; flex-direction: column; }

.rxc-form { padding: 14px 16px; overflow-y: auto; display: grid; gap: 10px; align-content: start; }
.rxc-intro { font-size: 0.9rem; color: var(--mute); }
.rxc-note { font-size: 0.86rem; padding: 8px 10px; border-radius: 8px; background: var(--panel-2); border: 1px solid var(--line); }
.rxc-field { display: grid; gap: 5px; }
.rxc-field label { font-size: 0.8rem; font-weight: 600; }
.rxc-field input, .rxc-field select, .rxc-field textarea, .rxc-bar textarea { width: 100%; padding: 9px 11px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); color: var(--ink); font: inherit; font-size: 0.92rem; }
.rxc-field textarea, .rxc-bar textarea { resize: none; }
.rxc-field input:focus, .rxc-field select:focus, .rxc-field textarea:focus, .rxc-bar textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(255, 176, 32, 0.18); }
.rxc-trap { position: absolute; left: -9999px; width: 1px; height: 1px; }
.rxc-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.rxc-send { border: 0; border-radius: 8px; padding: 10px 16px; background: var(--brand); color: var(--on-brand); font: inherit; font-weight: 700; cursor: pointer; }
.rxc-send:disabled { opacity: 0.55; cursor: default; }
.rxc-error { margin: 0 16px; padding: 8px 10px; border-radius: 8px; background: var(--danger-bg); color: var(--danger-ink); border: 1px solid var(--danger-line); font-size: 0.86rem; }
.rxc-form .rxc-error { margin: 0; }

.rxc-list { flex: 1; min-height: 0; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 8px; }
.rxc-msg { max-width: 84%; display: grid; gap: 2px; }
.rxc-text { padding: 8px 12px; border-radius: 14px; font-size: 0.92rem; line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere; }
.rxc-who { font-size: 0.7rem; color: var(--mute); font-family: var(--mono); padding-left: 4px; }
.rxc-visitor { align-self: flex-end; }
.rxc-visitor .rxc-text { background: var(--brand); color: var(--on-brand); border-bottom-right-radius: 4px; }
.rxc-bot .rxc-text, .rxc-staff .rxc-text { background: var(--panel-2); border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.rxc-bot .rxc-text { border-style: dashed; }
.rxc-bar { display: flex; gap: 8px; align-items: flex-end; padding: 10px; border-top: 1px solid var(--line); }
.rxc-bar textarea { flex: 1; min-width: 0; }
.rxc-new { margin: 0 10px 10px; padding: 9px; border: 1px solid var(--line); border-radius: 8px; background: none; color: var(--brand); font: inherit; font-weight: 600; cursor: pointer; }

@media (max-width: 520px) {
  .rxc { right: 12px; bottom: 12px; }
  .rxc-hello b { max-width: 150px; }
  .rxc.is-open .rxc-launcher { display: none; }
  .rxc-panel { height: min(560px, calc(100vh - 24px)); }
}

/* ---------- RAV Fleet Eye logo and the partner page ---------- */
.product-logo { width: 240px; max-width: 70%; height: auto; }
.partner-band { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; padding: 28px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); }
.partner-band > div { display: grid; gap: 10px; min-width: 0; flex: 1 1 320px; }
.partner-band h2 { font-size: clamp(1.3rem, 2.4vw, 1.7rem); }
.partner-band p { color: var(--mute); max-width: 60ch; }
/* Seven menu links and two buttons: tighten them on a small laptop so nothing runs off the edge. */
@media (min-width: 901px) and (max-width: 1240px) {
  nav.main-nav { gap: 12px; }
  nav.main-nav ul { gap: 14px; }
  nav.main-nav a { font-size: 0.88rem; }
  nav.main-nav a.nav-cta { padding: 8px 12px; }
  .brand-logo { max-width: 120px; height: auto; }
}
@media (min-width: 901px) and (max-width: 1000px) {
  nav.main-nav { gap: 8px; }
  nav.main-nav ul { gap: 8px; }
  nav.main-nav a { font-size: 0.8rem; }
  nav.main-nav a.nav-cta { padding: 8px 8px; }
  nav.main-nav a.nav-login svg { display: none; }
  .brand-logo { max-width: 92px; }
}

/* ---------- Careers page ---------- */
.apply-box { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 32px; padding: 32px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); }
.apply-box > div { display: grid; gap: 14px; min-width: 0; flex: 1 1 320px; }
.apply-box p { color: var(--mute); max-width: 56ch; }
.apply-box .apply-note { font-size: 0.9rem; }
.apply-box .qr { display: grid; gap: 10px; justify-items: center; flex: 0 0 auto; margin: 0 auto; }
.apply-box .qr img { width: 220px; height: auto; border-radius: 12px; background: #fff; display: block; }
.apply-box .qr span { font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--mute); }
