/* Ridgewire 7.1 — mobile-first catalog theme */

:root {
  --rw-bg: #050607;
  --rw-bg-soft: #0d1014;
  --rw-panel: #11151b;
  --rw-line: #222933;
  --rw-text: #f4f6f8;
  --rw-muted: #9aa3ad;
  --rw-accent: #e2a23a;
  --rw-accent-2: #2fbfa0;
  --rw-danger: #d64545;
  --rw-new: #2f9e5c;
  --rw-best: #d4a017;
  --rw-card: #ffffff;
  --rw-card-text: #151515;
  --rw-radius: 4px;
  --rw-max: 1180px;
  --rw-font: "Manrope", "Segoe UI", sans-serif;
  --rw-display: "Barlow Condensed", "Arial Narrow", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--rw-bg);
  color: var(--rw-text);
  font-family: var(--rw-font);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.rw-site {
  min-height: 100vh;
  background:
    radial-gradient(1200px 500px at 50% -10%, rgba(47, 191, 160, 0.08), transparent 60%),
    linear-gradient(180deg, #07090c 0%, #050607 40%, #050607 100%);
}

.rw-container {
  width: min(100% - 1.25rem, var(--rw-max));
  margin-inline: auto;
}

/* Top utility bar */
.rw-topbar {
  border-bottom: 1px solid var(--rw-line);
  background: #000;
  font-size: 12px;
}

.rw-topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-height: 36px;
}

.rw-topbar__menu,
.rw-topbar__left {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.rw-topbar__menu a,
.rw-topbar__link,
.rw-topbar__phone {
  color: var(--rw-muted);
}

.rw-topbar__menu a:hover,
.rw-topbar__link:hover,
.rw-topbar__phone:hover {
  color: var(--rw-text);
}

.rw-topbar__right {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.rw-topbar__phone,
.rw-topbar__cart {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.rw-topbar__cart-count {
  display: inline-grid;
  place-items: center;
  min-width: 1.1rem;
  height: 1.1rem;
  padding: 0 0.2rem;
  border-radius: 999px;
  background: var(--rw-accent);
  color: #111;
  font-size: 10px;
  font-weight: 700;
}

/* Brand + QR */
.rw-brandbar {
  background: #000;
  padding: 0.85rem 0 0.65rem;
}

.rw-brandbar__inner {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 0.75rem;
}

.rw-brand__wordmark {
  display: inline-grid;
  gap: 0.2rem;
  line-height: 1;
}

.rw-brand__ridge {
  font-family: var(--rw-display);
  font-size: clamp(2rem, 8vw, 3.4rem);
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--rw-accent-2);
}

.rw-brand__wire {
  font-family: var(--rw-display);
  font-size: clamp(2rem, 8vw, 3.4rem);
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--rw-text);
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.35);
}

.rw-brand__loc {
  justify-self: start;
  margin-top: 0.15rem;
  padding: 0.15rem 0.45rem;
  background: var(--rw-danger);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.rw-brand__logo,
.rw-brand .custom-logo {
  max-height: 72px;
  width: auto;
}

.rw-brandbar__qr {
  width: 72px;
  height: 72px;
  padding: 4px;
  background: #fff;
}

.rw-brandbar__qr img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rw-nav-toggle {
  width: 42px;
  height: 42px;
  border: 1px solid var(--rw-line);
  background: var(--rw-panel);
  display: inline-grid;
  place-content: center;
  gap: 5px;
  cursor: pointer;
}

.rw-nav-toggle__bar {
  width: 18px;
  height: 2px;
  background: var(--rw-text);
  display: block;
}

/* Primary nav */
.rw-nav {
  background: #000;
  border-top: 1px solid var(--rw-line);
  border-bottom: 1px solid var(--rw-line);
}

.rw-nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.rw-nav__menu {
  list-style: none;
  margin: 0;
  padding: 0.35rem 0;
  display: none;
  flex-direction: column;
  width: 100%;
}

.rw-nav.is-open .rw-nav__menu {
  display: flex;
}

.rw-nav__menu > li {
  border-bottom: 1px solid var(--rw-line);
}

.rw-nav__menu a {
  display: block;
  padding: 0.75rem 0.15rem;
  color: var(--rw-text);
  font-size: 0.92rem;
  font-weight: 600;
}

.rw-nav__menu .sub-menu {
  list-style: none;
  margin: 0;
  padding: 0 0 0.5rem 0.85rem;
}

.rw-nav__menu .sub-menu a {
  color: var(--rw-muted);
  font-weight: 500;
  font-size: 0.86rem;
  padding: 0.4rem 0;
}

.rw-search-toggle {
  border: 0;
  background: transparent;
  color: var(--rw-accent);
  cursor: pointer;
  padding: 0.65rem;
  flex: 0 0 auto;
}

.rw-search-panel {
  border-top: 1px solid var(--rw-line);
  padding: 0.75rem 0 1rem;
  background: #050505;
}

.rw-search-form {
  display: flex;
  gap: 0.5rem;
}

.rw-search-form__input {
  flex: 1;
  min-width: 0;
  border: 1px solid var(--rw-line);
  background: var(--rw-panel);
  color: var(--rw-text);
  padding: 0.7rem 0.85rem;
}

.rw-search-form__submit {
  border: 0;
  background: var(--rw-accent);
  color: #111;
  font-weight: 700;
  padding: 0.7rem 1rem;
  cursor: pointer;
}

/* Icons via CSS shapes (no SVG assets required for chrome) */
.rw-icon {
  display: inline-block;
  width: 14px;
  height: 14px;
  position: relative;
}

.rw-icon--phone::before {
  content: "";
  position: absolute;
  inset: 1px;
  border: 1.5px solid currentColor;
  border-radius: 2px 2px 3px 3px;
  transform: rotate(-20deg);
}

.rw-icon--cart::before,
.rw-icon--cart-sm::before {
  content: "";
  position: absolute;
  left: 1px;
  right: 1px;
  top: 4px;
  bottom: 1px;
  border: 1.5px solid currentColor;
  border-radius: 1px 1px 2px 2px;
}

.rw-icon--cart::after,
.rw-icon--cart-sm::after {
  content: "";
  position: absolute;
  left: 3px;
  right: 3px;
  top: 1px;
  height: 4px;
  border: 1.5px solid currentColor;
  border-bottom: 0;
  border-radius: 4px 4px 0 0;
}

.rw-icon--search::before {
  content: "";
  position: absolute;
  width: 9px;
  height: 9px;
  border: 2px solid currentColor;
  border-radius: 50%;
  left: 0;
  top: 0;
}

.rw-icon--search::after {
  content: "";
  position: absolute;
  width: 6px;
  height: 2px;
  background: currentColor;
  right: 0;
  bottom: 2px;
  transform: rotate(45deg);
}

/* Hero */
.rw-hero {
  padding: 1rem 0 0.5rem;
}

.rw-hero__panel {
  position: relative;
  overflow: hidden;
  min-height: 320px;
  background:
    linear-gradient(105deg, rgba(5, 6, 7, 0.92) 0%, rgba(5, 6, 7, 0.72) 42%, rgba(5, 6, 7, 0.35) 100%),
    var(--rw-hero-image, none) center / cover no-repeat,
    var(--rw-panel);
  border: 1px solid var(--rw-line);
  display: grid;
  gap: 1rem;
  padding: 1.25rem;
}

.rw-hero__eyebrow {
  margin: 0 0 0.35rem;
  color: var(--rw-accent);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.rw-hero__title {
  margin: 0;
  font-family: var(--rw-display);
  font-size: clamp(2.6rem, 12vw, 4.8rem);
  font-weight: 800;
  letter-spacing: 0.06em;
  line-height: 0.95;
  text-transform: uppercase;
}

.rw-hero__subtitle {
  margin: 0.65rem 0 1rem;
  max-width: 28rem;
  color: #d7dde4;
}

.rw-hero__notes {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}

.rw-hero__notes li {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  color: #e8edf2;
  font-size: 0.9rem;
}

.rw-hero__note-icon {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1px solid var(--rw-accent-2);
  box-shadow: inset 0 0 0 4px rgba(47, 191, 160, 0.2);
  flex: 0 0 auto;
  margin-top: 0.15rem;
}

.rw-hero__aside {
  justify-self: start;
}

.rw-hero__qr {
  display: grid;
  justify-items: center;
  gap: 0.35rem;
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 0.65rem;
  width: min(100%, 150px);
}

.rw-hero__qr img {
  width: 110px;
  height: 110px;
  object-fit: cover;
  background: #fff;
}

.rw-hero__qr-label {
  font-weight: 800;
  letter-spacing: 0.08em;
}

.rw-hero__qr-phone {
  color: var(--rw-accent);
  font-size: 0.85rem;
  font-weight: 700;
}

/* Promos */
.rw-promos {
  padding: 0.85rem 0 0.35rem;
}

.rw-promos__grid {
  display: grid;
  gap: 0.65rem;
}

.rw-promos__item {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--rw-line);
  background: var(--rw-panel);
  aspect-ratio: 16 / 10;
}

.rw-promos__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.rw-promos__item:hover img {
  transform: scale(1.04);
}

.rw-promos__badge {
  position: absolute;
  top: 0.65rem;
  left: 0.65rem;
  background: var(--rw-danger);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.25rem 0.45rem;
}

/* Products */
.rw-products,
.rw-page {
  padding: 1.25rem 0 2rem;
}

.rw-section-title {
  margin: 0 0 0.9rem;
  font-family: var(--rw-display);
  font-size: clamp(1.45rem, 5vw, 2rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #c9d0d8;
  text-transform: uppercase;
}

.rw-section-title--spaced {
  margin-top: 2rem;
}

.rw-product-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
}

.rw-card {
  background: var(--rw-card);
  color: var(--rw-card-text);
  border: 1px solid #e6e6e6;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  animation: rw-rise 0.55s ease both;
}

.rw-card__media {
  position: relative;
  display: block;
  background: #f3f3f3;
  aspect-ratio: 1 / 1;
  overflow: hidden;
}

.rw-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rw-card__ribbon {
  position: absolute;
  top: 12px;
  left: -28px;
  width: 110px;
  text-align: center;
  transform: rotate(-45deg);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  padding: 0.28rem 0;
  z-index: 2;
}

.rw-card__ribbon--new {
  background: var(--rw-new);
  color: #fff;
}

.rw-card__pill {
  position: absolute;
  top: 2.6rem;
  left: 0.55rem;
  z-index: 2;
  background: var(--rw-best);
  color: #111;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 0.2rem 0.45rem;
}

.rw-card__overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0.45rem 0.6rem;
  background: rgba(0, 0, 0, 0.62);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 600;
}

.rw-card__body {
  padding: 0.85rem 0.8rem 1rem;
  text-align: center;
  display: grid;
  gap: 0.35rem;
}

.rw-card__title {
  margin: 0;
  font-size: 1rem;
  line-height: 1.25;
}

.rw-card__title a:hover {
  color: var(--rw-danger);
}

.rw-card__spec,
.rw-card__sold,
.rw-card__note {
  margin: 0;
  color: #777;
  font-size: 0.82rem;
}

.rw-card__price {
  margin: 0.15rem 0 0.35rem;
  font-size: 1.15rem;
  font-weight: 800;
}

.rw-card__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  margin: 0.15rem auto 0;
  min-height: 40px;
  padding: 0.55rem 0.9rem;
  background: var(--rw-danger);
  color: #fff !important;
  font-weight: 700;
  border-radius: var(--rw-radius);
}

.rw-card__btn:hover {
  filter: brightness(1.08);
}

.rw-icon--cart-sm {
  width: 12px;
  height: 12px;
}

/* Footer links row — no heading label */
.rw-footer {
  border-top: 1px solid var(--rw-line);
  background: #000;
  padding: 2rem 0 1.5rem;
}

.rw-footer__contact {
  margin-bottom: 1.25rem;
}

.rw-footer__title {
  margin: 0 0 0.35rem;
  font-family: var(--rw-display);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 1.2rem;
}

.rw-footer__name,
.rw-footer__blurb,
.rw-footer__phone,
.rw-footer__hours {
  margin: 0.2rem 0;
  color: var(--rw-muted);
}

.rw-footer__phone a {
  color: var(--rw-accent);
  font-weight: 700;
}

.rw-footer-links {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  margin: 1.25rem 0 1.5rem;
  padding: 0.85rem 0;
  border-top: 1px solid var(--rw-line);
  border-bottom: 1px solid var(--rw-line);
}

.rw-footer-links__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex !important;
  flex-wrap: wrap;
  gap: 0.65rem 1.15rem;
  align-items: center;
}

.rw-footer-links__item {
  display: list-item;
  list-style: none;
}

.rw-footer-links__anchor {
  display: inline-block;
  color: #f2f5f8 !important;
  font-size: 0.95rem;
  font-weight: 600;
  white-space: nowrap;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(226, 162, 58, 0.55);
}

.rw-footer-links__anchor:hover {
  color: var(--rw-accent) !important;
  text-decoration-color: var(--rw-accent);
}

.rw-footer__copy {
  margin: 0;
  color: #6d7680;
  font-size: 0.78rem;
}

/* Single / page */
.rw-entry__header {
  margin-bottom: 1rem;
}

.rw-entry__title {
  margin: 0;
  font-family: var(--rw-display);
  font-size: clamp(1.8rem, 6vw, 2.6rem);
  letter-spacing: 0.03em;
}

.rw-entry__meta,
.rw-empty {
  color: var(--rw-muted);
}

.rw-entry__content {
  color: #d5dbe2;
}

.rw-entry__content p {
  margin-top: 0;
}

.rw-product-single {
  display: grid;
  gap: 1.25rem;
}

.rw-product-single__media {
  background: #fff;
  border: 1px solid var(--rw-line);
}

.rw-product-single__media img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.rw-product-single__price {
  font-size: 1.6rem;
  font-weight: 800;
  margin: 0.4rem 0;
}

.rw-page--center {
  text-align: center;
}

.rw-post-list {
  display: grid;
  gap: 1rem;
}

.rw-entry--list {
  border-bottom: 1px solid var(--rw-line);
  padding-bottom: 1rem;
}

.navigation.pagination {
  margin-top: 1.5rem;
}

.navigation.pagination .nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.navigation.pagination a,
.navigation.pagination span {
  display: inline-block;
  padding: 0.4rem 0.7rem;
  border: 1px solid var(--rw-line);
  background: var(--rw-panel);
}

@keyframes rw-rise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (min-width: 640px) {
  .rw-product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .rw-promos__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .rw-promos__item {
    aspect-ratio: 1 / 1;
  }

  .rw-hero__panel {
    grid-template-columns: 1.4fr 0.6fr;
    align-items: end;
    min-height: 380px;
    padding: 1.5rem;
  }

  .rw-hero__aside {
    justify-self: end;
  }
}

@media (min-width: 960px) {
  .rw-brandbar__inner {
    grid-template-columns: 1fr auto;
  }

  .rw-nav-toggle {
    display: none;
  }

  .rw-nav__menu {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.15rem 1.1rem;
    padding: 0;
    width: auto;
  }

  .rw-nav__menu > li {
    border: 0;
    position: relative;
  }

  .rw-nav__menu > li > a {
    padding: 0.85rem 0;
    font-size: 0.9rem;
  }

  .rw-nav__menu .sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 180px;
    background: #0a0c0f;
    border: 1px solid var(--rw-line);
    padding: 0.4rem 0;
    z-index: 20;
  }

  .rw-nav__menu .sub-menu a {
    padding: 0.5rem 0.85rem;
  }

  .rw-nav__menu > li:hover > .sub-menu {
    display: block;
  }

  .rw-product-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .rw-product-single {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }

  .rw-brandbar__qr {
    width: 96px;
    height: 96px;
  }

  .rw-hero__panel {
    min-height: 420px;
    padding: 2rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
