/* ============================================================
   ROVIXA THEME — BUG FIXES v1.1
   Drop this file into: assets/css/fixes.css
   Then add this line to header.php AFTER the main theme.css link:
   <link rel="stylesheet" href="<?php echo get_template_directory_uri(); ?>/assets/css/fixes.css">
   ============================================================ */


/* ──────────────────────────────────────────────────────────
   1. PRICING SECTION
   ────────────────────────────────────────────────────────── */

.rv-pricing {
  padding: 80px 0 100px;
  background: #f8f9ff;
}

.rv-pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
  align-items: start;
}

@media (max-width: 900px) {
  .rv-pricing-grid { grid-template-columns: 1fr; max-width: 480px; margin-inline: auto; }
}

.rv-plan {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 20px;
  padding: 32px 28px;
  position: relative;
}

.rv-plan--popular {
  border-color: #6366f1;
  box-shadow: 0 0 0 2px #6366f1, 0 8px 32px rgba(99,102,241,.15);
}

.rv-plan-badge {
  position: absolute;
  top: -16px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(90deg,#6366f1,#8b5cf6);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  padding: 5px 18px;
  border-radius: 99px;
  white-space: nowrap;
}

.rv-plan-name {
  font-size: 20px;
  font-weight: 700;
  color: #111827;
  margin-bottom: 8px;
}

.rv-plan-price {
  font-size: 28px;
  font-weight: 800;
  color: #111827;
  margin-bottom: 6px;
}

.rv-plan-price span {
  font-size: 14px;
  font-weight: 400;
  color: #6b7280;
}

.rv-plan-desc {
  font-size: 14px;
  color: #6b7280;
  margin-bottom: 24px;
  line-height: 1.5;
}

/* CTA Buttons */
.rv-plan-btn {
  display: block;
  width: 100%;
  text-align: center;
  padding: 13px 20px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  margin-bottom: 24px;
  transition: opacity .2s, transform .15s;
  box-sizing: border-box;
}

.rv-plan-btn:hover { opacity: .9; transform: translateY(-1px); }

.rv-plan-btn--primary {
  background: linear-gradient(90deg,#6366f1,#8b5cf6);
  color: #fff !important;
  border: none;
}

.rv-plan-btn--outline {
  background: transparent;
  color: #374151 !important;
  border: 1.5px solid #d1d5db;
}

.rv-plan-btn--outline:hover { border-color: #6366f1; color: #6366f1 !important; }

/* Feature list */
.rv-plan-features {
  list-style: none;
  margin: 0;
  padding: 0;
}

.rv-plan-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: #374151;
  padding: 6px 0;
  border-bottom: 1px solid #f3f4f6;
}

.rv-plan-features li:last-child { border-bottom: none; }

.rv-check {
  color: #6366f1;
  font-weight: 700;
  flex-shrink: 0;
  line-height: 1.4;
}


/* ──────────────────────────────────────────────────────────
   2. FAQ ACCORDION  (fixes the floating grey box)
   ────────────────────────────────────────────────────────── */

.rv-faq {
  padding: 80px 0 100px;
  background: #fff;
}

.rv-faq-inner {
  max-width: 760px;
  margin-inline: auto;
}

.rv-faq-heading {
  text-align: center;
  margin-bottom: 48px;
}

/* The accordion wrapper */
.rv-accordion {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Each item is a full-width block — NOT a floated box */
.rv-accordion-item {
  width: 100%;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  overflow: hidden;
  display: block;          /* kill any flex/grid weirdness */
  float: none;             /* kill any float */
}

.rv-accordion-item.is-open {
  box-shadow: 0 4px 16px rgba(99,102,241,.08);
  border-color: #c7d2fe;
}

/* Trigger = full-width row with question + icon */
.rv-accordion-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 20px 24px;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  gap: 16px;
  box-sizing: border-box;
}

.rv-accordion-question {
  font-size: 16px;
  font-weight: 600;
  color: #111827;
  line-height: 1.4;
  flex: 1;
}

/* + / × icon */
.rv-accordion-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #f3f4f6;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-style: normal;
  transition: background .2s, transform .3s;
  position: relative;
}

.rv-accordion-icon::before,
.rv-accordion-icon::after {
  content: '';
  position: absolute;
  background: #6366f1;
  border-radius: 2px;
  transition: transform .3s, opacity .3s;
}

/* Horizontal bar */
.rv-accordion-icon::before {
  width: 12px; height: 2px;
}

/* Vertical bar */
.rv-accordion-icon::after {
  width: 2px; height: 12px;
}

/* When open, vertical bar rotates away (becomes ×) */
.rv-accordion-item.is-open .rv-accordion-icon::after {
  transform: rotate(90deg);
  opacity: 0;
}

.rv-accordion-item.is-open .rv-accordion-icon {
  background: #e0e7ff;
}

/* Answer body — hidden by default, shown when open */
.rv-accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease, padding .3s ease;
  padding: 0 24px;
}

.rv-accordion-body p {
  margin: 0 0 20px;
  font-size: 15px;
  color: #4b5563;
  line-height: 1.65;
}

.rv-accordion-item.is-open .rv-accordion-body {
  max-height: 400px;
  padding: 0 24px;
}


/* ──────────────────────────────────────────────────────────
   3. FEATURES / WHY CARDS  (fixes tall vertical pill icon)
   ────────────────────────────────────────────────────────── */

.rv-features {
  padding: 80px 0 100px;
  background: #f8f9ff;
}

.rv-features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}

@media (max-width: 900px) {
  .rv-features-grid { grid-template-columns: 1fr; }
}

.rv-feature-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 20px;
  padding: 32px 28px;
  transition: box-shadow .25s, transform .25s;
}

.rv-feature-card:hover {
  box-shadow: 0 8px 32px rgba(99,102,241,.12);
  transform: translateY(-3px);
}

/* THE FIX: force square icon box, not a tall pill */
.rv-feature-icon {
  width: 64px !important;
  height: 64px !important;
  min-height: unset !important;
  max-height: unset !important;
  border-radius: 16px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin-bottom: 20px;
  flex-shrink: 0;
}

.rv-feature-icon span {
  font-size: 28px;
  line-height: 1;
}

/* Dashicons inside icon box */
.rv-feature-icon .dashicons {
  font-size: 28px;
  width: 28px;
  height: 28px;
  color: #fff;
}

.rv-feature-title {
  font-size: 18px;
  font-weight: 700;
  color: #111827;
  margin: 0 0 10px;
}

.rv-feature-desc {
  font-size: 14px;
  color: #4b5563;
  line-height: 1.65;
  margin: 0;
}


/* ──────────────────────────────────────────────────────────
   4. SECTION HEADING ALIGNMENT — center all section titles
   ────────────────────────────────────────────────────────── */

.rv-section-label,
.rv-section-title,
.rv-section-sub {
  text-align: center;
}

/* Pricing heading block */
.rv-pricing > .rv-container > .rv-section-label,
.rv-pricing > .rv-container > .rv-section-title,
.rv-pricing > .rv-container > .rv-section-sub {
  text-align: center;
}

/* Features/Why heading block */
.rv-features > .rv-container > .rv-section-label,
.rv-features > .rv-container > .rv-section-title,
.rv-features > .rv-container > .rv-section-sub {
  text-align: center;
}

/* Problems heading block — apply same centering */
.rv-problems > .rv-container > .rv-section-label,
.rv-problems > .rv-container > .rv-section-title,
.rv-problems > .rv-container > .rv-section-sub {
  text-align: center;
}

/* Testimonials heading */
.rv-testimonials > .rv-container > .rv-section-label,
.rv-testimonials > .rv-container > .rv-section-title {
  text-align: center;
}

/* Generic fallback — any section heading not already handled */
section .rv-section-label,
section .rv-section-title {
  text-align: center;
}


/* ──────────────────────────────────────────────────────────
   5. FEATURE CARD — icon spacing & card padding tidy-up
   ────────────────────────────────────────────────────────── */

.rv-feature-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;   /* icon left-aligned inside card */
}

.rv-feature-icon {
  margin-bottom: 20px !important;
  margin-top: 0 !important;
}

.rv-feature-title {
  margin-top: 0;
}
