/* ═══════════════════════════════════════════════════════════
   DARTNEST STUDIO — Offers pages (websiteoffer.html / appoffer.html)
   Uses existing theme variables from css/styles.css.
   Load AFTER styles.css: <link rel="stylesheet" href="css/Offers.css">
   ═══════════════════════════════════════════════════════════ */

/* ── Offer hero - reuses .page-hero, adds accent ── */
.offer-hero {
  background: var(--bg-dark);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.offer-hero .page-hero-inner { max-width: 780px; }
.offer-badge {
  display: inline-block;
  padding: 8px 16px;
  background: rgba(249,168,37,.14);
  border: 1px solid rgba(249,168,37,.45);
  color: #FFD54F;
  font-size: 13px;
  font-weight: 600;
  border-radius: 999px;
  margin-bottom: 20px;
}
.offer-hero h1 { color: #fff; }
.offer-hero .page-meta { color: rgba(255,255,255,.82); font-size: 18px; line-height: 1.6; }
/* FIX: hero buttons centred (were left-aligned) */
.offer-hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; justify-content: center; }
.offer-hero-actions .btn { min-width: 180px; }

/* ── Offer sections ── */
.offer-section { padding: 64px 0; }
.offer-section.alt { background: var(--bg-alt); }
.offer-section h2 {
  font-size: clamp(26px, 4vw, 36px);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}
.offer-lead { color: var(--text-muted); font-size: 17px; line-height: 1.65; max-width: 760px; }
.offer-lead + .offer-lead { margin-top: 12px; }

/* ── Check list (includes) ── */
/* FIX: flex + justify-content:center so the 5th card centres on its own row (was grid 2-col, 5th left-aligned) */
.offer-checklist {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 14px 28px;
  margin-top: 28px;
  justify-content: center;
}
.offer-checklist li {
  display: flex; gap: 12px; align-items: flex-start;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
  box-shadow: var(--shadow-sm);
  font-size: 15.5px; line-height: 1.6;
  flex: 1 1 340px;
  max-width: 520px;
}
.offer-section.alt .offer-checklist li { background: #fff; }
.offer-checklist svg { flex: 0 0 20px; width: 20px; height: 20px; margin-top: 3px; color: #2E7D32; }

/* ── Steps ── */
/* FIX: flex + justify-content:center (was grid, left-aligned on some widths) */
.offer-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 28px;
  justify-content: center;
}
.offer-step {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow-sm);
  flex: 1 1 280px;
  max-width: 380px;
}
.offer-step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--bg-dark); color: #fff;
  font-weight: 800; font-size: 15px; margin-bottom: 14px;
}
.offer-step p { color: var(--text-muted); font-size: 15.5px; line-height: 1.6; }

/* ── Pricing ── */
.offer-pricing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 28px;
  align-items: stretch;
}
.offer-price-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow);
  display: flex; flex-direction: column;
}
.offer-price-card.featured {
  border: 2px solid var(--billig);
  box-shadow: var(--shadow-lg);
  position: relative;
}
.offer-price-card.featured::before {
  content: attr(data-featured);
  position: absolute; top: -12px; left: 24px;
  background: var(--billig); color: #fff;
  font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  padding: 5px 10px; border-radius: 999px;
}
.offer-price-card h3 { font-size: 20px; margin-bottom: 6px; }
.offer-price {
  display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px;
  font-size: 36px; font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; margin: 12px 0 4px;
}
.offer-price small { font-size: 15px; font-weight: 600; color: var(--text-muted); }
/* „from / ab / de la” — mic, lângă cifra mare, nu ascuns */
.offer-price-from {
  font-size: 16px; font-weight: 600; letter-spacing: 0;
  color: var(--text-muted);
}
.offer-price-sub {
  display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px;
  font-size: 20px; font-weight: 700; letter-spacing: -0.01em; line-height: 1.2;
  margin: 2px 0 4px; color: var(--text);
}
.offer-price-sub span:first-child { font-size: 15px; font-weight: 600; color: var(--text-muted); }
.offer-price-desc { color: var(--text-muted); font-size: 15px; margin-bottom: 18px; }
.offer-price-card ul { list-style: none; margin-top: 4px; }
.offer-price-card ul li {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 9px 0; border-top: 1px solid var(--border-light);
  font-size: 15.5px; line-height: 1.55;
}
.offer-price-card ul li svg { flex: 0 0 18px; width: 18px; height: 18px; margin-top: 3px; color: #2E7D32; }
.offer-price-card .btn { margin-top: auto; width: 100%; justify-content: center; }
.offer-pricing-note {
  margin-top: 18px; padding: 14px 16px;
  background: #FFF8E1; border: 1px solid #FFE082; border-radius: var(--radius);
  font-size: 14.5px; line-height: 1.6; color: #5D4037;
}

/* ── Single pricing card (app page) ── */
.offer-price-single {
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 28px;
  box-shadow: var(--shadow); margin-top: 28px;
}
.offer-price-single ul { list-style: none; margin: 16px 0; }
.offer-price-single ul li {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 9px 0; border-top: 1px solid var(--border-light);
  font-size: 15.5px; line-height: 1.6;
}
.offer-price-single ul li svg { flex: 0 0 18px; width: 18px; height: 18px; margin-top: 3px; color: var(--billig); }
/* FIX: button in Price section centred (was left-aligned) */
.offer-price-single > div:last-child { text-align: center; }
.offer-price-single .btn { width: auto; min-width: 220px; }

/* ── Notice / Not included ── */
.offer-notice {
  background: #fff;
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  padding: 20px 22px;
  margin-top: 28px;
  font-size: 15.5px; line-height: 1.65;
}
.offer-notice strong { display: block; margin-bottom: 6px; font-size: 17px; }

/* ── Examples ── */
/* FIX: example pills centred (were left-aligned) */
.offer-examples {
  display: flex; gap: 14px; flex-wrap: wrap; margin-top: 20px;
  justify-content: center;
}
.offer-examples a {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px; background: #7fc1f7;
  border: 1px solid var(--border); border-radius: 10px;
  font-size: 14.5px; font-weight: 600;
  box-shadow: var(--shadow-sm);
}
.offer-examples a:hover { border-color: var(--billig); color: var(--billig); }

/* ── FAQ ── */
.offer-faq { margin-top: 28px; display: grid; gap: 14px; }
.offer-faq-item {
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px 22px;
}
.offer-faq-item h3 { font-size: 17px; margin-bottom: 8px; }
.offer-faq-item p { color: var(--text-muted); font-size: 15.5px; line-height: 1.65; }

/* ── Final CTA (reuses .services-cta look) ── */
/* FIX: flex column + align-items:center so the button is truly centred */
.offer-final-cta {
  background: var(--bg-dark); color: #fff;
  border-radius: var(--radius-lg);
  padding: 36px 28px; text-align: center;
  margin-top: 8px;
  display: flex; flex-direction: column; align-items: center;
}
.offer-final-cta h2 { color: #fff; }
.offer-final-cta p { color: rgba(255,255,255,.82); max-width: 640px; margin: 0 auto 22px; font-size: 16px; line-height: 1.6; }
.offer-final-cta .btn { width: auto; min-width: 220px; }

/* ── FIX: blue text on gradient buttons ── */
/* Cause: styles.css has `.page-content a { color: var(--primary); }` (specificity 0,1,1) */
/* which beats `.btn-primary { color: #fff; }` (0,1,0). Offer sections are inside .page-content, */
/* so every .btn-primary got blue text on the blue→purple gradient. This block wins (0,4,1). */
.page-content .offer-section a.btn,
.page-content a.btn.btn-primary,
.page-content a.btn.btn-ghost {
  text-decoration: none;
}
.page-content .offer-section a.btn.btn-primary,
.page-content a.btn.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--billig) 0%, var(--qr) 100%);
}
.page-content .offer-section a.btn.btn-primary:hover,
.page-content a.btn.btn-primary:hover {
  color: #fff;
}
.page-content .offer-examples a {
  color: var(--text);
  text-decoration: none;
}
.page-content .offer-examples a:hover {
  color: var(--billig);
  text-decoration: none;
}

/* ── Responsive ── */
@media (max-width: 820px) {
  .offer-checklist, .offer-pricing-grid { grid-template-columns: 1fr; }
  .offer-checklist li, .offer-step { flex: 1 1 100%; max-width: none; }
  .offer-section { padding: 48px 0; }
  .offer-hero-actions .btn { width: 100%; }
  .offer-price-card.featured::before { left: 50%; transform: translateX(-50%); }
}
