/*
Theme Name: Riser TT5
Theme URI: https://risernow.app
Description: Twenty Twenty-Five child theme — Riser dark-navy chrome (header, ships/trust bar, footer). Brand tokens locked to risernow.com SoT.
Author: Riser
Author URI: https://risernow.com
Template: twentytwentyfive
Version: 1.0.0
Requires at least: 6.7
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: riser-tt5
*/

/* ============================================================
   Riser chrome — dark navy SoT tokens (risernow.com index.html)
   ============================================================ */
:root {
  --riser-paper: #0B1622;
  --riser-white: #11212F;
  --riser-ink: #E9F2FB;
  --riser-ink-soft: #C1CFDA;
  --riser-line: #22384A;
  --riser-green: #3B9EFF;
  --riser-blue-dark: #6FB4FF;
  --riser-green-dark: #5AA9F5;
  --riser-ships: #08131E;
  --riser-display: "Bricolage Grotesque", sans-serif;
  --riser-body: "Hanken Grotesk", sans-serif;
}

body.theme-riser-tt5,
body.wp-theme-riser-tt5 {
  background: var(--riser-paper) !important;
  color: var(--riser-ink);
  font-family: var(--riser-body);
  -webkit-font-smoothing: antialiased;
}

body.theme-riser-tt5 .wp-site-blocks {
  background: var(--riser-paper);
  color: var(--riser-ink);
  padding: 0 !important;
}

/* Kill stock TT5 / WP credit if any parent pattern leaks through */
body.theme-riser-tt5 a[href="https://wordpress.org"],
body.theme-riser-tt5 a[href="https://wordpress.org/"] {
  display: none !important;
}
body.theme-riser-tt5 .riser-hide-wp-credit,
body.theme-riser-tt5 p:has(> a[href*="wordpress.org"]) {
  display: none !important;
}

/* ---- ships / trust bar ---- */
.riser-ships {
  background: var(--riser-ships);
  color: #eaf3ef;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  padding: 9px 16px;
  letter-spacing: 0.02em;
  font-family: var(--riser-body);
}
.riser-ships b { color: #fff; font-weight: 700; }
.riser-ships .sep { opacity: 0.55; margin: 0 0.35em; }

/* ---- header / nav ---- */
.riser-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(11, 22, 34, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--riser-line);
}
.riser-header-in {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  height: 68px;
  font-family: var(--riser-body);
}
.riser-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex: none;
  color: var(--riser-ink);
}
.riser-brand img {
  height: 36px;
  width: auto;
  display: block;
}
.riser-brand-mark {
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-bottom: 15px solid var(--riser-green);
}
.riser-brand-name {
  font-family: var(--riser-display);
  font-weight: 700;
  font-size: 25px;
  letter-spacing: -0.3px;
  color: var(--riser-ink);
}
.riser-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 15px;
  font-weight: 500;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.riser-nav a {
  text-decoration: none;
  color: var(--riser-ink-soft);
}
.riser-nav a:hover { color: var(--riser-ink); }
.riser-nav .riser-signin {
  color: var(--riser-ink);
  font-weight: 700;
  border: 1px solid var(--riser-line);
  border-radius: 999px;
  padding: 8px 16px;
}
.riser-nav .riser-signin:hover {
  border-color: var(--riser-green);
  color: var(--riser-green);
}
.riser-nav .riser-cta {
  background: var(--riser-green);
  color: #fff !important;
  font-weight: 700;
  font-size: 15px;
  border-radius: 999px;
  padding: 10px 20px;
  white-space: nowrap;
}
.riser-nav .riser-cta:hover { background: var(--riser-green-dark); }

@media (max-width: 720px) {
  .riser-header-in { height: 60px; padding: 0 14px; gap: 8px; }
  .riser-brand-name { font-size: 19px; }
  .riser-nav { gap: 8px; font-size: 13.5px; }
  .riser-nav .riser-m { display: none; }
  .riser-nav .riser-cta { padding: 7px 12px; font-size: 13.5px; }
  .riser-brand img { height: 28px; }
}

/* ---- footer ---- */
.riser-footer {
  border-top: 1px solid var(--riser-line);
  background: var(--riser-white);
  color: var(--riser-ink);
  font-family: var(--riser-body);
  padding: 0 0 48px;
  margin-top: 0;
}
.riser-footer-in {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}
.riser-footer-top {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding: 30px 0 0;
}
.riser-footer-brand {
  font-family: var(--riser-display);
  font-weight: 700;
  font-size: 20px;
  color: var(--riser-ink);
}
.riser-footer-tag {
  font-size: 14px;
  color: var(--riser-ink-soft);
  margin-top: 6px;
}
.riser-footer-contact {
  font-size: 14px;
  color: var(--riser-ink-soft);
  text-align: right;
  line-height: 1.8;
}
.riser-footer-contact a {
  color: inherit;
  text-decoration: none;
}
.riser-footer-contact a:hover { color: var(--riser-ink); }
.riser-footer-mid {
  border-top: 1px solid var(--riser-line);
  margin-top: 20px;
  padding: 18px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 14px 20px;
  align-items: center;
  justify-content: space-between;
}
.riser-footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 9px 18px;
  font-size: 13.5px;
}
.riser-footer-nav a {
  color: var(--riser-ink-soft);
  font-weight: 600;
  text-decoration: none;
}
.riser-footer-nav a:hover { color: var(--riser-ink); }
.riser-footer .disclaimer {
  font-size: 12.5px;
  color: var(--riser-ink-soft);
  max-width: 74ch;
  line-height: 1.65;
  padding: 8px 0 0;
  margin: 0;
}
@media (max-width: 640px) {
  .riser-footer-top { flex-direction: column; gap: 14px; }
  .riser-footer-contact { text-align: left; }
  .riser-footer-in { padding: 0 16px; }
}

/* ---- Woo / content surfaces on navy ---- */
body.theme-riser-tt5 .woocommerce,
body.theme-riser-tt5 .wc-block-components,
body.theme-riser-tt5 main,
body.theme-riser-tt5 .wp-block-post-content,
body.theme-riser-tt5 .wp-block-group {
  color: var(--riser-ink);
}
body.theme-riser-tt5 a:where(:not(.wp-element-button):not(.riser-cta):not(.riser-signin)) {
  color: var(--riser-blue-dark);
}
body.theme-riser-tt5 .wp-element-button,
body.theme-riser-tt5 .woocommerce a.button,
body.theme-riser-tt5 .woocommerce button.button,
body.theme-riser-tt5 .wc-block-components-button:not(.is-link) {
  background: var(--riser-green) !important;
  color: #fff !important;
  border-radius: 999px !important;
  border: none !important;
  font-family: var(--riser-body);
  font-weight: 700;
}
body.theme-riser-tt5 .wp-element-button:hover,
body.theme-riser-tt5 .woocommerce a.button:hover,
body.theme-riser-tt5 .woocommerce button.button:hover {
  background: var(--riser-green-dark) !important;
}

/* Product cards / panels */
body.theme-riser-tt5 .wc-block-product,
body.theme-riser-tt5 .woocommerce ul.products li.product,
body.theme-riser-tt5 .wp-block-woocommerce-product-collection {
  --riser-card-bg: var(--riser-white);
}

/* Headings use display font */
body.theme-riser-tt5 h1,
body.theme-riser-tt5 h2,
body.theme-riser-tt5 h3,
body.theme-riser-tt5 .wp-block-post-title,
body.theme-riser-tt5 .wp-block-heading {
  font-family: var(--riser-display);
  color: var(--riser-ink);
  letter-spacing: -0.02em;
}

/* Soften default light TT5 section paddings that flash white */
body.theme-riser-tt5 .entry-content > .wp-block-group:not(.riser-footer):not(.riser-header),
body.theme-riser-tt5 main > .wp-block-group {
  background: transparent;
}
