/* ══════════════════════════════════════════════════════════════════════
   Cherry.dev — Service Detail Page Styles
   ══════════════════════════════════════════════════════════════════════ */

/* ── Hero ─────────────────────────────────────────────────────────────── */
.service-hero {
  padding: calc(var(--nav-h) + 64px) 0 72px;
  position: relative;
  overflow: hidden;
  text-align: center;
}
.service-hero--app  .orb-1 { background: var(--accent); }
.service-hero--shop .orb-1 { background: var(--service-shop-accent); }

/* More blurred / faded orbs on all non-home pages for readability */
.service-hero .hero-orb {
  filter: blur(160px);
  opacity: .08;
}

/* Blur the cherry background image on service / FAQ pages */
body::before { filter: blur(6px) brightness(1.05); transform: scale(1.04); }

/* FAQ page jump links */
.faq-jump-links {
  display: flex;
  gap: .6rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: .88rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 2rem;
  transition: color var(--transition);
}
.back-link:hover { color: var(--text); }

.service-hero-icon {
  width: 64px;
  height: 64px;
  background: var(--accent-subtle);
  border: 1px solid var(--accent-glow);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  color: var(--accent);
}
.service-hero-icon svg { width: 30px; height: 30px; }

.service-hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -.03em;
  margin-bottom: 1rem;
}
.service-hero-sub {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ── Sections ─────────────────────────────────────────────────────────── */
.sp-section { padding: 80px 0; }
.sp-section--dark { background: var(--bg-card); color: var(--on-card); }
.sp-section--dark .section-tag { color: var(--on-card); }
.sp-section--dark .section-sub { color: var(--on-card-muted); }

/* ── Features grid ────────────────────────────────────────────────────── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
@media (max-width: 768px) { .features-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .features-grid { grid-template-columns: 1fr; } }

.feature-item {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  transition: border-color var(--transition);
}
.feature-item:hover { border-color: var(--accent-hover); }
.feature-icon { font-size: 1.75rem; display: block; margin-bottom: .75rem; }
.feature-item h3 { font-size: 1rem; font-weight: 700; margin-bottom: .4rem; color: var(--section-text); }
.feature-item p  { font-size: .88rem; color: var(--section-text-muted); line-height: 1.6; }

/* ── Pricing tiers ────────────────────────────────────────────────────── */
.tiers-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  align-items: start;
}
@media (max-width: 900px) { .tiers-grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; } }

.tier-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  position: relative;
  color: var(--section-text);
  transition: border-color var(--transition), transform var(--transition);
}
.tier-card:hover { border-color: var(--accent-hover); transform: translateY(-4px); }

.tier-card--featured {
  border-color: var(--accent);
  background: var(--bg-card);
  transform: scale(1.03);
  box-shadow: 0 0 0 1px var(--accent), 0 8px 32px var(--accent-featured);
  color: var(--on-card);
}
.tier-card--featured:hover { transform: scale(1.03) translateY(-4px); }
.tier-card--featured .tier-name,
.tier-card--featured .tier-amount,
.tier-card--featured .tier-tagline,
.tier-card--featured .tier-features li { color: var(--on-card-muted); }
.tier-card--featured .tier-amount { color: var(--on-card); }
.tier-card--featured .tier-currency,
.tier-card--featured .tier-features li::before { color: var(--on-card); }
.tier-card--featured .btn-ghost { color: var(--on-card); border-color: var(--on-card-border); }

.tier-badge {
  display: inline-block;
  background: var(--accent);
  color: var(--on-accent);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: .25rem .75rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}

.tier-header { margin-bottom: 1.5rem; }
.tier-name {
  display: block;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--section-text-muted);
  margin-bottom: .5rem;
}
.tier-price {
  display: flex;
  align-items: flex-start;
  gap: .15rem;
  margin-bottom: .5rem;
}
.tier-currency {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--accent);
  margin-top: .4rem;
}
.tier-amount {
  font-size: 2.8rem;
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1;
  color: var(--section-text);
}
.tier-tagline {
  font-size: .88rem;
  color: var(--section-text-muted);
  line-height: 1.5;
}

.tier-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: .65rem;
  margin-bottom: 1.75rem;
}
.tier-features li {
  font-size: .88rem;
  color: var(--section-text-muted);
  display: flex;
  align-items: center;
  gap: .6rem;
}
.tier-features li::before {
  content: '✓';
  color: var(--accent);
  font-weight: 700;
  font-size: .85rem;
  flex-shrink: 0;
}

/* ── FAQ ──────────────────────────────────────────────────────────────── */
.faq-list {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: .75rem;
}
.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  color: var(--on-card);
  transition: border-color var(--transition);
}
.faq-item:hover { border-color: var(--accent-glow); }
.faq-item summary {
  padding: 1.1rem 1.5rem;
  cursor: pointer;
  font-weight: 600;
  font-size: .95rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
  min-height: 44px;
}
.faq-item summary::after {
  content: '+';
  font-size: 1.2rem;
  color: var(--on-card);
  font-weight: 300;
  transition: transform var(--transition);
}
.faq-item[open] summary::after { content: '−'; }
.faq-item p {
  padding: 0 1.5rem 1.25rem;
  color: var(--on-card-muted);
  font-size: .92rem;
  line-height: 1.65;
}

/* ── CTA banner ───────────────────────────────────────────────────────── */
.sp-cta {
  background: var(--accent-subtle);
  border-top: 1px solid var(--accent-border);
  padding: 72px 0;
}
.sp-cta-inner {
  text-align: center;
}
.sp-cta-inner h2 {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -.02em;
  margin-bottom: .75rem;
}
.sp-cta-inner p {
  color: var(--section-text-muted);
  margin-bottom: 2rem;
}

/* ── Service card actions (index.html) ────────────────────────────────── */
.service-card-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: auto;
}

/* ── Tier card actions ─────────────────────────────────────────────────── */
.tier-actions {
  display: flex;
  flex-direction: column;
  gap: .65rem;
  margin-top: .5rem;
}

/* ── Order modal ───────────────────────────────────────────────────────── */
.order-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--overlay);
  backdrop-filter: blur(6px);
  z-index: 400;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}
.order-overlay.open { display: flex; }

.order-modal {
  background: var(--section-card-bg);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 540px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  position: relative;
  display: flex;
  flex-direction: column;
}

.order-modal-head {
  background: var(--bg-card);
  padding: 1.5rem 2rem;
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  flex-shrink: 0;
}
.order-modal-head h2 {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--on-card);
  margin-bottom: .2rem;
}
.order-modal-head p {
  font-size: .88rem;
  color: var(--on-card-muted);
}

.order-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--on-card-overlay);
  border: none;
  color: var(--on-card);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
}
.order-modal-close:hover { background: var(--on-card-border); }

.order-modal-body {
  padding: 1.75rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Tier summary pill at top of modal */
.order-tier-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--input-bg);
  border: 1.5px solid var(--input-border);
  border-radius: var(--radius);
  padding: .75rem 1rem;
  margin-bottom: .25rem;
}
.order-tier-summary strong {
  font-size: .95rem;
  font-weight: 700;
  color: var(--section-text);
}
.order-tier-price {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--accent);
}

/* Form fields inside modal */
.order-field {
  display: flex;
  flex-direction: column;
  gap: .4rem;
}
.order-field label {
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--section-text-muted);
}
.order-field input,
.order-field textarea,
.order-field select {
  background: var(--input-bg);
  border: 1.5px solid var(--input-border);
  border-radius: var(--radius);
  padding: .7rem 1rem;
  color: var(--section-text);
  font-family: var(--font);
  font-size: .9rem;
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
  width: 100%;
}
.order-field input::placeholder,
.order-field textarea::placeholder { color: var(--input-placeholder); }
.order-field input:focus,
.order-field textarea:focus,
.order-field select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}
.order-field textarea { resize: vertical; min-height: 110px; }
.order-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
@media (max-width: 520px) { .order-row { grid-template-columns: 1fr; } }

.order-note {
  font-size: .8rem;
  color: var(--section-text-sub);
  background: var(--input-bg);
  border-left: 3px solid var(--accent);
  padding: .65rem .9rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  line-height: 1.5;
}

.order-alert { display: none; padding: .7rem 1rem; border-radius: var(--radius); font-size: .88rem; font-weight: 500; }
.order-alert:not(:empty) { display: block; }
.order-alert--success { background: var(--color-success-bg); color: var(--color-success); border: 1px solid var(--color-success-border); }
.order-alert--error   { background: var(--color-error-bg);   color: var(--color-error);   border: 1px solid var(--color-error-border); }

.order-modal-footer {
  padding: 1rem 2rem 1.75rem;
  display: flex;
  gap: .75rem;
  flex-wrap: wrap;
}
