/* ============================================================
   RSG BASE STYLES
   Brand colors, the menu, and the footer. Loaded on every page
   drawn by the theme. Taken from the live home page template.
   ============================================================ */

/* ── Brand tokens ── */
:root {
  --rsg-black:    #000000;
  --rsg-ink:      #1A1E2D;
  --rsg-ink-mid:  #252A3A;
  --rsg-white:    #FFFFFF;
  --rsg-paper:    #F2F2F2;
  --rsg-red:      #BE3431;
  --rsg-red-deep: #8E2724;
  --rsg-red-soft: #D55F5B;
  --rsg-grey-700: #595959;
  --rsg-grey-500: #888888;
  --rsg-grey-100: #E3E3E3;
  --rsg-text-dim: rgba(255,255,255,0.65);
  --rsg-border:   rgba(255,255,255,0.10);
  --font: "Red Hat Display", "Helvetica Neue", Arial, sans-serif;
  --max-w: 1200px;
  --nav-h: 64px;
}

/* The menu and footer carry their own resets, so they look the same on every page
   no matter what other styles that page loads. */
.rsg-nav, .rsg-nav *, .rsg-nav *::before, .rsg-nav *::after,
.nav-mobile-menu, .nav-mobile-menu *,
.footer, .footer * { box-sizing: border-box; }
.rsg-nav, .nav-mobile-menu, .footer { font-family: var(--font); line-height: 1.5; -webkit-font-smoothing: antialiased; }
.rsg-nav a, .nav-mobile-menu a, .footer a { text-decoration: none; }
.rsg-nav ul, .nav-mobile-menu ul, .footer ul { list-style: none; margin: 0; padding: 0; }
.rsg-nav li, .nav-mobile-menu li, .footer li { padding: 0; }
.rsg-nav img, .footer img { display: block; max-width: 100%; border: 0; }
.rsg-nav button,
.rsg-nav button:hover,
.rsg-nav button:focus {
  background: none; border: none; border-radius: 0;
  font-family: var(--font); text-decoration: none;
}

.rsg-skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 300;
  background: var(--rsg-red); color: #fff; padding: 10px 16px;
  font-size: 13px; font-weight: 700;
}
.rsg-skip-link:focus { left: 8px; top: 8px; }

/* ============================================================
   MENU
   ============================================================ */
.rsg-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 0 56px;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(0,0,0,0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.admin-bar .rsg-nav { top: 32px; }
@media (max-width: 782px) { .admin-bar .rsg-nav { top: 46px; } }

.nav-logo { display: flex; align-items: center; height: 100%; flex-shrink: 0; }
.nav-logo img { height: 32px; filter: brightness(0) invert(1); display: block; }
.rsg-nav .nav-links { display: flex; align-items: center; gap: 28px; list-style: none; margin: 0 0 0 auto; padding: 0; flex: 0 0 auto; }
.nav-links li { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; }
.nav-links a,
.nav-dropdown-toggle {
  display: flex; align-items: center; height: var(--nav-h);
  font-family: var(--font); font-size: 13px; font-weight: 600;
  letter-spacing: 0.05em; text-transform: uppercase;
  color: rgba(255,255,255,0.75); text-decoration: none;
  transition: color 0.2s; white-space: nowrap; line-height: 1;
}
.nav-links a:hover,
.nav-dropdown-toggle:hover,
.nav-dropdown.is-open .nav-dropdown-toggle { color: #fff; }
.rsg-nav .nav-dropdown-toggle,
.rsg-nav .nav-dropdown-toggle:hover,
.rsg-nav .nav-dropdown-toggle:focus {
  cursor: default; gap: 6px; padding: 0; margin: 0;
  font-size: 13px; font-weight: 600; line-height: 1;
  letter-spacing: 0.05em; text-transform: uppercase;
  color: rgba(255,255,255,0.75);
}
.rsg-nav .nav-dropdown-toggle:hover,
.rsg-nav .nav-dropdown.is-open .nav-dropdown-toggle { color: #fff; }
.rsg-nav .nav-dropdown-toggle:focus-visible { outline: 1px solid rgba(255,255,255,0.6); outline-offset: 4px; }

.rsg-nav .nav-cta-btn {
  flex-shrink: 0; margin-left: 32px;
  background: var(--rsg-red); color: #fff;
  font-family: var(--font); font-size: 13px; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  padding: 10px 22px; text-decoration: none;
  transition: background 0.2s; white-space: nowrap;
}
.rsg-nav .nav-cta-btn:hover { background: var(--rsg-red-soft); color: #fff; }

/* Cart icon. Shows only when the cart has something in it. */
.nav-cart-icon {
  position: relative;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; margin-left: 16px;
  width: 36px; height: 36px;
  color: rgba(255,255,255,0.75);
  transition: color 0.2s;
}
.nav-cart-icon:hover { color: #fff; }
.nav-cart-icon svg { display: block; }
.nav-cart-badge {
  position: absolute; top: 0; right: 0;
  background: var(--rsg-red); color: #fff;
  font-size: 9px; font-weight: 700; line-height: 1;
  min-width: 15px; height: 15px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  padding: 0 3px;
}

/* ── Dropdowns ── */
.nav-dropdown { position: relative; }
.nav-dropdown-arrow {
  width: 0; height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 4px solid rgba(255,255,255,0.55);
  flex-shrink: 0; margin-top: 2px;
  transition: transform 0.2s, border-top-color 0.2s;
}
.nav-dropdown:hover .nav-dropdown-arrow,
.nav-dropdown.is-open .nav-dropdown-arrow { transform: rotate(180deg); border-top-color: #fff; }
.nav-dropdown-menu {
  display: none;
  position: absolute; top: 100%; left: 50%;
  transform: translateX(-50%);
  background: rgba(8,8,8,0.98);
  border: 1px solid rgba(255,255,255,0.08);
  border-top: 2px solid var(--rsg-red);
  min-width: 260px; z-index: 200; padding: 6px 0;
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu,
.nav-dropdown.is-open .nav-dropdown-menu { display: block; }
.nav-dropdown-menu a {
  height: auto;
  padding: 11px 20px;
  font-size: 11px; letter-spacing: 0.07em;
  color: rgba(255,255,255,0.7);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  transition: color 0.2s, background 0.2s;
}
.nav-dropdown-menu a:last-child { border-bottom: none; }
.nav-dropdown-menu a:hover { color: #fff; background: rgba(255,255,255,0.04); }
.nav-dd-divider { height: 1px; background: rgba(255,255,255,0.08); margin: 4px 0; }
.nav-dd-section-label {
  display: block; cursor: default;
  padding: 8px 20px 4px;
  font-size: 9px; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: rgba(255,255,255,0.35);
}
.nav-dropdown-menu a.nav-dd-sub { padding-left: 28px; }
.nav-dropdown-menu a.nav-dd-cta-item { color: var(--rsg-red); font-weight: 700; }

/* ── Phone menu ── */
.rsg-nav .nav-hamburger,
.rsg-nav .nav-hamburger:hover,
.rsg-nav .nav-hamburger:focus {
  display: none;
  flex-direction: column; justify-content: center; align-items: center;
  gap: 5px; width: 40px; height: 40px;
  background: none; border: none; cursor: pointer;
  padding: 4px; margin: 0 0 0 auto; flex-shrink: 0;
  color: #fff; font-size: 13px; line-height: 1;
}
.nav-hamburger span {
  display: block; width: 22px; height: 2px;
  background: rgba(255,255,255,0.85); border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}
.nav-hamburger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.is-open span:nth-child(2) { opacity: 0; }
.nav-hamburger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-mobile-menu {
  display: none;
  position: fixed;
  top: var(--nav-h); left: 0; right: 0;
  max-height: calc(100vh - var(--nav-h));
  overflow-y: auto;
  background: rgba(10,10,10,0.97);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  z-index: 99;
  padding: 12px 0 20px;
}
.admin-bar .nav-mobile-menu { top: calc(var(--nav-h) + 32px); }
@media (max-width: 782px) { .admin-bar .nav-mobile-menu { top: calc(var(--nav-h) + 46px); } }
.nav-mobile-menu.is-open { display: block; }
.nav-mobile-menu ul { list-style: none; margin: 0; padding: 0 0 0 0; }
.nav-mobile-menu ul li { margin: 0; padding: 0; }
.nav-mobile-menu ul li a {
  display: block;
  padding: 13px 28px;
  font-size: 13px; font-weight: 600;
  letter-spacing: 0.07em; text-transform: uppercase;
  color: rgba(255,255,255,0.75);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  transition: color 0.2s, background 0.2s;
}
.nav-mobile-menu ul li a:hover { color: #fff; background: rgba(255,255,255,0.04); }
.nav-mobile-menu ul li.nav-mobile-section {
  padding: 10px 28px 5px;
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--rsg-red);
}
.nav-mobile-menu ul li.nav-mobile-sub a {
  padding-left: 40px;
  font-size: 12px;
  color: rgba(255,255,255,0.6);
}
.nav-mobile-menu .nav-mobile-cta {
  display: block;
  margin: 16px 28px 0;
  background: var(--rsg-red); color: #fff;
  font-size: 13px; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  padding: 12px 22px; text-align: center;
  transition: background 0.2s;
}
.nav-mobile-menu .nav-mobile-cta, .nav-mobile-menu .nav-mobile-cta:hover { color: #fff; }
.nav-mobile-menu .nav-mobile-cta:hover { background: var(--rsg-red-soft); }

/* The full bar needs a wide screen. Below 1600px the phone menu takes over. */
@media (max-width: 1600px) {
  .rsg-nav { padding: 0 20px; }
  .rsg-nav .nav-links { display: none; }
  .rsg-nav .nav-cta-btn { display: none; }
  .rsg-nav .nav-hamburger, .rsg-nav .nav-hamburger:hover, .rsg-nav .nav-hamburger:focus { display: flex; }
  .nav-cart-icon { margin-left: 8px; }
}
@media (min-width: 1601px) {
  .nav-mobile-menu, .nav-mobile-menu.is-open { display: none; }
}
@media (max-width: 768px) {
  .rsg-nav { padding: 0 24px; }
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--rsg-black); color: var(--rsg-white); padding: 60px 56px 40px; font-weight: 300; }
.footer-top {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 40px; padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.08); flex-wrap: wrap;
}
.footer-brand p { font-size: 13px; font-weight: 300; color: rgba(255,255,255,0.45); margin: 14px 0 0; max-width: 280px; line-height: 1.6; }
.footer-logo { height: 28px; filter: brightness(0) invert(1); }
.footer-links h4 { font-family: var(--font); font-size: 11px; font-weight: 700; line-height: 1.5; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255,255,255,0.4); margin: 0 0 16px; padding: 0; }
.footer .footer-links ul { list-style: none; margin: 0; padding: 0; }
.footer-links li { margin: 0 0 10px; }
.footer-links a { font-size: 13px; font-weight: 400; color: rgba(255,255,255,0.65); transition: color 0.2s; }
.footer-links a:hover { color: #fff; }
.footer-bottom { padding-top: 28px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.footer-bottom p { font-size: 12px; font-weight: 300; line-height: 1.5; color: rgba(255,255,255,0.28); margin: 0; }
@media (max-width: 768px) {
  .footer { padding: 48px 24px 32px; }
}

/* Text for screen readers only. */
.screen-reader-text {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap;
}
