/* Cybasco redesign: shared shell. Loaded by EVERY page.
   Tokens, header, footer, floating widgets. Only rd- prefixed selectors
   plus :root, so it never fights css/style.css on older pages. */

:root {
  /* text */
  --ink: #0D1117;
  --text-2: #374151;
  --text-3: #596473;
  /* surfaces */
  --page: #F8FAFF;
  --white: #FFFFFF;
  --cyan-50: #E8F8FF;
  --cyan-100: #CFF1FF;
  --tint-50: #F1F5FA;
  --tint-100: #E1E9F3;
  --tint-200: #C3D2E5;
  --line: #D5DCE6;
  --line-strong: #7C8898;
  /* brand */
  --primary: #1E3A5F;          /* navy: buttons, links, 11:1 on page */
  --primary-hover: #152B47;
  --brand-blue: #3B6AA0;
  --primary-rgb: 30, 58, 95;
  --accent-rgb: 59, 106, 160;
  --brand-cyan: #00C2FF;       /* accents and tints, never text on light */
  --cyan-text: #006F94;        /* cyan when it must be text: 5.1:1 */
  --brand-strip: linear-gradient(90deg, #00C2FF, var(--brand-blue));
  /* type */
  --serif: Arial, Helvetica, sans-serif;
  --sans: Arial, Helvetica, sans-serif;
  /* shape */
  --r-sm: 4px;
  --r-md: 8px;
  --r-lg: 14px;
  --wrap: 1120px;
  --header-h: 72px;
}

/* ---------- skip link ---------- */
.rd-skip { position: absolute; left: 16px; top: -56px; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: var(--r-md); z-index: 1000; font: 500 .9375rem var(--sans); }
.rd-skip:focus { top: 12px; }

/* ---------- header ---------- */
.rd-nav { position: fixed; top: 0; left: 0; right: 0; z-index: 900; background: var(--white); border-bottom: 1px solid var(--line); font-family: var(--sans); }
.rd-nav::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--brand-strip); }
.rd-nav.scrolled { box-shadow: 0 2px 10px rgba(13, 17, 23, .07); }
.rd-nav-in { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: var(--header-h); width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 3px 24px 0; }
.rd-logo { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; flex-shrink: 0; }
.rd-logo:hover { color: var(--ink); }
.rd-logo img { width: 36px; height: 36px; object-fit: contain; }
.rd-logo span { font: 700 1.3rem/1 var(--serif); letter-spacing: .08em; }

.rd-menu { display: flex; align-items: center; gap: 22px; margin: 0; padding: 0; list-style: none; }
.rd-menu a { color: var(--text-2); text-decoration: none; font: 500 .9375rem/1.2 var(--sans); white-space: nowrap; }
.rd-menu a:hover, .rd-menu a[aria-current="page"] { color: var(--ink); text-decoration: underline; text-decoration-color: var(--brand-cyan); text-decoration-thickness: 2px; text-underline-offset: 6px; }
.rd-menu a.rd-cta { background: var(--primary); color: #fff; padding: 11px 18px; border-radius: var(--r-md); text-decoration: none; font-weight: 600; }
.rd-menu a.rd-cta:hover { background: var(--primary-hover); color: #fff; text-decoration: none; }

.rd-drop { position: relative; }
.rd-drop-menu { position: absolute; top: 100%; left: -12px; min-width: 252px; margin: 0; padding: 8px; list-style: none; background: var(--white); border: 1px solid var(--line); border-top: 3px solid var(--brand-cyan); border-radius: var(--r-md); box-shadow: 0 6px 18px rgba(13, 17, 23, .1); display: none; }
.rd-drop:hover .rd-drop-menu, .rd-drop:focus-within .rd-drop-menu { display: block; }
.rd-drop-menu a { display: block; padding: 9px 12px; border-radius: var(--r-sm); text-decoration: none !important; }
.rd-drop-menu a:hover { background: var(--cyan-50); }

.rd-cart a { position: relative; display: inline-flex; align-items: center; gap: 6px; color: var(--text-2); text-decoration: none; padding: 6px 8px; border-radius: var(--r-md); }
.rd-cart a:hover { background: var(--tint-50); text-decoration: none; }
.rd-cart .cart-count { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--primary); color: #fff; font: 600 .75rem/20px var(--sans); text-align: center; }

.rd-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--line-strong); background: var(--white); border-radius: var(--r-md); cursor: pointer; font-size: 1.1rem; color: var(--ink); }

/* ---------- footer ---------- */
.rd-footer { position: relative; background: var(--tint-50); border-top: 1px solid var(--tint-100); padding: 64px 0 28px; font: 400 .9375rem/1.6 var(--sans); color: var(--text-2); }
.rd-footer::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--brand-strip); }
.rd-footer .rd-wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.rd-foot-grid { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 40px 32px; }
.rd-foot-brand p { margin: 16px 0 0; max-width: 34ch; }
.rd-foot-social { display: flex; gap: 12px; margin-top: 16px; }
.rd-foot-social a { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--white); border: 1px solid var(--tint-200); color: var(--primary); font-size: 1.05rem; text-decoration: none; }
.rd-foot-social a:hover { background: var(--primary); color: #fff; }
.rd-foot-col h4 { margin: 0 0 12px; font: 600 .9375rem/1.4 var(--sans); color: var(--ink); }
.rd-foot-col ul { margin: 0; padding: 0; list-style: none; }
.rd-foot-col li + li { margin-top: 8px; }
.rd-foot-col a { color: var(--text-2); text-decoration: none; }
.rd-foot-col a:hover { color: var(--primary); text-decoration: underline; }
.rd-foot-bottom { margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--tint-200); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; color: var(--text-3); }
.rd-foot-bottom a { color: var(--text-3); text-decoration: underline; text-underline-offset: 3px; }
.rd-foot-bottom a:hover { color: var(--primary); }
.rd-foot-legal { display: flex; flex-wrap: wrap; gap: 4px 20px; }

/* ---------- floating widgets (beats the three old rule sets in style.css) ---------- */
body .whatsapp-widget { position: fixed; left: 20px; bottom: 20px; right: auto; z-index: 800; }
body .whatsapp-tooltip { display: none; }
body .whatsapp-btn { width: 52px; height: 52px; border-radius: 50%; background: #25D366; color: #fff; display: grid; place-items: center; font-size: 1.6rem; text-decoration: none; box-shadow: 0 2px 8px rgba(13, 17, 23, .18); animation: none; }
body .whatsapp-btn:hover { color: #fff; background: #1ebe5a; transform: none; }

:focus-visible { outline: 2px solid var(--brand-blue); outline-offset: 2px; }

@media (max-width: 1100px) {
  .rd-toggle { display: inline-grid; place-items: center; }
  .rd-menu { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--white); border-bottom: 1px solid var(--line); padding: 8px 24px 20px; max-height: calc(100vh - var(--header-h)); overflow-y: auto; }
  .rd-menu.active { display: flex; }
  .rd-menu > li > a { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); }
  .rd-menu a:hover { text-decoration: none; }
  .rd-drop-menu { position: static; display: block; border: 0; box-shadow: none; background: transparent; padding: 0 0 0 16px; min-width: 0; }
  .rd-menu a.rd-cta { margin-top: 16px; text-align: center; padding: 14px 18px; }
  .rd-cart { order: -1; }
  .rd-foot-grid { grid-template-columns: 1fr 1fr 1fr; }
  .rd-foot-brand { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .rd-footer .rd-wrap, .rd-nav-in { padding-left: 16px; padding-right: 16px; }
  .rd-foot-grid { grid-template-columns: 1fr 1fr; }
}
@media print { .rd-nav, .whatsapp-widget { display: none !important; } }
