/* Research Store Core — styles layered on the Storefront theme.
   Brand colors are set in Appearance → Customize; these cover the custom pieces. */
:root {
  /* Rise Labs brand, taken from the Rise Lab+ logo */
  --rsc-navy: #000000;      /* brand black */
  --rsc-teal: #52c800;      /* brand green (fills, borders) */
  --rsc-teal-dark: #2f7a00; /* green that is readable as text on white */
  --rsc-ice: #f5f8f2;
  --rsc-line: #e3e8df;
  --rsc-warn-bg: #fff6e5;
  --rsc-warn-line: #f5c26b;
}

body, button, input, select, textarea, .site-title, h1, h2, h3, h4, h5, h6 {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
}
h1, h2, h3, .site-title a { letter-spacing: -0.01em; }

/* ---------- Top RUO banner ---------- */
.rsc-ruo-bar {
  background: var(--rsc-navy);
  color: #fff;
  text-align: center;
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .02em;
  padding: 8px 16px;
}
.rsc-ruo-bar span { color: var(--rsc-warn-line); }

/* ---------- Entry gate ---------- */
.rsc-gate { display: none; }
html.rsc-gate-active .rsc-gate {
  display: grid;
  position: fixed;
  inset: 0;
  z-index: 99999;
  place-items: center;
  padding: 16px;
  background: rgba(18, 18, 18, .85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
html.rsc-gate-active, html.rsc-gate-active body { overflow: hidden; }
.rsc-gate-box {
  width: min(560px, 100%);
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  background: #fff;
  border-radius: 16px;
  padding: 32px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .3);
  border-top: 6px solid var(--rsc-teal);
}
.rsc-gate-brand {
  font-weight: 700;
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--rsc-teal-dark);
  margin-bottom: 8px;
}
.rsc-gate h2 { margin: 0 0 8px; font-size: 1.6rem; color: var(--rsc-navy); }
.rsc-gate-intro { color: #4a5568; margin-bottom: 20px; }
.rsc-check {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px;
  margin-bottom: 10px;
  border: 1px solid var(--rsc-line);
  border-radius: 10px;
  cursor: pointer;
  font-size: .95rem;
  line-height: 1.5;
  color: #1a202c;
}
.rsc-check:hover { border-color: var(--rsc-teal); background: var(--rsc-ice); }
.rsc-check input { margin-top: 4px; width: 18px; height: 18px; flex-shrink: 0; accent-color: var(--rsc-teal); }
.rsc-check a { color: var(--rsc-teal-dark); text-decoration: underline; }
.rsc-gate-error { color: #c53030; font-weight: 600; margin: 4px 0 0; }
.rsc-gate-actions { display: flex; gap: 12px; margin-top: 20px; flex-wrap: wrap; }
.rsc-btn {
  flex: 1;
  display: inline-block;
  text-align: center;
  padding: 14px 20px;
  border: 2px solid var(--rsc-teal);
  border-radius: 10px;
  background: var(--rsc-teal);
  color: #000 !important;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  text-decoration: none !important;
}
.rsc-btn:hover { background: var(--rsc-teal-dark); border-color: var(--rsc-teal-dark); color: #fff !important; }
.rsc-btn-ghost { flex: 0 0 auto; background: #fff; color: var(--rsc-navy) !important; border-color: var(--rsc-line); }
.rsc-btn-ghost:hover { background: var(--rsc-ice); border-color: var(--rsc-navy); }

/* ---------- Product page ---------- */
.rsc-specs {
  width: 100%;
  margin: 0 0 20px;
  border-collapse: collapse;
  font-size: .92rem;
  background: var(--rsc-ice);
  border-radius: 10px;
  overflow: hidden;
}
.rsc-specs th, .rsc-specs td { padding: 10px 14px; border-bottom: 1px solid var(--rsc-line); text-align: left; background: transparent; }
.rsc-specs th { width: 40%; color: #4a5568; font-weight: 600; }
.rsc-specs tr:last-child th, .rsc-specs tr:last-child td { border-bottom: 0; }
.rsc-specs a { color: var(--rsc-teal-dark); font-weight: 600; }
.rsc-ruo-notice {
  background: var(--rsc-warn-bg);
  border: 1px solid var(--rsc-warn-line);
  border-left-width: 5px;
  border-radius: 8px;
  padding: 12px 16px;
  font-size: .88rem;
  line-height: 1.55;
  margin-bottom: 20px;
  color: #5a4210;
}

/* ---------- Shop grid ---------- */
ul.products li.product {
  background: #fff;
  border: 1px solid var(--rsc-line);
  border-radius: 12px;
  padding: 16px !important;
  transition: box-shadow .2s, transform .2s;
}
ul.products li.product:hover { box-shadow: 0 10px 28px rgba(0, 0, 0, .1); transform: translateY(-3px); }
ul.products li.product img { border-radius: 8px; background: var(--rsc-ice); }
.rsc-card-meta { display: flex; justify-content: center; gap: 8px; align-items: center; margin: 4px 0 8px; font-size: .8rem; }
.rsc-purity { color: var(--rsc-teal-dark); font-weight: 600; }
.rsc-tag {
  background: var(--rsc-navy);
  color: #fff;
  font-weight: 700;
  font-size: .7rem;
  letter-spacing: .06em;
  padding: 2px 8px;
  border-radius: 99px;
}

/* ---------- Homepage ---------- */
.rsc-trust {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin: 0 0 48px;
}
.rsc-trust-item {
  background: var(--rsc-ice);
  border: 1px solid var(--rsc-line);
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.rsc-trust-item span { font-size: 1.8rem; }
.rsc-trust-item strong { color: var(--rsc-navy); }
.rsc-trust-item small { color: #4a5568; }

/* ---------- Checkout attestation ---------- */
.rsc-attest {
  background: var(--rsc-warn-bg);
  border: 1px solid var(--rsc-warn-line);
  border-radius: 8px;
  padding: 12px 16px;
  margin-bottom: 16px;
  font-size: .9rem;
}
.rsc-attest .form-row { margin: 0; }
.rsc-attest a { text-decoration: underline; }

/* ---------- Footer disclaimer ---------- */
.rsc-footer-disclaimer {
  clear: both;
  font-size: .8rem;
  line-height: 1.6;
  opacity: .85;
  border-top: 1px solid rgba(255, 255, 255, .15);
  padding: 20px 0 8px;
  margin-top: 8px;
}

@media (max-width: 600px) {
  .rsc-gate-box { padding: 22px; }
  .rsc-gate h2 { font-size: 1.35rem; }
  .rsc-check { font-size: .88rem; padding: 12px; }
}

/* ---------- Homepage hero (page content on the Storefront homepage template) ---------- */
.page-template-template-homepage .site-main > .type-page {
  background: linear-gradient(135deg, #000000 0%, #0d1a05 55%, #52c800 170%) !important;
  color: #d6d6d6;
  border-radius: 16px;
  padding: 72px 24px !important;
  margin: 24px 0 32px !important;
  text-align: center;
}
.page-template-template-homepage .site-main > .type-page h1 {
  color: #fff !important;
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 700;
  max-width: 760px;
  margin: 0 auto 16px;
}
.page-template-template-homepage .site-main > .type-page p { max-width: 620px; margin: 0 auto 28px; font-size: 1.1rem; }
.page-template-template-homepage .wp-block-buttons { justify-content: center; }
.page-template-template-homepage .wp-block-button__link {
  background: #52c800 !important;
  color: #000 !important;
  border-radius: 10px;
  padding: 14px 28px;
  font-weight: 700;
}
.page-template-template-homepage .wp-block-button__link:hover { background: #46ad00 !important; }

/* ---------- Header with logo ---------- */
.site-header .custom-logo-link img { max-height: 64px; width: auto; }
.site-header { border-bottom: 3px solid var(--rsc-teal); }
.main-navigation ul li a:hover, .main-navigation ul li.current-menu-item > a { color: var(--rsc-teal-dark) !important; }
ul.products li.product img { background: #fff; }

/* ---------- Homepage About section ---------- */
.rsc-about {
  background: #fff;
  border: 1px solid var(--rsc-line);
  border-left: 6px solid var(--rsc-teal);
  border-radius: 12px;
  padding: 36px 40px;
  margin: 0 0 48px;
}
.rsc-about h2 { margin: 0 0 16px; font-weight: 700; }
.rsc-about-body h3 { font-size: 1.3rem; font-weight: 700; color: var(--rsc-teal-dark); margin: 0 0 12px; }
.rsc-about-body p { font-size: 1.05rem; line-height: 1.7; }
.rsc-about-body p:last-child { margin-bottom: 0; }
.rsc-about-body .rsc-about-fine { font-size: .9rem; color: #555; background: var(--rsc-ice); border-radius: 8px; padding: 12px 16px; }
@media (max-width: 600px) { .rsc-about { padding: 24px 20px; } }

/* ---------- Wholesale ---------- */
.rsc-wholesale-line { background: #f1fae9; border: 1px solid #b9e59a; border-radius: 8px; padding: 8px 12px; font-size: .9rem; }
.rsc-wholesale-banner {
  background: var(--rsc-navy); color: #fff; border-radius: 12px; padding: 16px 20px; margin: 0 0 16px;
  text-align: center; font-size: 1.05rem;
}
.rsc-wholesale-banner strong { color: var(--rsc-teal); }

/* ---------- Gate sign-up fields ---------- */
.rsc-gate-box { width: min(640px, 100%); }
.rsc-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 14px; margin-bottom: 16px; }
.rsc-field { display: flex; flex-direction: column; gap: 4px; font-size: .85rem; font-weight: 600; color: #333; }
.rsc-field-wide { grid-column: 1 / -1; }
.rsc-field input, .rsc-field select {
  width: 100%; padding: 10px 12px; border: 1px solid var(--rsc-line); border-radius: 8px;
  font-size: 1rem; font-weight: 400; background: #fff; color: #111; box-shadow: none;
}
.rsc-field input:focus, .rsc-field select:focus { outline: 2px solid var(--rsc-teal); outline-offset: 0; border-color: var(--rsc-teal); }
.rsc-check-optin { background: var(--rsc-ice); }
.rsc-check-optin em { color: #666; font-style: normal; font-size: .85em; }
@media (max-width: 600px) { .rsc-fields { grid-template-columns: 1fr; } }

/* ---------- About page logo ---------- */
.rsc-about-logo { margin: 0 auto 24px; }
.rsc-about-logo img { max-width: 240px; height: auto; }
.rsc-about .rsc-about-logo { display: none; } /* homepage section already sits under the header logo */

/* ---------- Top bar: RUO notice + language menu ---------- */
.rsc-topbar { display: flex; align-items: center; justify-content: center; gap: 16px; background: var(--rsc-navy); padding: 0 16px; position: relative; }
.rsc-topbar .rsc-ruo-bar { padding: 8px 0; }
.rsc-topbar .rsc-lang { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); }
.rsc-lang { display: inline-flex; align-items: center; gap: 6px; margin: 0; color: #fff; font-size: .82rem; }
.rsc-lang-select {
  appearance: auto; background: #1c1c1c; color: #fff; border: 1px solid #3a3a3a; border-radius: 6px;
  padding: 3px 6px; font-size: .82rem; max-width: 170px; cursor: pointer;
}
.rsc-gate-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 8px; }
.rsc-gate-top .rsc-gate-brand { margin: 0; }
.rsc-gate .rsc-lang { color: #333; }
.rsc-gate .rsc-lang-select { background: #fff; color: #111; border-color: var(--rsc-line); }
/* Hide Google's own banner/tooltip; our menu replaces it. */
.rsc-google-translate, .goog-te-banner-frame, iframe.skiptranslate, #goog-gt-tt, .goog-te-balloon-frame { display: none !important; }
body { top: 0 !important; }
.goog-text-highlight { background: none !important; box-shadow: none !important; }
@media (max-width: 760px) {
  .rsc-topbar { flex-direction: column; gap: 4px; padding: 6px 12px; }
  .rsc-topbar .rsc-ruo-bar { padding: 0; }
  .rsc-topbar .rsc-lang { position: static; transform: none; }
}

/* ---------- Crypto checkout + payment page ---------- */
.rsc-coin-choice { border: 0; padding: 0; margin: 8px 0 0; }
.rsc-coin-choice legend { font-weight: 700; margin-bottom: 4px; }
.rsc-coin-choice label { display: block; padding: 6px 0; cursor: pointer; }
.rsc-pay { border: 2px solid var(--rsc-teal); border-radius: 14px; padding: 24px; margin: 0 0 32px; background: #fff; }
.rsc-pay h2 { margin-top: 0; }
.rsc-pay-grid { display: grid; grid-template-columns: 200px 1fr; gap: 24px; align-items: start; }
.rsc-pay-qr { background: #fff; padding: 10px; border: 1px solid var(--rsc-line); border-radius: 10px; width: 200px; height: 200px; }
.rsc-pay-qr img, .rsc-pay-qr canvas { width: 180px !important; height: 180px !important; }
.rsc-pay-field { margin-bottom: 14px; }
.rsc-pay-field > span { display: block; font-weight: 700; font-size: .9rem; color: #444; margin-bottom: 4px; }
.rsc-copy-row { display: flex; gap: 8px; align-items: stretch; }
.rsc-copy-row code, .rsc-copy-row input {
  flex: 1; min-width: 0; background: var(--rsc-ice); border: 1px solid var(--rsc-line); border-radius: 8px;
  padding: 10px 12px; font-size: 1rem; word-break: break-all; color: #111;
}
.rsc-copy { flex: 0 0 auto; border-radius: 8px !important; }
.rsc-pay-network { background: #fff6e5; border: 1px solid #f5c26b; border-radius: 8px; padding: 10px 12px; font-size: .9rem; }
.rsc-pay-expires { font-size: .85rem; color: #555; }
.rsc-txid-form { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--rsc-line); }
.rsc-txid-form label { display: block; font-weight: 600; margin-bottom: 6px; }
.rsc-txid-msg { color: #c53030; font-weight: 600; margin-top: 8px; }
.rsc-txid-done { font-weight: 700; color: var(--rsc-teal-dark); }
@media (max-width: 600px) { .rsc-pay-grid { grid-template-columns: 1fr; } .rsc-pay-qr { margin: 0 auto; } }

/* ---------- Photos ---------- */
/* Homepage banner: lab vials photo under a black→green overlay. */
.page-template-template-homepage .site-main > .type-page {
  background:
    linear-gradient(135deg, rgba(0, 0, 0, .92) 0%, rgba(8, 20, 2, .82) 55%, rgba(47, 122, 0, .72) 100%),
    url("img/hero-vials.jpg") center / cover no-repeat !important;
}
/* Homepage About section: text + photo side by side. */
.rsc-about--photo { display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: center; }
.rsc-about-side img { width: 100%; height: 100%; min-height: 280px; object-fit: cover; border-radius: 10px; }
.rsc-about .rsc-about-photo { display: none; } /* shown beside the text instead */
/* About page photo */
.rsc-about-photo img { border-radius: 12px; width: 100%; max-height: 420px; object-fit: cover; }
/* Quality strip */
.rsc-quality {
  display: grid; grid-template-columns: 1fr 1fr; align-items: stretch; margin: 0 0 48px;
  background: var(--rsc-navy); color: #d6d6d6; border-radius: 12px; overflow: hidden;
}
.rsc-quality img { width: 100%; height: 100%; min-height: 300px; object-fit: cover; }
.rsc-quality-text { padding: 40px; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.rsc-quality-text h2 { color: #fff; margin: 0 0 12px; font-weight: 700; }
.rsc-quality-text h2::after { content: ""; display: block; width: 56px; height: 4px; margin-top: 12px; background: var(--rsc-teal); border-radius: 2px; }
.rsc-quality-text p { line-height: 1.7; }
@media (max-width: 768px) {
  .rsc-about--photo, .rsc-quality { grid-template-columns: 1fr; }
  .rsc-about-side { order: -1; }
  .rsc-quality-text { padding: 24px; }
}
