/* ============================================================
   NOVALUXE — Inner Pages CSS (warm cream theme)
   ============================================================ */

/* ── Page Hero ─────────────────────────────────────────────── */
.page-hero {
  min-height: 52vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 6rem 0 3rem;
  margin-top: var(--nav-offset);
  background: var(--bg-muted);
  border-bottom: 1px solid var(--border);
}

@media (max-width: 768px) {
  .page-hero {
    min-height: auto;
    padding: 3rem 0 2rem;
    margin-top: 0.5rem;
  }
}

@media (max-width: 480px) {
  .page-hero {
    padding: 2rem 0 1.5rem;
    margin-top: 0.25rem;
  }
}
.page-hero__bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.page-hero__bg .hero__blob { opacity: 0.45; }
.page-hero__content {
  position: relative;
  z-index: 2;
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
  padding: 0 1rem;
}
.page-hero__sub {
  font-size: 1.05rem;
  color: var(--text-secondary);
  margin: 1.1rem auto 0;
  line-height: 1.8;
  max-width: 600px;
}
.page-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: center;
  margin-top: 2rem;
}

/* ── Breadcrumb ──────────────────────────────────────────────── */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}
.breadcrumb a { color: var(--accent-purple); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb__sep { opacity: 0.5; }

/* ── Service Detail Grid ────────────────────────────────────── */
.service-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.service-detail-grid.reverse {
  direction: rtl;
}
.service-detail-grid.reverse > * {
  direction: ltr;
}
.service-detail__list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-top: 1rem;
  list-style: none;
  padding: 0;
}
.service-detail__list li {
  font-size: 0.9rem;
  color: var(--text-secondary);
  padding-left: 1.5rem;
  position: relative;
  line-height: 1.7;
}
.service-detail__list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--accent-purple);
  font-size: 0.8rem;
  top: 0.05em;
}

/* ── Stat visual card ────────────────────────────────────────── */
.stat-visual {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.stat-visual__item {
  border-radius: var(--radius-md);
  padding: 1.25rem;
  border: 1px solid;
}
.stat-visual__num {
  font-size: 2rem;
  font-weight: 800;
  font-family: var(--font-display);
  line-height: 1.1;
}
.stat-visual__label {
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin-top: 0.3rem;
}

/* ── Section divider ─────────────────────────────────────────── */
.section-divider {
  height: 1px;
  background: var(--border);
  margin: 0;
}

/* ── Feature grid ────────────────────────────────────────────── */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  margin-top: 1.5rem;
}
.feature-item {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  transition: box-shadow 0.25s, border-color 0.25s, transform 0.25s;
}
.feature-item:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--border-strong);
  transform: translateY(-2px);
}
.feature-item__icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.85rem;
  font-size: 1.4rem;
}
.feature-item__title {
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 0.4rem;
}
.feature-item__desc {
  font-size: 0.84rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ── FAQ accordion ───────────────────────────────────────────── */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 720px;
  margin: 2.5rem auto 0;
}
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  overflow: hidden;
}
.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 1.15rem 1.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-family: var(--font-body);
}
.faq-question:hover { color: var(--accent-purple); }
.faq-question .faq-icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1.5px solid var(--border-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: transform 0.3s, background 0.3s;
}
.faq-item.open .faq-icon { transform: rotate(45deg); background: var(--tint-purple); border-color: var(--accent-purple); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.75;
}
.faq-item.open .faq-answer {
  max-height: 400px;
  padding: 0 1.5rem 1.25rem;
}

/* ── Blog article page ───────────────────────────────────────── */
.article-body {
  max-width: 740px;
  margin: 0 auto;
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--text-secondary);
}
.article-body h2 {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 1.8rem);
  color: var(--text-primary);
  margin: 2.5rem 0 1rem;
}
.article-body h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--text-primary);
  margin: 2rem 0 0.75rem;
}
.article-body p { margin-bottom: 1.25rem; }
.article-body ul, .article-body ol {
  padding-left: 1.5rem;
  margin-bottom: 1.25rem;
}
.article-body li { margin-bottom: 0.5rem; }
.article-body strong { color: var(--text-primary); }
.article-body blockquote {
  border-left: 3px solid var(--accent-purple);
  padding: 1rem 1.5rem;
  margin: 2rem 0;
  background: var(--tint-purple);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-style: italic;
  color: var(--text-primary);
}
.article-featured-media {
  max-width: 960px;
  margin: 0 auto 2.5rem;
}
.article-featured-media img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
}
.article-featured-media figcaption {
  margin-top: 0.75rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: center;
}
.article-tags {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  line-height: 1.75;
}

/* ── Product detail ──────────────────────────────────────────── */
.product-hero-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-lg);
  text-align: center;
}
.product-price-badge {
  display: inline-flex;
  align-items: baseline;
  gap: 0.2rem;
  background: var(--tint-purple);
  border: 1px solid rgba(124,58,237,0.2);
  border-radius: var(--radius-sm);
  padding: 0.5rem 1rem;
  margin: 1rem 0;
}
.product-price-badge .price-num {
  font-size: 2.4rem;
  font-weight: 800;
  font-family: var(--font-display);
  color: var(--accent-purple);
}
.product-price-badge .price-period {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* ── Pricing table ───────────────────────────────────────────── */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}
.pricing-card {
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-surface);
  padding: 2rem;
  transition: box-shadow 0.25s, border-color 0.25s;
}
.pricing-card:hover {
  box-shadow: var(--shadow-lg);
  border-color: var(--accent-purple);
}
.pricing-card.highlight {
  border-color: var(--accent-purple);
  background: var(--tint-purple);
}
.pricing-card__tier {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-purple);
  margin-bottom: 0.5rem;
}
.pricing-card__price {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.1;
}
.pricing-card__period {
  font-size: 0.82rem;
  color: var(--text-muted);
}
.pricing-card__features {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.pricing-card__features li {
  font-size: 0.88rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.pricing-card__features li::before {
  content: '';
  width: 16px;
  height: 16px;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='8' cy='8' r='7' stroke='%23059669' stroke-width='1.5'/%3E%3Cpath d='M5 8L7 10L11 6' stroke='%23059669' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-size: contain;
  flex-shrink: 0;
}

/* ── Back link ───────────────────────────────────────────────── */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-decoration: none;
  padding: 0.4rem 0;
  transition: color 0.2s;
}
.back-link:hover { color: var(--accent-purple); }

/* ── Related articles ────────────────────────────────────────── */
.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 900px) {
  .service-detail-grid,
  .service-detail-grid.reverse {
    grid-template-columns: 1fr;
    direction: ltr;
    gap: 2.5rem;
  }
  .service-detail-grid.reverse > * { direction: ltr; }
}
@media (max-width: 600px) {
  .page-hero { padding: 8rem 0 3.5rem; min-height: auto; }
  .stat-visual { padding: 1.25rem; }
  .article-body { font-size: 0.97rem; }
}
