/*
Theme Name: R-GEN Child
Template: astra
Description: R-GEN Garage child theme — clean MINI specialist storefront (DM Sans, cyan/teal, flat).
Version: 1.0.0
*/

/* =========================================================
   Tokens
   ========================================================= */
:root {
  --rg-cyan: #13bdf0;
  --rg-cyan-dark: #0e9bc4;
  --rg-teal: #108474;
  --rg-ink: #1d1c1c;
  --rg-ink-2: #232323;
  --rg-muted: #7b7b7b;
  --rg-line: #e6e8eb;
  --rg-soft: #f9f9f9;
  --rg-white: #ffffff;

  /* Astra palette overrides */
  --ast-global-color-0: #13bdf0;
  --ast-global-color-1: #0e9bc4;
  --ast-global-color-2: #1d1c1c;
  --ast-global-color-3: #232323;
  --ast-global-color-4: #ffffff;
  --ast-global-color-5: #f9f9f9;
  --ast-global-color-6: #1d1c1c;
  --ast-global-color-7: #e6e8eb;
  --ast-global-color-8: #1d1c1c;
}

body,
button,
input,
select,
textarea,
.ast-button,
.ast-custom-button {
  font-family: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
  color: var(--rg-ink-2);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6,
.entry-title,
.site-title,
.site-title a {
  font-family: "DM Sans", sans-serif !important;
  font-weight: 800 !important;
  letter-spacing: -0.02em;
  color: var(--rg-ink) !important;
}

a { color: var(--rg-cyan-dark); }
a:hover, a:focus { color: var(--rg-teal); }

/* =========================================================
   Header
   ========================================================= */
.site-header,
.ast-primary-header-bar,
.main-header-bar {
  background: var(--rg-white) !important;
  border-bottom: 1px solid var(--rg-line);
}

.main-header-menu > .menu-item > .menu-link {
  font-size: 13px !important;
  font-weight: 700 !important;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--rg-ink) !important;
}

.main-header-menu > .menu-item > .menu-link:hover {
  color: var(--rg-cyan) !important;
}

.site-title a {
  font-size: 22px;
  font-weight: 800 !important;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}

/* =========================================================
   Buttons — flat, square, uppercase
   ========================================================= */
.rg-btn,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
.woocommerce .single_add_to_cart_button,
.wp-block-button__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--rg-cyan) !important;
  color: #fff !important;
  border: 0 !important;
  border-radius: 0 !important;
  padding: 14px 28px !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none !important;
  transition: background 0.18s ease, color 0.18s ease;
}

.rg-btn:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce .single_add_to_cart_button:hover,
.wp-block-button__link:hover {
  background: var(--rg-teal) !important;
  color: #fff !important;
}

.rg-btn--ghost {
  background: transparent !important;
  color: var(--rg-ink) !important;
  border: 1px solid var(--rg-ink) !important;
}
.rg-btn--ghost:hover {
  background: var(--rg-ink) !important;
  color: #fff !important;
}

/* =========================================================
   Homepage layout
   ========================================================= */
.rg-wrap {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

.rg-section { padding: 80px 0; }
.rg-section--soft { background: var(--rg-soft); }
.rg-section--tight { padding: 56px 0; }

.rg-eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--rg-cyan-dark);
  margin-bottom: 14px;
}

.rg-h2 {
  font-size: clamp(26px, 3vw, 38px);
  margin: 0 0 10px;
}

.rg-sub {
  color: var(--rg-muted);
  font-size: 16px;
  margin: 0;
  max-width: 60ch;
}

.rg-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 36px;
}

.rg-head .rg-link {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--rg-cyan-dark);
  white-space: nowrap;
}

/* Hero */
.rg-hero {
  position: relative;
  background: var(--rg-ink);
  color: #fff;
  overflow: hidden;
}
.rg-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(900px 420px at 78% 20%, rgba(19, 189, 240, 0.22), transparent 62%),
    radial-gradient(700px 380px at 10% 90%, rgba(16, 132, 116, 0.18), transparent 60%),
    linear-gradient(180deg, #1d1c1c 0%, #141313 100%);
  pointer-events: none;
}
.rg-hero__inner {
  position: relative;
  max-width: 1240px;
  margin: 0 auto;
  padding: 96px 24px 104px;
}
.rg-hero h1 {
  color: #fff !important;
  font-size: clamp(36px, 5.2vw, 64px);
  line-height: 1.03;
  margin: 0 0 20px;
  max-width: 18ch;
}
.rg-hero p {
  color: rgba(255, 255, 255, 0.72);
  font-size: 17px;
  line-height: 1.6;
  max-width: 52ch;
  margin: 0 0 32px;
}
.rg-hero .rg-eyebrow { color: var(--rg-cyan); }
.rg-hero__cta { display: flex; gap: 14px; flex-wrap: wrap; }
.rg-hero .rg-btn--ghost {
  color: #fff !important;
  border-color: rgba(255, 255, 255, 0.4) !important;
}
.rg-hero .rg-btn--ghost:hover {
  background: #fff !important;
  color: var(--rg-ink) !important;
}

/* Trust strip */
.rg-trust {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--rg-line);
  border-bottom: 1px solid var(--rg-line);
  background: var(--rg-white);
}
.rg-trust__item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 22px 20px;
  border-right: 1px solid var(--rg-line);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--rg-ink);
}
.rg-trust__item:last-child { border-right: 0; }
.rg-trust__item svg { width: 22px; height: 22px; color: var(--rg-cyan); flex: none; }

/* Category tiles */
.rg-cats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.rg-cat {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 220px;
  padding: 24px;
  background: linear-gradient(155deg, #232323 0%, #151414 100%);
  color: #fff !important;
  text-decoration: none !important;
  overflow: hidden;
  transition: transform 0.25s ease;
}
.rg-cat::after {
  content: "";
  position: absolute;
  right: -40px;
  bottom: -60px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(19, 189, 240, 0.35), transparent 70%);
}
.rg-cat:hover { transform: translateY(-4px); }
.rg-cat b {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.02em;
  position: relative;
  z-index: 1;
}
.rg-cat span {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 6px;
  position: relative;
  z-index: 1;
}

/* Split */
.rg-split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
.rg-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 28px;
}
.rg-stat b {
  display: block;
  font-size: 34px;
  font-weight: 800;
  color: var(--rg-cyan);
  line-height: 1;
}
.rg-stat span {
  display: block;
  margin-top: 8px;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--rg-muted);
}
.rg-list { list-style: none; padding: 0; margin: 24px 0 0; }
.rg-list li {
  padding: 14px 0;
  border-bottom: 1px solid var(--rg-line);
  font-size: 15px;
  color: var(--rg-ink-2);
  display: flex;
  gap: 10px;
}
.rg-list li::before {
  content: "";
  width: 7px;
  height: 7px;
  margin-top: 8px;
  background: var(--rg-cyan);
  flex: none;
}

/* Newsletter */
.rg-news {
  background: var(--rg-cyan);
  color: #fff;
  padding: 64px 0;
}
.rg-news__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.rg-news h2 { color: #fff !important; margin: 0 0 8px; font-size: 30px; }
.rg-news p { margin: 0; color: rgba(255, 255, 255, 0.85); }
.rg-news form { display: flex; gap: 0; flex: 1; max-width: 460px; min-width: 280px; }
.rg-news input[type="email"] {
  flex: 1;
  border: 0 !important;
  border-radius: 0 !important;
  padding: 15px 18px !important;
  font-size: 15px;
  background: #fff !important;
  color: var(--rg-ink) !important;
}
.rg-news button {
  border-radius: 0 !important;
  background: var(--rg-ink) !important;
  color: #fff !important;
  padding: 15px 28px !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 0 !important;
}
.rg-news button:hover { background: var(--rg-teal) !important; }

/* =========================================================
   WooCommerce product cards
   ========================================================= */
.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product {
  background: transparent;
  text-align: left;
  margin: 0;
}

.woocommerce ul.products li.product a img {
  border-radius: 0;
  margin-bottom: 14px;
  background: var(--rg-soft);
}

.woocommerce ul.products li.product .woocommerce-loop-product__title,
.woocommerce ul.products li.product .woocommerce-loop-category__title {
  font-size: 16px !important;
  font-weight: 700 !important;
  letter-spacing: -0.01em;
  color: var(--rg-ink) !important;
  padding: 0 !important;
  margin: 0 0 6px !important;
}

.woocommerce ul.products li.product .price {
  color: var(--rg-ink) !important;
  font-size: 16px !important;
  font-weight: 700 !important;
}
.woocommerce ul.products li.product .price del { color: var(--rg-muted) !important; font-weight: 400; }

.woocommerce ul.products li.product .button {
  margin-top: 10px !important;
  padding: 11px 18px !important;
  font-size: 11px !important;
}

.woocommerce span.onsale {
  background: var(--rg-cyan) !important;
  color: #fff !important;
  border-radius: 0 !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  min-height: 0 !important;
  line-height: 1.2 !important;
  padding: 6px 10px !important;
}

.woocommerce .woocommerce-result-count,
.woocommerce .woocommerce-ordering select {
  font-size: 14px;
  color: var(--rg-muted);
}

/* =========================================================
   Footer
   ========================================================= */
.site-footer,
.site-primary-footer-wrap,
.site-below-footer-wrap {
  background: var(--rg-ink) !important;
  color: rgba(255, 255, 255, 0.72) !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
}
.site-footer a,
.site-below-footer-wrap a { color: rgba(255, 255, 255, 0.72) !important; }
.site-footer a:hover,
.site-below-footer-wrap a:hover { color: var(--rg-cyan) !important; }
.ast-footer-copyright,
.ast-footer-copyright a { color: rgba(255, 255, 255, 0.55) !important; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 900px) {
  .rg-cats { grid-template-columns: repeat(2, 1fr); }
  .rg-trust { grid-template-columns: repeat(2, 1fr); }
  .rg-trust__item:nth-child(2) { border-right: 0; }
  .rg-split { grid-template-columns: 1fr; gap: 32px; }
  .rg-section { padding: 56px 0; }
  .rg-head { flex-direction: column; align-items: flex-start; gap: 10px; }
  .rg-hero__inner { padding: 64px 24px 72px; }
}

@media (max-width: 560px) {
  .rg-cats { grid-template-columns: 1fr; }
  .rg-trust { grid-template-columns: 1fr; }
  .rg-trust__item { border-right: 0; border-bottom: 1px solid var(--rg-line); }
  .rg-news form { flex-direction: column; }
}

/* =========================================================
   Home page: full-bleed sections
   ========================================================= */
.front-page .site-content,
.front-page .site-content > .ast-container,
.home .site-content,
.home .site-content > .ast-container {
  max-width: none !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  margin: 0 !important;
}
.front-page .ast-article-single,
.front-page .ast-separate-container .ast-article-single,
.home .ast-article-single,
.home .ast-separate-container .ast-article-single {
  padding: 0 !important;
  margin: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}
.front-page .entry-header,
.front-page .entry-title,
.front-page .ast-archive-description,
.home .entry-header,
.home .entry-title,
.home .ast-archive-description {
  display: none !important;
}
.front-page .entry-content,
.home .entry-content { margin: 0 !important; }

/* =========================================================
   Language switcher (inside the menu, click to open)
   ========================================================= */
.main-header-menu li.rg-lang {
  position: relative;
  display: flex !important;
  flex-direction: row !important;
  align-items: center;
  margin: 0 !important;
  float: none !important;
}

.main-header-menu li.rg-lang > a.rg-lang__toggle {
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
  height: 100%;
  padding: 0 13px !important;
  font-family: inherit !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  letter-spacing: 0.08em;
  text-transform: none;
  color: var(--rg-ink) !important;
  text-decoration: none !important;
  background: transparent !important;
  border: 0 !important;
}

.main-header-menu li.rg-lang > a.rg-lang__toggle:hover,
.main-header-menu li.rg-lang.is-open > a.rg-lang__toggle {
  color: var(--rg-cyan-dark) !important;
}

.rg-lang__caret {
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  font-size: 9px;
  line-height: 1;
  background: var(--rg-soft);
  border: 1px solid var(--rg-line);
  color: var(--rg-ink);
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.main-header-menu li.rg-lang.is-open .rg-lang__caret {
  transform: rotate(180deg);
  background: var(--rg-cyan);
  border-color: var(--rg-cyan);
  color: #fff;
}

/* Hidden by default — high specificity to beat Astra's menu rules. */
.main-header-menu li.rg-lang > ul.rg-lang__menu,
.rg-lang ul.rg-lang__menu {
  display: none !important;
  position: absolute !important;
  top: 100%;
  right: 0;
  left: auto;
  min-width: 160px;
  margin: 0;
  padding: 6px 0;
  background: #fff;
  border: 1px solid var(--rg-line);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
  list-style: none;
  z-index: 999;
}

.main-header-menu li.rg-lang.is-open > ul.rg-lang__menu {
  display: block !important;
}

.main-header-menu li.rg-lang > ul.rg-lang__menu > li.rg-lang__item {
  display: block !important;
  float: none !important;
  width: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
}

.main-header-menu li.rg-lang > ul.rg-lang__menu > li.rg-lang__item > a {
  display: block !important;
  padding: 9px 16px !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  letter-spacing: 0;
  text-transform: none;
  line-height: 1.4 !important;
  color: var(--rg-ink) !important;
  text-decoration: none !important;
  white-space: nowrap;
  background: transparent !important;
}

.main-header-menu li.rg-lang > ul.rg-lang__menu > li.rg-lang__item > a:hover {
  background: var(--rg-soft) !important;
  color: var(--rg-cyan-dark) !important;
}

.main-header-menu li.rg-lang > ul.rg-lang__menu > li.rg-lang__item.is-current > a {
  font-weight: 700 !important;
  color: var(--rg-cyan-dark) !important;
}

@media (max-width: 921px) {
  .main-header-menu li.rg-lang {
    display: block !important;
    width: 100%;
  }
  .main-header-menu li.rg-lang > a.rg-lang__toggle {
    height: auto;
    padding: 12px 0 !important;
  }
  .main-header-menu li.rg-lang > ul.rg-lang__menu {
    position: static !important;
    width: 100%;
    box-shadow: none;
    border: 0;
    border-top: 1px solid var(--rg-line);
    padding-left: 12px;
  }
}

/* Footer legal links */
.rg-legal {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-left: 10px;
}
.rg-legal a {
  color: rgba(255, 255, 255, 0.55) !important;
  font-size: 12.5px;
}
.rg-legal a:hover {
  color: var(--rg-cyan) !important;
}
.rg-legal__sep {
  color: rgba(255, 255, 255, 0.25);
  font-size: 12px;
}

