
@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@400;500;600;700&family=Inter:wght@400;500;600&display=swap');

:root {
  --r4r-dark: #0a0a09;
  --r4r-dark-alt: #141412;
  --r4r-cream: #e6dfc8;
  --r4r-ink: #1a1a17;
  --r4r-olive: #9f9c69;
  --r4r-olive-dark: #7d7a52;
}

html, body {
  background-color: var(--r4r-cream) !important;
  color: var(--r4r-ink) !important;
  font-family: 'Inter', sans-serif !important;
}
.site, .site-content, .content-area, article, .entry-content, .ast-separate-container {
  background-color: var(--r4r-cream) !important;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Oswald', sans-serif !important;
  color: var(--r4r-ink) !important;
  font-weight: 700 !important;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
p, li { color: var(--r4r-ink) !important; }
a { color: var(--r4r-olive-dark) !important; }
a:hover { color: var(--r4r-ink) !important; }

.site-header, .ast-primary-header-bar, #ast-desktop-header, #ast-mobile-header, .main-header-bar {
  background-color: var(--r4r-cream) !important;
  border-color: rgba(26,26,23,0.12) !important;
}
.main-header-menu .menu-item > a { color: var(--r4r-ink) !important; }
.main-header-menu .menu-item > a:hover,
.main-header-menu .current-menu-item > a { color: var(--r4r-olive-dark) !important; }
.site-title, .site-title a { color: var(--r4r-ink) !important; }

.site-footer, .ast-small-footer, footer, .ast-footer-overlay, .site-below-footer-wrap,
.ast-footer-copyright, #colophon {
  background-color: var(--r4r-dark) !important;
}
.ast-small-footer .ast-footer-copyright,
.ast-small-footer .ast-footer-copyright p,
.ast-small-footer .footer-primary-navigation a,
.site-footer p, .site-footer div, .site-footer span {
  color: var(--r4r-cream) !important;
}
.ast-small-footer a, .site-footer a { color: var(--r4r-olive) !important; }
.ast-small-footer a:hover, .site-footer a:hover { color: var(--r4r-cream) !important; }

.ast-button, button, input[type="submit"], .wp-block-button__link,
.wp-block-search__button, .wp-element-button {
  background-color: var(--r4r-olive-dark) !important;
  color: var(--r4r-cream) !important;
  border-color: var(--r4r-olive-dark) !important;
  font-family: 'Oswald', sans-serif !important;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.ast-button:hover, button:hover, input[type="submit"]:hover, .wp-block-button__link:hover {
  background-color: var(--r4r-ink) !important;
  color: var(--r4r-cream) !important;
}
::selection { background: var(--r4r-olive); color: var(--r4r-dark); }
.ast-mobile-header-active .menu-toggle,
.menu-toggle, .ast-mobile-menu-buttons-minimal svg { background-color: var(--r4r-olive-dark) !important; color: var(--r4r-cream) !important; }

.r4r-counter { color: var(--r4r-olive-dark) !important; }
.r4r-bracket::before, .r4r-bracket::after { border-color: var(--r4r-olive-dark) !important; }

.wp-block-cover, .wp-block-cover * { color: #fff !important; }

input, textarea, select {
  background-color: #fff !important;
  color: var(--r4r-ink) !important;
  border-color: var(--r4r-olive-dark) !important;
  max-width: 100%;
  box-sizing: border-box;
}

/* Program cards: olive instead of blue */
.has-vivid-cyan-blue-background-color {
  background-color: var(--r4r-olive-dark) !important;
}
.has-vivid-cyan-blue-background-color a {
  color: var(--r4r-cream) !important;
  text-decoration: underline;
}
.has-vivid-cyan-blue-background-color a:hover {
  color: #fff !important;
}

/* Site identity: title above logo, centered */
.ast-site-identity {
  display: flex !important;
  flex-direction: column-reverse !important;
  align-items: center !important;
  text-align: center !important;
}
.ast-site-identity .site-title,
.ast-site-identity .site-title a {
  width: 100%;
  text-align: center !important;
  display: block;
}
.home .entry-header,
.page.home .ast-no-thumbnail.entry-header {
  display: none !important;
}

#ast-desktop-header .site-logo-img,
#ast-mobile-header .site-logo-img {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center;
}
#ast-desktop-header .site-logo-img .custom-logo-link,
#ast-mobile-header .site-logo-img .custom-logo-link {
  order: 2 !important;
  display: inline-flex !important;
}
#ast-desktop-header .site-logo-img img.custom-logo,
#ast-mobile-header .site-logo-img img.custom-logo {
  object-fit: contain !important;
}
#ast-desktop-header .site-logo-img img.custom-logo {
  width: 125px !important;
  height: 125px !important;
  max-width: 125px !important;
}
#ast-mobile-header .site-logo-img img.custom-logo {
  width: 70px !important;
  height: 70px !important;
  max-width: 70px !important;
}
#ast-desktop-header .site-logo-img::before,
#ast-desktop-header .site-logo-img::after,
#ast-mobile-header .site-logo-img::before,
#ast-mobile-header .site-logo-img::after {
  content: '';
  display: inline-block;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}
#ast-desktop-header .site-logo-img::before { order: 1 !important; margin-right: 12px; width: 90px; height: 90px; background-image: url('https://r4r.center/wp-content/uploads/2026/07/shevron-chornyi-stryzh-cropped.png'); }
#ast-desktop-header .site-logo-img::after  { order: 3 !important; margin-left: 12px;  width: 90px; height: 90px; background-image: url('https://r4r.center/wp-content/uploads/2026/07/shevron-2bbps-transparent.png'); }
#ast-mobile-header .site-logo-img::before { order: 1 !important; margin-right: 8px; width: 50px; height: 50px; background-image: url('https://r4r.center/wp-content/uploads/2026/07/shevron-chornyi-stryzh-cropped.png'); }
#ast-mobile-header .site-logo-img::after  { order: 3 !important; margin-left: 8px;  width: 50px; height: 50px; background-image: url('https://r4r.center/wp-content/uploads/2026/07/shevron-2bbps-transparent.png'); }

@media (min-width: 922px) {
  #ast-desktop-header .main-header-menu .menu-item > a {
    padding-left: 8px !important;
    padding-right: 8px !important;
  }
  #ast-desktop-header .main-header-menu {
    flex-wrap: nowrap !important;
  }
}

@media (max-width: 921px) {
  .ast-site-identity .site-title { font-size: 20px !important; }
  h1 { font-size: 28px !important; }
  h2 { font-size: 22px !important; }
  .wp-block-cover .wp-block-heading { font-size: 30px !important; }
  .wp-block-columns { flex-wrap: wrap !important; }
  .r4r-stats, div[style*="display:flex"][style*="flex-wrap:wrap"] { gap: 14px !important; }
  .r4r-counter { font-size: 30px !important; }
  img.alignleft, img.alignright { float: none !important; display: block; margin: 0 auto 16px auto !important; }
  table { display: block; overflow-x: auto; }
}

body { overflow-x: hidden; }
img, video, iframe { max-width: 100%; height: auto; }

/* Footer credit: replace Astra's default "Powered by Astra" text
   (rendered by mu-plugins/r4r-footer-credit.php) */
.ast-footer-copyright .ast-footer-copyright {
  display: none !important;
}
.r4r-footer-credit {
  width: 100%;
  text-align: center;
}
.r4r-footer-line {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 6px 10px;
  margin: 0;
}
.r4r-footer-sep {
  opacity: 0.6;
}
.r4r-footer-credit-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  text-decoration: none;
}
.r4r-footer-credit-link:hover {
  text-decoration: underline;
}
.r4r-footer-logo {
  height: 28px;
  width: auto;
  display: inline-block;
}
