/* ============ CUSTOM STYLES ============ */

/* Footer corner fix: body bg matches footer color so rounded corners don't show cream bleed */
body {
  background-color: #171310 !important;
}

/* Global button rounding — subtle rounded rectangle to match original site */
a[data-modal], button[type="submit"], .cta-section a, a[href="/remove-co2"] {
  border-radius: 6px;
}
button#rw-newsletter-submit {
  border-radius: 0 6px 6px 0 !important;
}

/* Mobile dropdown arrow rotation */
.mobile-dropdown-btn.active svg {
  transform: rotate(180deg);
}

/* Navbar scroll state - add backdrop when scrolling */
/* ============ HOW IT WORKS ANIMATION ============ */
.hiw-card {
  width: min(420px, 85vw);
}

/* ============ PARTNER LOGO MARQUEE ============ */
@keyframes marquee-left {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
@keyframes marquee-right {
  0% { transform: translateX(-50%); }
  100% { transform: translateX(0); }
}
.marquee-track {
  display: flex;
  gap: 1rem;
  animation: marquee-left 35s linear infinite;
  width: max-content;
}
.marquee-track-reverse {
  display: flex;
  gap: 1rem;
  animation: marquee-right 35s linear infinite;
  width: max-content;
}
.marquee-logo-box {
  width: 236px;
  height: 155px;
  background: rgb(14, 71, 69);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding: 1.5rem;
}
.marquee-logo-box img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  opacity: 0.85;
}

/* ============ MODAL ============ */
#rw-modal {
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
}
#rw-modal.rw-modal-visible {
  opacity: 1;
  pointer-events: all;
}
#rw-modal-card {
  transform: translateY(12px) scale(0.97);
  transition: transform 0.25s ease;
}
#rw-modal.rw-modal-visible #rw-modal-card {
  transform: translateY(0) scale(1);
}

/* Input error state (used by both modal and newsletter form) */
.rw-input-error {
  border-color: #ef4444 !important; /* red-500 */
}

/* ============ CTA + FOOTER SCROLL REVEAL ============ */
.cta-footer-reveal {
  position: relative;
}
.cta-section {
  position: relative;
  z-index: 20;
}
.footer-sticky {
  position: sticky;
  bottom: 0;
  z-index: 10;
}

#navbar.scrolled {
  background-color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

/* ── Method page: reveal text ─────────────────────────────────── */
.reveal-text {
  opacity: 0;
}
.reveal-text .word {
  display: inline-block;
  will-change: transform, opacity;
}

/* ── Method page: stacking cards ──────────────────────────────── */
.method-stack-card {
  will-change: transform, opacity;
}

/* ── Blog post content typography ────────────────────────────── */
.blog-content p {
  color: rgba(6,45,43,0.7);
  font-size: 1.0625rem;
  line-height: 1.8;
  margin-bottom: 1.25rem;
}
.blog-content h2 {
  font-size: 1.75rem;
  font-weight: 700;
  color: #062d2b;
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
  line-height: 1.3;
}
.blog-content h3 {
  font-size: 1.375rem;
  font-weight: 700;
  color: #062d2b;
  margin-top: 2rem;
  margin-bottom: 0.625rem;
  line-height: 1.35;
}
.blog-content h4 {
  font-size: 1.125rem;
  font-weight: 600;
  color: #062d2b;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}
.blog-content ul,
.blog-content ol {
  margin-bottom: 1.25rem;
  padding-left: 1.5rem;
}
.blog-content ul { list-style-type: disc; }
.blog-content ol { list-style-type: decimal; }
.blog-content li {
  color: rgba(6,45,43,0.7);
  font-size: 1.0625rem;
  line-height: 1.7;
  margin-bottom: 0.375rem;
}
.blog-content blockquote {
  border-left: 4px solid #95e04a;
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
  background: rgba(149,224,74,0.06);
  border-radius: 0 12px 12px 0;
}
.blog-content blockquote p {
  color: #062d2b;
  font-style: italic;
  font-size: 1.125rem;
  margin-bottom: 0;
}
.blog-content figure {
  margin: 2rem 0;
}
.blog-content figure img {
  width: 100%;
  border-radius: 12px;
}
.blog-content figcaption {
  text-align: center;
  font-size: 0.8125rem;
  color: rgba(6,45,43,0.5);
  margin-top: 0.5rem;
}
.blog-content hr {
  border: none;
  border-top: 1px solid rgba(6,45,43,0.1);
  margin: 2rem 0;
}
.blog-content a {
  color: #0e4745;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.blog-content a:hover {
  color: #062d2b;
}
.blog-content code {
  background: rgba(6,45,43,0.06);
  padding: 0.15em 0.4em;
  border-radius: 4px;
  font-size: 0.9em;
}
.blog-content pre {
  background: #062d2b;
  color: #f5f6ef;
  padding: 1.25rem;
  border-radius: 12px;
  overflow-x: auto;
  margin: 1.5rem 0;
}
.blog-content pre code {
  background: none;
  padding: 0;
  font-size: 0.875rem;
  color: inherit;
}
.blog-content details {
  margin: 1rem 0;
  border: 1px solid rgba(6,45,43,0.1);
  border-radius: 8px;
  padding: 0.75rem 1rem;
}
.blog-content details summary {
  font-weight: 600;
  cursor: pointer;
  color: #062d2b;
}
.blog-callout {
  display: flex;
  gap: 0.75rem;
  background: rgba(6,45,43,0.04);
  border-radius: 12px;
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
}
.blog-callout .callout-icon {
  font-size: 1.25rem;
  flex-shrink: 0;
}
.blog-bookmark a {
  display: block;
  padding: 0.75rem 1rem;
  border: 1px solid rgba(6,45,43,0.15);
  border-radius: 8px;
  text-decoration: none;
  color: #0e4745;
  font-size: 0.9375rem;
}
.blog-bookmark a:hover {
  background: rgba(6,45,43,0.03);
}
/* Tailwind line-clamp utility for blog cards */
.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
