/* ==============================================
   REVMACHOICE DESIGN SYSTEM
   Light mode only · Mobile-first · Zero bloat
   ============================================== */

/* ── CSS Variables ─────────────────────────── */
:root {
  /* Brand */
  --rc-green: #10b981;
  --rc-green-dark: #059669;
  --rc-green-darker: #047857;
  --rc-green-light: #d1fae5;
  --rc-green-50: #ecfdf5;
  --rc-cyan: #06b6d4;
  --rc-purple: #8b5cf6;
  --rc-amber: #f59e0b;

  /* Backgrounds */
  --bg: #ffffff;
  --bg-alt: #f8fafc;
  --bg-muted: #f1f5f9;
  --bg-dark: #0f172a;

  /* Text */
  --text: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  --text-inverse: #ffffff;

  /* Borders */
  --border: #e2e8f0;
  --border-hover: #cbd5e1;
  --border-focus: #10b981;

  /* Spacing */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;
  --space-4xl: 96px;

  /* Radius */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-xs: 0 1px 2px rgba(0,0,0,0.04);
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.07), 0 2px 4px -2px rgba(0,0,0,0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.08), 0 4px 6px -4px rgba(0,0,0,0.04);
  --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.08), 0 8px 10px -6px rgba(0,0,0,0.04);
  --shadow-green: 0 4px 14px rgba(16,185,129,0.25);
  --shadow-green-lg: 0 8px 25px rgba(16,185,129,0.3);

  /* Fonts */
  --font: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;

  /* Layout */
  --max-width: 1200px;
  --header-height: 72px;

  /* Transitions */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --duration: 0.2s;
}

/* ── Reset & Base ──────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: inherit; }
input, select, textarea { font-family: inherit; }

/* ── Typography ────────────────────────────── */
.rc-h1 {
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--text);
}

.rc-h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.015em;
  color: var(--text);
}

.rc-h3 {
  font-size: clamp(1.25rem, 3vw, 1.625rem);
  font-weight: 700;
  line-height: 1.25;
  color: var(--text);
}

.rc-h4 {
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--text);
}

.rc-body { font-size: 1rem; color: var(--text-secondary); line-height: 1.7; }
.rc-body-lg { font-size: 1.125rem; color: var(--text-secondary); line-height: 1.7; }
.rc-small { font-size: 0.875rem; color: var(--text-muted); }
.rc-caption { font-size: 0.75rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-muted); }
.rc-mono { font-family: var(--font-mono); }

/* Green highlight text */
.rc-green { color: var(--rc-green); }
.rc-green-dark { color: var(--rc-green-dark); }

/* ── Layout ────────────────────────────────── */
.rc-container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

@media (min-width: 768px) {
  .rc-container { padding: 0 var(--space-xl); }
}

.rc-section {
  padding: var(--space-3xl) 0;
}

@media (min-width: 768px) {
  .rc-section { padding: var(--space-4xl) 0; }
}

.rc-section-alt { background: var(--bg-alt); }
.rc-section-dark { background: var(--bg-dark); color: var(--text-inverse); }

.rc-grid {
  display: grid;
  gap: var(--space-lg);
}

.rc-grid-2 { grid-template-columns: 1fr; }
.rc-grid-3 { grid-template-columns: 1fr; }
.rc-grid-4 { grid-template-columns: 1fr 1fr; }

@media (min-width: 768px) {
  .rc-grid-2 { grid-template-columns: repeat(2, 1fr); }
  .rc-grid-3 { grid-template-columns: repeat(3, 1fr); }
  .rc-grid-4 { grid-template-columns: repeat(4, 1fr); }
}

.rc-flex { display: flex; align-items: center; }
.rc-flex-between { display: flex; align-items: center; justify-content: space-between; }
.rc-flex-center { display: flex; align-items: center; justify-content: center; }
.rc-flex-col { display: flex; flex-direction: column; }
.rc-flex-wrap { flex-wrap: wrap; }
.rc-gap-xs { gap: var(--space-xs); }
.rc-gap-sm { gap: var(--space-sm); }
.rc-gap-md { gap: var(--space-md); }
.rc-gap-lg { gap: var(--space-lg); }
.rc-gap-xl { gap: var(--space-xl); }

.rc-text-center { text-align: center; }
.rc-text-left { text-align: left; }

.rc-mx-auto { margin-left: auto; margin-right: auto; }
.rc-mt-sm { margin-top: var(--space-sm); }
.rc-mt-md { margin-top: var(--space-md); }
.rc-mt-lg { margin-top: var(--space-lg); }
.rc-mt-xl { margin-top: var(--space-xl); }
.rc-mb-md { margin-bottom: var(--space-md); }
.rc-mb-lg { margin-bottom: var(--space-lg); }
.rc-mb-xl { margin-bottom: var(--space-xl); }

.rc-max-w-sm { max-width: 500px; }
.rc-max-w-md { max-width: 680px; }
.rc-max-w-lg { max-width: 800px; }

/* ── Buttons ───────────────────────────────── */
.rc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 14px 28px;
  border-radius: var(--radius-lg);
  font-weight: 700;
  font-size: 1rem;
  border: none;
  transition: all var(--duration) var(--ease);
  white-space: nowrap;
  line-height: 1;
}

.rc-btn-primary {
  background: linear-gradient(135deg, var(--rc-green) 0%, var(--rc-green-dark) 100%);
  color: white;
  box-shadow: var(--shadow-green);
}
.rc-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-green-lg);
}
.rc-btn-primary:active {
  transform: translateY(0);
}

.rc-btn-secondary {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border);
}
.rc-btn-secondary:hover {
  border-color: var(--rc-green);
  color: var(--rc-green);
}

.rc-btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  padding: 10px 16px;
}
.rc-btn-ghost:hover { color: var(--rc-green); }

.rc-btn-sm { padding: 10px 20px; font-size: 0.875rem; border-radius: var(--radius-md); }
.rc-btn-lg { padding: 18px 36px; font-size: 1.125rem; }
.rc-btn-full { width: 100%; }

.rc-btn-icon {
  width: 44px; height: 44px;
  padding: 0;
  border-radius: var(--radius-md);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* ── Cards ─────────────────────────────────── */
.rc-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--space-lg);
  transition: all var(--duration) var(--ease);
}
.rc-card:hover {
  box-shadow: var(--shadow-lg);
  border-color: var(--border-hover);
}

.rc-card-flat {
  background: var(--bg-alt);
  border: none;
  border-radius: var(--radius-xl);
  padding: var(--space-lg);
}

.rc-card-highlight {
  background: var(--bg);
  border: 2px solid var(--rc-green);
  border-radius: var(--radius-xl);
  padding: var(--space-lg);
  box-shadow: var(--shadow-green);
}

/* ── Badges ────────────────────────────────── */
.rc-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1;
}

.rc-badge-green { background: var(--rc-green-50); color: var(--rc-green-dark); }
.rc-badge-amber { background: #fffbeb; color: #92400e; }
.rc-badge-blue { background: #eff6ff; color: #1e40af; }
.rc-badge-red { background: #fef2f2; color: #991b1b; }
.rc-badge-gray { background: var(--bg-muted); color: var(--text-secondary); }
.rc-badge-purple { background: #f5f3ff; color: #5b21b6; }

/* ── Forms ─────────────────────────────────── */
.rc-input {
  width: 100%;
  padding: 14px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 1rem;
  color: var(--text);
  background: var(--bg);
  transition: border-color var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
}
.rc-input:focus {
  outline: none;
  border-color: var(--rc-green);
  box-shadow: 0 0 0 3px rgba(16,185,129,0.12);
}
.rc-input::placeholder { color: var(--text-muted); }

.rc-select {
  width: 100%;
  padding: 14px 40px 14px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 1rem;
  color: var(--text);
  background: var(--bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M2 4l4 4 4-4' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 16px center;
  appearance: none;
  transition: border-color var(--duration) var(--ease);
}
.rc-select:focus {
  outline: none;
  border-color: var(--rc-green);
  box-shadow: 0 0 0 3px rgba(16,185,129,0.12);
}

.rc-textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 1rem;
  color: var(--text);
  resize: vertical;
  min-height: 120px;
  transition: border-color var(--duration) var(--ease);
}
.rc-textarea:focus {
  outline: none;
  border-color: var(--rc-green);
  box-shadow: 0 0 0 3px rgba(16,185,129,0.12);
}

.rc-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}

.rc-form-group { margin-bottom: var(--space-md); }

/* ── Range Slider ──────────────────────────── */
.rc-range {
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: var(--bg-muted);
  outline: none;
  appearance: none;
  cursor: pointer;
}
.rc-range::-webkit-slider-thumb {
  appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--rc-green);
  box-shadow: 0 2px 6px rgba(16,185,129,0.3);
  cursor: pointer;
  transition: transform 0.15s;
}
.rc-range::-webkit-slider-thumb:hover {
  transform: scale(1.15);
}

/* ── Trust Elements ────────────────────────── */
.rc-trust-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md) 0;
}

.rc-trust-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.875rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.rc-trust-icon {
  width: 20px;
  height: 20px;
  color: var(--rc-green);
  flex-shrink: 0;
}

/* ── Stat/Number Display ───────────────────── */
.rc-stat {
  text-align: center;
  padding: var(--space-lg);
}
.rc-stat-number {
  font-family: var(--font-mono);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  color: var(--rc-green);
  line-height: 1;
}
.rc-stat-label {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-top: var(--space-xs);
}

/* ── Price Display ─────────────────────────── */
.rc-price {
  font-family: var(--font-mono);
  font-weight: 600;
}
.rc-price-lg {
  font-size: 2rem;
  color: var(--text);
}
.rc-price-savings {
  font-size: 1.25rem;
  color: var(--rc-green);
}
.rc-price-old {
  color: var(--text-muted);
  text-decoration: line-through;
}
.rc-price-unit {
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--text-muted);
}

/* ── Accordion (FAQ) ───────────────────────── */
.rc-accordion { border-top: 1px solid var(--border); }

.rc-accordion-item { border-bottom: 1px solid var(--border); }

.rc-accordion-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-lg) 0;
  background: none;
  border: none;
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--text);
  text-align: left;
  cursor: pointer;
  transition: color var(--duration);
}
.rc-accordion-trigger:hover { color: var(--rc-green); }

.rc-accordion-icon {
  width: 20px;
  height: 20px;
  color: var(--text-muted);
  transition: transform var(--duration) var(--ease);
  flex-shrink: 0;
}

.rc-accordion-item.active .rc-accordion-icon {
  transform: rotate(180deg);
}

.rc-accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s var(--ease);
}
.rc-accordion-item.active .rc-accordion-content {
  max-height: 500px;
}

.rc-accordion-body {
  padding: 0 0 var(--space-lg) 0;
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ── Provider Logo Strip ───────────────────── */
.rc-logo-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--space-xl);
  padding: var(--space-lg) 0;
}

.rc-logo-strip img {
  height: 32px;
  width: auto;
  opacity: 0.5;
  filter: grayscale(100%);
  transition: all var(--duration);
}
.rc-logo-strip img:hover {
  opacity: 1;
  filter: grayscale(0%);
}

/* ── Step/Number Cards ─────────────────────── */
.rc-step-number {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-lg);
  background: var(--rc-green-50);
  color: var(--rc-green-dark);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ── Color Labels (ΡΑΑΕΥ tariff types) ─────── */
.rc-color-blue { background: #dbeafe; color: #1e40af; }
.rc-color-green { background: #dcfce7; color: #166534; }
.rc-color-yellow { background: #fef9c3; color: #854d0e; }
.rc-color-orange { background: #ffedd5; color: #9a3412; }

/* ── Divider ───────────────────────────────── */
.rc-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: var(--space-xl) 0;
}

/* ── Animations ────────────────────────────── */
@keyframes rc-fade-in {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

.rc-animate {
  opacity: 0;
  animation: rc-fade-in 0.5s var(--ease) forwards;
}
.rc-delay-1 { animation-delay: 0.1s; }
.rc-delay-2 { animation-delay: 0.2s; }
.rc-delay-3 { animation-delay: 0.3s; }

/* ── Ticker (social proof scroll) ──────────── */
@keyframes rc-ticker-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.rc-ticker-wrap {
  overflow: hidden;
  background: var(--rc-green-50);
  padding: 10px 0;
}

.rc-ticker {
  display: flex;
  gap: var(--space-2xl);
  animation: rc-ticker-scroll 30s linear infinite;
  width: max-content;
}

.rc-ticker-item {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--rc-green-darker);
  white-space: nowrap;
}

/* ── Loading Spinner ───────────────────────── */
@keyframes rc-spin { to { transform: rotate(360deg); } }

.rc-spinner {
  width: 24px;
  height: 24px;
  border: 3px solid var(--border);
  border-top-color: var(--rc-green);
  border-radius: 50%;
  animation: rc-spin 0.6s linear infinite;
}

/* ── Toast/Notification ────────────────────── */
.rc-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  padding: 16px 24px;
  border-radius: var(--radius-lg);
  background: var(--bg-dark);
  color: white;
  font-size: 0.9375rem;
  font-weight: 500;
  box-shadow: var(--shadow-xl);
  z-index: 9999;
  animation: rc-fade-in 0.3s var(--ease);
}

.rc-toast-success { border-left: 4px solid var(--rc-green); }
.rc-toast-error { border-left: 4px solid #ef4444; }

/* ── Responsive Visibility ─────────────────── */
.rc-hide-mobile { display: none; }
.rc-show-mobile { display: block; }

@media (min-width: 768px) {
  .rc-hide-mobile { display: block; }
  .rc-show-mobile { display: none; }
  .rc-hide-desktop { display: none; }
}

/* ── Override GeneratePress Defaults ───────── */
body .site-content,
body .content-area,
body .inside-article { padding: 0; margin: 0; max-width: none; }
body .site-header,
body .site-footer { display: none; }
body .entry-content { margin: 0; max-width: none; }
body .page .entry-header { display: none; }
.no-sidebar .site-main { width: 100%; max-width: none; }

/* Sticky mobile CTA */
.rc-sticky-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 12px var(--space-md);
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--border);
  z-index: 999;
  display: flex;
  gap: var(--space-sm);
}

@media (min-width: 768px) {
  .rc-sticky-cta { display: none; }
}
