/* ═══════════════════════════════════════════════════════════
   QUIVALS.COM — Inner pages (Services + Blog)
   Extends style.css — same dark/glass design system
   ═══════════════════════════════════════════════════════════ */

/* ── Page hero (shorter than home hero) ── */
.page-hero {
  position: relative;
  padding: 160px 0 72px;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(ellipse 700px 340px at 15% 0%, rgba(56,189,248,0.10) 0%, transparent 70%),
    radial-gradient(ellipse 600px 340px at 90% 10%, rgba(129,140,248,0.10) 0%, transparent 70%);
}
.page-hero .hero-badge { margin-bottom: 20px; }
.page-hero h1 {
  font-size: clamp(2.2rem, 5.5vw, 3.4rem); font-weight: 900; line-height: 1.1;
  color: #fff; margin-bottom: 20px; max-width: 800px;
}
.page-hero h1 span {
  background: linear-gradient(135deg, #38bdf8, #818cf8);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.page-hero .lead { font-size: 1.15rem; color: #94a3b8; max-width: 640px; margin-bottom: 32px; }

/* ── Breadcrumb ── */
.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 0.85rem; margin-bottom: 24px; }
.breadcrumb a { color: #64748b; text-decoration: none; transition: color 0.3s; }
.breadcrumb a:hover { color: #38bdf8; }
.breadcrumb span { color: #38bdf8; }
.breadcrumb .sep { color: #334155; }

/* ── Generic prose block ── */
.prose { max-width: 760px; }
.prose p { color: #94a3b8; font-size: 1.02rem; margin-bottom: 20px; }
.prose h2 { font-size: clamp(1.6rem, 3.5vw, 2.1rem); font-weight: 800; color: #fff; margin: 8px 0 18px; }
.prose h3 { font-size: 1.25rem; font-weight: 700; color: #e2e8f0; margin: 28px 0 12px; }
.prose ul { list-style: none; margin: 8px 0 24px; display: flex; flex-direction: column; gap: 12px; }
.prose ul li { position: relative; padding-left: 30px; color: #94a3b8; }
.prose ul li::before {
  content: '✓'; position: absolute; left: 0; top: 0;
  color: #38bdf8; font-weight: 800;
}
.prose strong { color: #e2e8f0; }
.prose a { color: #38bdf8; text-decoration: none; }
.prose a:hover { text-decoration: underline; }

/* ── Feature list (service capabilities) ── */
.feature-list { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 40px; }
.feature-list .glass-card { padding: 26px; }
.feature-item-icon {
  width: 48px; height: 48px; border-radius: 12px; display: flex;
  align-items: center; justify-content: center; margin-bottom: 16px; font-size: 1.3rem;
  background: linear-gradient(135deg, rgba(56,189,248,0.12), rgba(129,140,248,0.12));
}
.feature-list h3 { font-size: 1.05rem; font-weight: 700; color: #fff; margin-bottom: 8px; }
.feature-list p { font-size: 0.9rem; color: #94a3b8; line-height: 1.6; }

/* ── Benefit chips row ── */
.benefit-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.benefit-chip {
  padding: 10px 18px; border-radius: 50px; font-size: 0.85rem; font-weight: 500;
  color: #cbd5e1; background: rgba(56,189,248,0.06); border: 1px solid rgba(56,189,248,0.18);
}

/* ── CTA band ── */
.cta-band {
  margin: 40px 0 0; padding: 48px; border-radius: 20px; text-align: center;
  background: linear-gradient(145deg, rgba(56,189,248,0.08), rgba(129,140,248,0.08));
  border: 1px solid rgba(56,189,248,0.15);
}
.cta-band h2 { font-size: clamp(1.6rem, 4vw, 2.2rem); font-weight: 800; color: #fff; margin-bottom: 12px; }
.cta-band p { color: #94a3b8; max-width: 520px; margin: 0 auto 28px; }

/* ── Services hub grid (responsive, no inline overrides) ── */
.svc-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 48px; }
.svc-grid a.glass-card { text-decoration: none; display: block; }
.svc-grid .svc-card-wide { grid-column: 1 / -1; }

/* ── Related services / cross-links ── */
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 40px; }
.related-grid a.glass-card { text-decoration: none; display: block; }
.related-grid .card-title { font-size: 1.05rem; }
.related-grid .card-text { font-size: 0.88rem; }

/* ═══════════ BLOG ═══════════ */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 48px; }
.blog-card { text-decoration: none; display: flex; flex-direction: column; padding: 0; overflow: hidden; }
.blog-card .blog-thumb {
  height: 160px; display: flex; align-items: center; justify-content: center; font-size: 3rem;
  background: linear-gradient(135deg, rgba(56,189,248,0.14), rgba(129,140,248,0.14));
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.blog-card .blog-body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.blog-meta { font-size: 0.78rem; color: #64748b; margin-bottom: 10px; display: flex; gap: 10px; align-items: center; }
.blog-tag { color: #38bdf8; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; }
.blog-card h3 { font-size: 1.1rem; font-weight: 700; color: #fff; margin-bottom: 10px; line-height: 1.35; }
.blog-card p { font-size: 0.9rem; color: #94a3b8; line-height: 1.6; flex: 1; }
.blog-card .read-more { margin-top: 16px; color: #38bdf8; font-size: 0.85rem; font-weight: 600; }

/* ── Single post ── */
.post-hero { padding: 150px 0 40px; }
.post-hero h1 { font-size: clamp(2rem, 5vw, 3rem); font-weight: 900; color: #fff; line-height: 1.15; margin-bottom: 20px; max-width: 820px; }
.post-hero .post-meta { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; color: #64748b; font-size: 0.9rem; }
.post-hero .post-meta .blog-tag { font-size: 0.8rem; }
.post-body { max-width: 760px; margin: 0 auto; }
.post-body p { color: #cbd5e1; font-size: 1.05rem; line-height: 1.8; margin-bottom: 22px; }
.post-body h2 { font-size: 1.6rem; font-weight: 800; color: #fff; margin: 40px 0 16px; }
.post-body h3 { font-size: 1.2rem; font-weight: 700; color: #e2e8f0; margin: 28px 0 12px; }
.post-body ul, .post-body ol { margin: 0 0 22px 4px; padding-left: 22px; color: #94a3b8; display: flex; flex-direction: column; gap: 10px; }
.post-body li { line-height: 1.7; }
.post-body blockquote {
  margin: 28px 0; padding: 20px 26px; border-left: 3px solid #38bdf8;
  background: rgba(56,189,248,0.05); border-radius: 0 12px 12px 0; color: #cbd5e1; font-style: italic;
}
.post-body strong { color: #fff; }
.post-body a { color: #38bdf8; text-decoration: none; }
.post-body a:hover { text-decoration: underline; }
.post-divider { height: 1px; background: rgba(255,255,255,0.08); margin: 40px 0; border: none; }

/* ── Responsive ── */
@media (max-width: 1024px) {
  .feature-list { grid-template-columns: 1fr; }
  .related-grid { grid-template-columns: 1fr; }
  .svc-grid { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  /* Tighter vertical rhythm so mobile doesn't show large empty bands */
  .page-hero { padding: 116px 0 36px; }
  .page-hero h1 { font-size: clamp(1.85rem, 8vw, 2.4rem); }
  .page-hero .lead { font-size: 1.02rem; }
  .section { padding: 52px 0; }
  .prose h2 { font-size: 1.5rem; }
  .feature-list { margin-top: 24px; }
  .related-grid { margin-top: 24px; }
  .benefit-row { margin-top: 24px; }
  .cta-band { padding: 32px 20px; margin-top: 24px; }
  .blog-grid { grid-template-columns: 1fr; margin-top: 28px; }
  /* Collapse the big inline top-margins used between blocks on desktop */
  [style*="margin-top:56px"] { margin-top: 28px !important; }
  .prose[style*="margin-top:56px"] { margin-top: 32px !important; }
  .post-hero { padding: 116px 0 24px; }
  .post-body p { font-size: 1rem; }
  .post-body h2 { font-size: 1.4rem; margin: 28px 0 12px; }
}

@media (max-width: 400px) {
  .page-hero h1 { font-size: 1.7rem; }
  .breadcrumb { font-size: 0.8rem; }
  .benefit-chip { font-size: 0.8rem; padding: 8px 14px; }
}
