/* ============================================
   RATE CARD SECTION — LIGHT MODE
   ============================================ */

.rate-section {
  /* Brand colors */
  --r-primary:   var(--primary,   #fb8500);
  --r-secondary: var(--secondary, #ffb703);
  --r-accent-1:  var(--accent-1,  #219ebc);
  --r-accent-2:  var(--accent-2,  #023047);

  /* WhatsApp green — deliberate exception, users expect it */
  --r-wa:        #25d366;
  --r-wa-dark:   #1da851;

  /* Light neutrals */
  --r-bg:          #ffffff;
  --r-surface:     #ffffff;
  --r-surface-2:   #f8fafc;
  --r-text:        #0f172a;
  --r-muted:       #4b5563;
  --r-dim:         #64748b;
  --r-border:      #e5e7eb;
  --r-border-soft: #f1f5f9;

  /* Type */
  --r-font-display: var(--font-display, 'Space Grotesk', system-ui, sans-serif);
  --r-font-body:    var(--font-body, 'Inter', system-ui, sans-serif);

  /* Radius + motion */
  --r-radius: 18px;
  --r-ease:   cubic-bezier(0.2, 0.7, 0.3, 1);

  position: relative;
  isolation: isolate;
  overflow: hidden;

  padding: clamp(4.5rem, 11vh, 8rem) 0;
  background: var(--r-bg);
  color: var(--r-text);
  font-family: var(--r-font-body);
  border-top: 1px solid var(--r-border-soft);
}

/* Warm/cool corner tints */
.rate-section__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;

  background:
    radial-gradient(ellipse 55% 40% at 50% 0%,
      rgba(251, 133, 0, 0.06) 0%, transparent 65%),
    radial-gradient(ellipse 55% 40% at 50% 100%,
      rgba(33, 158, 188, 0.05) 0%, transparent 65%);
}

/* ============================================
   INTRO
   ============================================ */
.rate-section__intro {
  max-width: 720px;
  margin: 0 auto clamp(3rem, 6vw, 4.5rem);
  text-align: center;
}

.rate-section__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;

  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  line-height: 1;
  color: var(--r-primary);
}

.rate-section__eyebrow::before,
.rate-section__eyebrow::after {
  content: '';
  width: 1.75rem;
  height: 1px;
  background: currentColor;
  opacity: 0.6;
}

.rate-section__title {
  margin-top: 1.2rem;

  font-family: var(--r-font-display);
  font-size: clamp(1.9rem, 4.2vw, 3rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.032em;
  color: var(--r-text);
  text-wrap: balance;
}

.rate-section__lead {
  margin-top: 1rem;

  font-size: clamp(0.98rem, 1.3vw, 1.05rem);
  line-height: 1.65;
  color: var(--r-muted);
}

/* ============================================
   CARDS GRID
   ============================================ */
.rates {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 2vw, 1.5rem);
  align-items: stretch;
}

/* ---------- Card ---------- */
.rate-card {
  position: relative;

  display: flex;
  flex-direction: column;

  padding: clamp(1.6rem, 2.6vw, 2.15rem);

  border: 1px solid var(--r-border);
  border-radius: var(--r-radius);
  background: var(--r-surface);

  box-shadow:
    0 1px 2px rgba(15, 23, 42, 0.03),
    0 10px 30px -22px rgba(15, 23, 42, 0.12);

  transition:
    transform     0.4s var(--r-ease),
    border-color  0.4s var(--r-ease),
    box-shadow    0.4s var(--r-ease);
}

.rate-card:hover {
  transform: translateY(-4px);
  border-color: rgba(15, 23, 42, 0.12);
  box-shadow:
    0 4px 10px -6px rgba(15, 23, 42, 0.06),
    0 20px 45px -25px rgba(15, 23, 42, 0.15);
}

/* ---------- Highlighted tier ---------- */
.rate-card--popular {
  border-color: var(--r-primary);
  box-shadow:
    0 1px 2px rgba(15, 23, 42, 0.03),
    0 20px 55px -30px rgba(251, 133, 0, 0.5);
}

.rate-card--popular:hover {
  border-color: var(--r-primary);
  box-shadow:
    0 4px 10px -6px rgba(15, 23, 42, 0.06),
    0 28px 65px -28px rgba(251, 133, 0, 0.55);
}

/* "Most popular" pill */
.rate-card__badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);

  padding: 0.3rem 0.85rem;
  border-radius: 100px;

  background: linear-gradient(120deg, var(--r-primary), var(--r-secondary));
  color: #fff;

  font-family: var(--r-font-body);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  line-height: 1;
  white-space: nowrap;

  box-shadow: 0 6px 18px -8px rgba(251, 133, 0, 0.7);
}

/* ---------- Head ---------- */
.rate-card__head {
  padding-bottom: 1.35rem;
  border-bottom: 1px solid var(--r-border-soft);
}

.rate-card__name {
  font-family: var(--r-font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--r-dim);
}

/* ---------- Price ---------- */
.rate-card__price {
  display: flex;
  align-items: baseline;
  gap: 0.15rem;
  margin-top: 0.6rem;

  font-family: var(--r-font-display);
  color: var(--r-text);
  line-height: 1;
}

.rate-card__currency {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--r-dim);
}

.rate-card__amount {
  font-size: clamp(2.1rem, 3.6vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.04em;
}

.rate-card--popular .rate-card__amount {
  color: var(--r-primary);
}

.rate-card__suffix {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--r-dim);
  margin-left: 0.1rem;
}

/* ---------- Delivery ---------- */
.rate-card__delivery {
  margin-top: 0.55rem;

  font-size: 0.85rem;
  font-weight: 500;
  color: var(--r-muted);
}

/* ---------- Features ---------- */
.rate-card__features {
  list-style: none;
  padding: 0;
  margin: 1.35rem 0 1.75rem;

  display: flex;
  flex-direction: column;
  gap: 0.65rem;

  flex: 1;  /* pushes CTA to bottom regardless of feature count */
}

.rate-card__features li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;

  font-size: 0.91rem;
  line-height: 1.5;
  color: var(--r-muted);
}

.rate-card__check {
  flex: none;
  width: 16px;
  height: 16px;
  margin-top: 0.15rem;

  color: var(--r-accent-1);
}

/* ---------- CTA ---------- */
.rate-card__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;

  width: 100%;
  padding: 0.85rem 1.25rem;

  border-radius: 100px;
  background: var(--r-wa);
  color: #fff;

  font-family: var(--r-font-body);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  text-decoration: none;
  white-space: nowrap;

  box-shadow: 0 6px 18px -10px rgba(37, 211, 102, 0.65);

  transition:
    background   0.3s var(--r-ease),
    transform    0.3s var(--r-ease),
    box-shadow   0.3s var(--r-ease);
}

.rate-card__cta:hover {
  background: var(--r-wa-dark);
  transform: translateY(-2px);
  box-shadow: 0 12px 24px -10px rgba(37, 211, 102, 0.7);
}

.rate-card__wa-icon {
  width: 16px;
  height: 16px;
  flex: none;
}

/* ---------- Phone fallback ---------- */
.rate-card__phone {
  display: block;
  margin-top: 0.85rem;

  text-align: center;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--r-dim);
  text-decoration: none;

  transition: color 0.3s var(--r-ease);
}

.rate-card__phone:hover {
  color: var(--r-primary);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1000px) {
  .rates {
    grid-template-columns: repeat(2, 1fr);
  }

  /* With 2 columns, the third card wraps below — center it */
  .rates .rate-card:nth-child(3) {
    grid-column: 1 / -1;
    max-width: 480px;
    margin-inline: auto;
    width: 100%;
  }
}

@media (max-width: 640px) {
  .rates {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .rates .rate-card:nth-child(3) {
    max-width: 100%;
  }

  .rate-card--popular {
    /* On mobile, still highlight but don't over-emphasize */
    transform: none;
  }

  .rate-section__eyebrow {
    font-size: 0.66rem;
  }

  .rate-section__eyebrow::before,
  .rate-section__eyebrow::after {
    width: 1.25rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .rate-card,
  .rate-card__cta,
  .rate-card__phone {
    transition-duration: 0.01ms;
  }
}