/* ===========================
   RUBBERBAND LP — rb- prefix
   All styles scoped to avoid conflict with eidendo-2026 theme
   =========================== */

/* --- HERO --- */
.rb-hero {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: calc(60px + var(--space-xl)) var(--space-md) var(--space-lg);
}
.rb-hero-inner {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}
.rb-hero-text { flex: 1; }
.rb-hero-img {
  flex-shrink: 0;
  width: 320px;
}
.rb-hero-img img {
  width: 100%;
  height: auto;
  border-radius: 16px;
}
.rb-breadcrumb {
  font-size: 0.78rem;
  color: var(--c-text-sub);
  margin-bottom: var(--space-sm);
}
.rb-breadcrumb a {
  color: var(--c-text-sub);
  text-decoration: none;
}
.rb-breadcrumb a:hover { color: var(--c-text); }
.rb-hero h1 {
  font-family: var(--font-body);
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-sm);
}
.rb-hero-sub {
  font-size: 0.92rem;
  color: var(--c-text-sub);
  line-height: 1.9;
  margin-bottom: var(--space-md);
}
.rb-hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: var(--space-md);
}
.rb-badge {
  font-size: 0.78rem;
  background: var(--c-tag-bg);
  color: var(--c-text-sub);
  padding: 0.35rem 0.8rem;
  border-radius: 100px;
  font-weight: 500;
}
.rb-hero-cta {
  display: flex;
  gap: 0.8rem;
}

/* --- BUTTONS --- */
.rb-btn-primary {
  display: inline-block;
  background: var(--c-accent);
  color: #fff;
  border: none;
  padding: 0.75rem 1.8rem;
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s;
  letter-spacing: 0.02em;
}
.rb-btn-primary:hover { background: var(--c-accent-light); color: #fff; }
.rb-btn-secondary {
  display: inline-block;
  background: transparent;
  color: var(--c-accent);
  border: 1px solid var(--c-border);
  padding: 0.75rem 1.8rem;
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s;
}
.rb-btn-secondary:hover { border-color: var(--c-accent); color: var(--c-accent); }

/* --- FEATURES GRID --- */
.rb-features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
  margin-bottom: var(--space-md);
}
.rb-feature-card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: 12px;
  padding: var(--space-md);
  transition: border-color 0.25s, box-shadow 0.25s;
}
.rb-feature-card:hover {
  border-color: #D0CEC8;
  box-shadow: 0 2px 16px rgba(0,0,0,0.04);
}
.rb-feature-img-wrap {
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: var(--space-sm);
}
.rb-feature-img-wrap img {
  width: 100%;
  height: auto;
  display: block;
}
.rb-feature-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}
.rb-feature-card p {
  font-size: 0.85rem;
  color: var(--c-text-sub);
  line-height: 1.8;
}

/* --- RELATED INLINE --- */
.rb-related-inline {
  margin-top: var(--space-md);
  padding-top: var(--space-sm);
  border-top: 1px solid var(--c-border-light);
}
.rb-related-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--c-text-sub);
  margin-bottom: 0.5rem;
}
.rb-related-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.rb-related-links a {
  font-size: 0.8rem;
  color: var(--c-accent);
  background: var(--c-tag-bg);
  padding: 0.3rem 0.7rem;
  border-radius: 100px;
  text-decoration: none;
  transition: background 0.2s;
}
.rb-related-links a:hover { background: var(--c-border); }

/* --- ESTIMATOR --- */
.rb-estimator {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
  align-items: start;
}
.rb-est-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}
.rb-est-group {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: 12px;
  padding: var(--space-md);
}
.rb-est-heading {
  font-size: 0.88rem;
  font-weight: 700;
  margin-bottom: var(--space-sm);
}
.rb-field {
  margin-bottom: var(--space-sm);
}
.rb-field:last-child { margin-bottom: 0; }
.rb-field label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--c-text-sub);
  margin-bottom: 0.3rem;
}
.rb-field input,
.rb-field select {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--c-border);
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  background: var(--c-bg);
  color: var(--c-text);
  outline: none;
  transition: border-color 0.2s;
}
.rb-field input:focus,
.rb-field select:focus {
  border-color: var(--c-accent);
}
.rb-checkbox {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--c-text);
  cursor: pointer;
  padding: 0.4rem 0;
}
.rb-checkbox input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--c-accent);
  cursor: pointer;
}

/* --- RESULT CARD --- */
.rb-est-result-card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: 12px;
  padding: var(--space-md);
  position: sticky;
  top: 80px;
}
.rb-est-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.6rem 0;
  font-size: 0.88rem;
  border-bottom: 1px solid var(--c-border-light);
}
.rb-est-row:last-of-type { border-bottom: none; }
.rb-est-row-total { border-top: 2px solid var(--c-border); margin-top: 0.3rem; padding-top: 0.9rem; }
.rb-est-val { font-weight: 700; font-family: var(--font-display); }
.rb-est-val-lg { font-size: 1.3rem; color: var(--c-accent); }
.rb-est-actions {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-top: var(--space-md);
}
.rb-est-actions .rb-btn-primary,
.rb-est-actions .rb-btn-secondary {
  text-align: center;
  width: 100%;
}

/* --- FLOW --- */
.rb-flow {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-sm);
}
.rb-flow-step {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: 12px;
  padding: var(--space-md) var(--space-sm);
  text-align: center;
}
.rb-flow-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--c-accent);
  color: #fff;
  border-radius: 50%;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: var(--space-xs);
}
.rb-flow-content h3 {
  font-size: 0.92rem;
  font-weight: 700;
  margin-bottom: 0.2rem;
}
.rb-flow-content p {
  font-size: 0.82rem;
  color: var(--c-text-sub);
  margin-bottom: 0.4rem;
}
.rb-flow-days {
  font-size: 0.75rem;
  color: var(--c-accent);
  font-weight: 600;
  background: var(--c-tag-bg);
  padding: 0.2rem 0.6rem;
  border-radius: 100px;
}

/* --- FAQ --- */
.rb-faq-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.rb-faq-item {
  border-bottom: 1px solid var(--c-border-light);
}
.rb-faq-item:last-child { border-bottom: none; }
.rb-faq-item summary {
  padding: var(--space-sm) 0;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: color 0.2s;
}
.rb-faq-item summary::-webkit-details-marker { display: none; }
.rb-faq-item summary::after {
  content: '+';
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--c-text-sub);
  transition: transform 0.2s;
}
.rb-faq-item[open] summary::after {
  content: '−';
}
.rb-faq-item summary:hover { color: var(--c-accent); }
.rb-faq-item p {
  padding: 0 0 var(--space-sm) 0;
  font-size: 0.88rem;
  color: var(--c-text-sub);
  line-height: 1.9;
}
.rb-faq-item a { color: var(--c-accent); }

/* --- ARTICLES GRID --- */
.rb-articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-sm);
}
.rb-article-card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: 12px;
  padding: var(--space-md);
  text-decoration: none;
  color: var(--c-text);
  transition: border-color 0.25s, box-shadow 0.25s;
}
.rb-article-card:hover {
  border-color: #D0CEC8;
  box-shadow: 0 2px 16px rgba(0,0,0,0.04);
}
.rb-article-tag {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--c-accent);
  background: var(--c-tag-bg);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.rb-article-card h3 {
  font-size: 0.95rem;
  font-weight: 700;
  margin: 0.6rem 0 0.3rem;
}
.rb-article-card p {
  font-size: 0.82rem;
  color: var(--c-text-sub);
  line-height: 1.7;
}

/* --- CTA FOOTER --- */
.rb-cta-footer {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: var(--space-lg) var(--space-md);
  text-align: center;
}
.rb-cta-inner p {
  font-size: 0.95rem;
  color: var(--c-text-sub);
  margin-bottom: var(--space-md);
}
.rb-cta-footer .rb-hero-cta {
  justify-content: center;
}

/* ===========================
   RESPONSIVE
   =========================== */
@media (max-width: 768px) {
  .rb-hero-inner {
    flex-direction: column-reverse;
    gap: var(--space-md);
  }
  .rb-hero-img { width: 200px; }
  .rb-features-grid {
    grid-template-columns: 1fr;
  }
  .rb-estimator {
    grid-template-columns: 1fr;
  }
  .rb-est-result-card {
    position: static;
  }
  .rb-flow {
    grid-template-columns: 1fr 1fr;
  }
  .rb-articles-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 480px) {
  .rb-flow {
    grid-template-columns: 1fr;
  }
  .rb-hero-cta {
    flex-direction: column;
  }
  .rb-hero-cta a {
    text-align: center;
    width: 100%;
  }
}
