/* ============================================================= *
 *  Tim Reid — refinement layer (loads AFTER the theme CSS)
 *  Goal: keep the original look & feel, but elevate it —
 *  richer green, better type rhythm, more air, soft depth,
 *  smoother motion. No layout is moved; this only polishes.
 * ============================================================= */

:root {
  --brand: #7cb000;          /* refined lime — close to the original #80b600 */
  --brand-d: #5f8700;        /* depth / hover */
  --brand-l: #9fd72f;        /* light accent */
  --ink: #1d211b;            /* headings, near-black warm */
  --body: #545b50;           /* body copy */
  --muted: #8b918a;
  --line: #e7ebe1;           /* hairlines */
  --bg-soft: #f6f8f1;        /* faint green-tinted surface */
  --r: 12px;
  --r-sm: 8px;
  --shadow-1: 0 2px 8px rgba(24, 33, 12, .06);
  --shadow-2: 0 10px 30px rgba(24, 33, 12, .10);
  --ease: cubic-bezier(.22, .61, .36, 1);
}

html { scroll-behavior: smooth; }

body {
  color: var(--body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.7;
}

::selection { background: var(--brand); color: #fff; }

a { transition: color .2s var(--ease); }
a:hover { color: var(--brand-d); }

img { image-rendering: auto; }

/* ---- Headings ------------------------------------------------ */
h1, h2, h3, h4, h5, h6 { color: var(--ink); letter-spacing: -.01em; }

/* ---- Buttons ------------------------------------------------- */
.btn,
.wpcf7-submit,
input[type="submit"] {
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: .04em;
  padding: .85em 2.1em;
  transition: transform .22s var(--ease), box-shadow .22s var(--ease),
              background-color .22s var(--ease), color .22s var(--ease),
              border-color .22s var(--ease);
  will-change: transform;
}
.btn:hover,
.wpcf7-submit:hover,
input[type="submit"]:hover { transform: translateY(-2px); }

/* primary green button (incl. the contact SEND) */
.btn-primary,
.wpcf7-submit,
input[type="submit"] {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
  box-shadow: 0 6px 16px rgba(124, 176, 0, .28);
}
.btn-primary:hover,
.wpcf7-submit:hover,
input[type="submit"]:hover {
  background: var(--brand-d);
  border-color: var(--brand-d);
  color: #fff;
  box-shadow: 0 10px 24px rgba(124, 176, 0, .36);
}

/* hero outline button -> fills on hover */
.btn-secondary-outline {
  border-width: 2px;
  backdrop-filter: blur(2px);
}
.btn-secondary-outline:hover {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
  box-shadow: 0 10px 24px rgba(0, 0, 0, .25);
}

/* ---- Sticky header ------------------------------------------ */
.site-header {
  transition: box-shadow .3s var(--ease), background-color .3s var(--ease);
}
.site-header.is-sticky,
.site-header:not(.h-on-top) {
  box-shadow: 0 4px 22px rgba(24, 33, 12, .08);
  -webkit-backdrop-filter: saturate(1.1) blur(6px);
  backdrop-filter: saturate(1.1) blur(6px);
}
.onepress-menu > li > a { position: relative; transition: color .2s var(--ease); }
.onepress-menu > li > a::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 6px;
  height: 2px; background: var(--brand); border-radius: 2px;
  transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease);
}
.onepress-menu > li:hover > a::after,
.onepress-menu > li.current-menu-item > a::after { transform: scaleX(1); }
.onepress-menu > li:hover > a,
.onepress-menu > li.current-menu-item > a { color: var(--brand-d); }

/* ---- Hero --------------------------------------------------- */
#hero::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(105deg, rgba(8, 12, 4, .55) 0%,
              rgba(8, 12, 4, .28) 42%, rgba(8, 12, 4, 0) 70%);
  pointer-events: none;
}
#hero .container { position: relative; z-index: 2; }
.hero-large-text {
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.02;
  text-shadow: 0 2px 24px rgba(0, 0, 0, .35);
}
.hero-large-text .js-rotating,
.hero-large-text span { color: var(--brand-l); }
.hero__content h3 {
  text-shadow: 0 1px 12px rgba(0, 0, 0, .4);
  font-weight: 600;
}

/* ---- Sections ----------------------------------------------- */
.section-padding { padding-top: 96px; padding-bottom: 96px; }

.section-title {
  font-weight: 800;
  letter-spacing: -.015em;
  margin-bottom: .4em;
}
.section-title-area { margin-bottom: 3rem; }
.section-title-area::after {
  content: ""; display: block; width: 64px; height: 4px;
  margin: 1.1rem auto 0; border-radius: 4px;
  background: linear-gradient(90deg, var(--brand), var(--brand-l));
}
.section-desc { color: var(--muted); font-size: 1.05rem; }

/* ---- Homepage feature cards (Topics / Outcomes / Sweet Spot) - */
/* inner .fi-card wrapper keeps the bootstrap column gutter as the gap */
.feature-item .fi-card {
  height: 100%;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--shadow-1);
  padding: 2.4rem 1.6rem 2rem;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease),
              border-color .3s var(--ease);
}
.feature-item:hover .fi-card {
  transform: translateY(-6px);
  box-shadow: var(--shadow-2);
  border-color: #dfe6d3;
}
.feature-item h4 { letter-spacing: .06em; margin-top: .9rem; font-weight: 700; }
.feature-item .icon-image img { transition: transform .35s var(--ease); }
.feature-item:hover .icon-image img { transform: scale(1.08) rotate(-3deg); }

/* ---- Testimonial cards (wptww design-4) --------------------- */
.wptww-testimonial-inner {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--shadow-1);
  padding: 1.6rem 1.6rem 1.4rem;
  transition: transform .28s var(--ease), box-shadow .28s var(--ease),
              border-color .28s var(--ease);
}
.wptww-testimonial-inner:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-2);
  border-color: #dfe6d3;
}
.wptww-testimonial_avatar img {
  border-radius: 50%;
  border-color: var(--brand-l) !important;
}

/* ---- Resource / gallery image cards (.bwg-a, .g-item) ------- */
.bwg-a, .gallery-grid .g-item {
  border-radius: var(--r);
  overflow: hidden;
  box-shadow: var(--shadow-1);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.bwg-a:hover, .gallery-grid .g-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-2);
}
.bwg-a img, .gallery-grid .g-item img { transition: transform .5s var(--ease); }
.bwg-a:hover img, .gallery-grid .g-item:hover img { transform: scale(1.05); }

/* ---- Form inputs ------------------------------------------- */
.wpcf7-form-control:not(.wpcf7-submit),
.web3-contact input:not([type="submit"]):not([type="checkbox"]),
.web3-contact textarea {
  border: 1.5px solid var(--line);
  border-radius: var(--r-sm);
  padding: .8em 1em;
  background: #fff;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.wpcf7-form-control:not(.wpcf7-submit):focus,
.web3-contact input:focus,
.web3-contact textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(124, 176, 0, .18);
}

/* ---- Footer ------------------------------------------------- */
.footer-connect a {
  transition: transform .2s var(--ease), color .2s var(--ease);
  display: inline-block;
}
.footer-connect a:hover { transform: translateY(-3px); color: var(--brand-l); }

/* ---- Back to top ------------------------------------------- */
.back-to-top {
  border-radius: 50% !important;
  background: var(--brand) !important;
  box-shadow: var(--shadow-2);
  transition: transform .2s var(--ease), background-color .2s var(--ease);
}
.back-to-top:hover { transform: translateY(-3px); background: var(--brand-d) !important; }

/* ---- Accessibility: keyboard focus -------------------------- */
a:focus-visible, button:focus-visible,
input:focus-visible, textarea:focus-visible {
  outline: 3px solid rgba(124, 176, 0, .5);
  outline-offset: 2px;
}

/* ============================================================= *
 *  Creative enhancement layer (interactions added by enhance.js)
 * ============================================================= */

/* scroll progress bar */
.tr-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0; z-index: 9999;
  background: linear-gradient(90deg, var(--brand), var(--brand-l));
  box-shadow: 0 0 10px rgba(124, 176, 0, .55);
  transition: width .08s linear;
}

/* sticky header: shrink + frost once scrolled */
.site-header { transition: box-shadow .3s var(--ease), background-color .3s var(--ease), padding .3s var(--ease); }
.custom-logo { transition: max-height .3s var(--ease); }
.site-header.tr-shrunk {
  box-shadow: 0 6px 24px rgba(24, 33, 12, .12);
  background: rgba(255, 255, 255, .9);
  -webkit-backdrop-filter: saturate(1.1) blur(8px);
  backdrop-filter: saturate(1.1) blur(8px);
}
.site-header.tr-shrunk .custom-logo { max-height: 44px; height: auto; width: auto; }

/* scroll reveal (only elements enhance.js opts in get hidden) */
html.tr-js .tr-reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
html.tr-js .tr-reveal.is-visible { opacity: 1; transform: none; }

/* hero: scroll-down cue */
.tr-scrolldown {
  position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); z-index: 3;
  width: 28px; height: 46px; border: 2px solid rgba(255, 255, 255, .75);
  border-radius: 16px; cursor: pointer; opacity: .9;
}
.tr-scrolldown::after {
  content: ""; position: absolute; left: 50%; top: 8px; width: 5px; height: 5px;
  margin-left: -2.5px; border-radius: 50%; background: #fff;
  animation: tr-scroll 1.7s var(--ease) infinite;
}
@keyframes tr-scroll { 0% { opacity: 0; transform: translateY(0); } 35% { opacity: 1; } 70% { opacity: 1; } 100% { opacity: 0; transform: translateY(18px); } }

/* feature cards: green top accent grows on hover */
.feature-item .fi-card { position: relative; overflow: hidden; }
.feature-item .fi-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, var(--brand), var(--brand-l));
  transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease);
}
.feature-item:hover .fi-card::before { transform: scaleX(1); }

/* primary/CTA buttons: light sheen sweep on hover */
.btn { position: relative; overflow: hidden; }
.btn::after {
  content: ""; position: absolute; top: 0; left: -130%; width: 55%; height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, .35), transparent);
  transform: skewX(-20deg); transition: left .6s var(--ease); pointer-events: none;
}
.btn:hover::after { left: 150%; }

/* "spoken for" brand logos: subtle by default, colour + lift on hover */
.section-logos img {
  filter: grayscale(1); opacity: .5;
  transition: filter .35s var(--ease), opacity .35s var(--ease), transform .35s var(--ease);
}
.section-logos a:hover img, .section-logos .wpls-fix-box:hover img, .section-logos img:hover {
  filter: grayscale(0); opacity: 1; transform: scale(1.07);
}

/* podcast / blog feed items become cards */
.rss_item {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r);
  box-shadow: var(--shadow-1); padding: 1.4rem 1.5rem; margin-bottom: 1.25rem;
  transition: transform .28s var(--ease), box-shadow .28s var(--ease), border-color .28s var(--ease);
}
.rss_item:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); border-color: #dfe6d3; }
.rss_item .title a, .rss_item > a { color: var(--ink); font-weight: 700; }
.rss_item .title a:hover, .rss_item > a:hover { color: var(--brand-d); }

/* live podcast feed (rebuilt by enhance.js from /api/feed) */
.tr-ep { display: flex; flex-direction: column; }
.tr-ep__title { font-weight: 800; font-size: 1.12rem; line-height: 1.3; margin: 0 0 .35rem; }
.tr-ep__title a { color: var(--ink); }
.tr-ep__title a:hover { color: var(--brand-d); }
.tr-ep__date { color: var(--muted); font-size: .82rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .05em; margin-bottom: .6rem; }
.tr-ep__desc { color: var(--body); font-size: .95rem; line-height: 1.6; margin: 0 0 1rem;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.tr-ep__listen {
  align-self: flex-start; display: inline-flex; align-items: center; gap: .4em;
  background: var(--brand); color: #fff; font-weight: 700; font-size: .85rem;
  letter-spacing: .03em; padding: .55em 1.2em; border-radius: 999px; text-decoration: none;
  box-shadow: 0 4px 12px rgba(124,176,0,.26); transition: transform .2s var(--ease), background-color .2s var(--ease);
}
.tr-ep__listen:hover { transform: translateY(-2px); background: var(--brand-d); color: #fff; }
.tr-ep__loading { color: var(--muted); font-style: italic; }

/* ---- Reduced motion ---------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; animation: none !important; }
  html.tr-js .tr-reveal { opacity: 1 !important; transform: none !important; }
  .tr-scrolldown, .tr-progress, .btn::after { display: none !important; }
}
