/* ==========================================================================
   PeakOps — inner pages (services / about / English)
   Extends styles.css; uses the same tokens and header/footer components.
   ========================================================================== */

/* ---------- Page hero ---------- */
.page-hero {
  position: relative;
  overflow: hidden;
  padding: 150px 0 76px;
  background:
    radial-gradient(70% 80% at 88% -10%, rgba(35, 43, 80, .65), transparent 65%),
    radial-gradient(50% 60% at 8% 0%, rgba(140, 146, 208, .12), transparent 70%),
    var(--ground);
  border-bottom: 1px solid var(--line);
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(140, 146, 208, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(140, 146, 208, .05) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom, #000, transparent 88%);
  pointer-events: none;
}
.page-hero .container { position: relative; z-index: 1; }
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
  font-size: .72rem;
  color: var(--muted-2);
}
.breadcrumbs a { color: var(--accent); }
.breadcrumbs a:hover { color: var(--accent-soft); }
.breadcrumbs .sep { color: var(--muted-2); }
.page-hero h1 {
  max-width: 920px;
  font-size: clamp(2.1rem, 4.2vw, 3.5rem);
  line-height: 1.3;
  margin-bottom: 20px;
}
.page-hero .lead {
  max-width: 740px;
  color: var(--muted);
  font-size: clamp(.98rem, 1.3vw, 1.08rem);
  line-height: 1.95;
}
.page-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}
.quick-answer {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  max-width: 860px;
  margin-top: 32px;
  padding: 18px 22px;
  background: rgba(20, 20, 27, .78);
  border: 1px solid var(--line);
  border-inline-start: 3px solid var(--accent);
  border-radius: var(--r-md);
}
.quick-answer strong {
  flex: none;
  padding-top: 2px;
  color: var(--accent-soft);
  font-family: var(--font-display);
  font-size: .82rem;
  font-weight: 600;
  white-space: nowrap;
}
.quick-answer p {
  margin: 0;
  color: var(--muted);
  font-size: .9rem;
  line-height: 1.95;
}
@media (max-width: 640px) {
  .quick-answer { flex-direction: column; gap: 8px; }
}
.page-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  padding: 7px 14px;
  border: 1px solid rgba(140, 146, 208, .35);
  border-radius: 999px;
  color: var(--accent-soft);
  font-size: .72rem;
  letter-spacing: .02em;
  background: rgba(140, 146, 208, .06);
}
.page-hero-badge .icon { width: 15px; height: 15px; }

/* ---------- Sections ---------- */
.page-section { padding: 76px 0; }
.page-section + .page-section { border-top: 1px solid var(--line); }
.page-section.is-paper {
  background: var(--cream-2);
  color: var(--ink);
  border-top-color: var(--line-cream);
}
.page-section.is-navy { background: var(--primary-deep); }
.page-section.is-paper h2,
.page-section.is-paper h3 { color: var(--ink); }
.page-section.is-paper p,
.page-section.is-paper li { color: var(--ink-muted); }
.section-narrow { max-width: 880px; }
.section-head.is-page { margin-bottom: 34px; }
.section-head.is-page h2 { font-size: clamp(1.6rem, 2.8vw, 2.3rem); }

.prose p {
  color: var(--muted);
  font-size: .98rem;
  line-height: 2.05;
  margin-bottom: 18px;
}
.prose p:last-child { margin-bottom: 0; }
.prose h3 {
  margin: 26px 0 10px;
  font-size: 1.08rem;
  color: var(--text);
}
.prose ul {
  margin: 0 0 20px;
  padding-inline-start: 20px;
  color: var(--muted);
}
.prose li { margin-bottom: 9px; line-height: 1.9; font-size: .94rem; }
.prose strong { color: var(--text); font-weight: 600; }
.is-paper .prose p,
.is-paper .prose li { color: var(--ink-muted); }
.is-paper .prose strong { color: var(--ink); }

/* ---------- Feature grid ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 32px;
}
.feature-card {
  padding: 24px 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  transition: border-color .3s var(--ease), transform .3s var(--ease);
}
.feature-card:hover {
  border-color: var(--accent-dim);
  transform: translateY(-3px);
}
.feature-card .icon {
  width: 22px;
  height: 22px;
  color: var(--accent);
  margin-bottom: 14px;
}
.feature-card h3 {
  font-size: .98rem;
  margin-bottom: 8px;
  color: var(--text);
}
.feature-card p {
  font-size: .82rem;
  line-height: 1.85;
  color: var(--muted);
}

/* ---------- Comparison table ---------- */
.table-wrap {
  margin-top: 30px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
}
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  text-align: start;
  font-size: .88rem;
}
.comparison-table th,
.comparison-table td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  line-height: 1.8;
}
.comparison-table th {
  background: var(--surface-2);
  color: var(--accent-soft);
  font-family: var(--font-display);
  font-size: .78rem;
  font-weight: 600;
  white-space: nowrap;
}
.comparison-table td { color: var(--muted); }
.comparison-table td:first-child { color: var(--text); font-weight: 500; }
.comparison-table tr:last-child td { border-bottom: 0; }
.is-paper .table-wrap { background: #fff; border-color: #DDDDD5; }
.is-paper .comparison-table th { background: #F1F1EB; color: var(--ink); }
.is-paper .comparison-table td { color: var(--ink-muted); border-color: #E4E4DC; }
.is-paper .comparison-table td:first-child { color: var(--ink); }

/* ---------- Split panels ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 30px;
}
.panel {
  padding: 26px 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
}
.panel h3 {
  font-size: 1.02rem;
  margin-bottom: 14px;
  color: var(--text);
}
.is-paper .panel {
  background: #fff;
  border-color: #DDDDD5;
}
.is-paper .panel h3 { color: var(--ink); }
.is-paper .check-list li { color: var(--ink-muted); }
.is-paper .check-list .icon { color: var(--primary); }
.check-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 11px;
}
.check-list li {
  display: flex;
  gap: 10px;
  color: var(--muted);
  font-size: .88rem;
  line-height: 1.8;
}
.check-list .icon {
  width: 18px;
  height: 18px;
  flex: none;
  margin-top: 3px;
  color: var(--accent);
}

/* ---------- CTA band ---------- */
.page-cta {
  padding: 66px 0;
  background:
    radial-gradient(60% 100% at 100% 0%, rgba(140, 146, 208, .18), transparent 60%),
    linear-gradient(135deg, var(--primary), var(--primary-deep));
  border-top: 1px solid rgba(140, 146, 208, .18);
}
.page-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  flex-wrap: wrap;
}
.page-cta h2 {
  font-size: clamp(1.55rem, 2.8vw, 2.25rem);
  margin-bottom: 10px;
  color: #fff;
}
.page-cta p {
  max-width: 62ch;
  color: var(--accent-soft);
  line-height: 1.9;
}
.page-cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Related services ---------- */
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 30px;
}
.related-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  transition: border-color .3s var(--ease), transform .3s var(--ease);
}
.related-card:hover {
  border-color: var(--accent-dim);
  transform: translateY(-3px);
}
.related-card .icon { width: 20px; height: 20px; color: var(--accent); }
.related-card h3 { font-size: .96rem; color: var(--text); }
.related-card p { font-size: .8rem; line-height: 1.8; color: var(--muted); }
.related-card .more {
  margin-top: auto;
  padding-top: 10px;
  color: var(--accent);
  font-size: .76rem;
}

/* ---------- Service cards (hub) ---------- */
.services-grid.is-page { grid-template-columns: repeat(3, 1fr); }
a.service-card { text-decoration: none; }
a.service-card h3 { color: var(--ink); }
a.service-card .service-more { color: var(--primary); }
a.service-card:hover .service-more { color: var(--primary-2); }
.service-card .service-more .icon { color: currentColor; }

/* ---------- About page ---------- */
.about-page-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 28px;
  align-items: start;
}
.about-page-note {
  padding: 26px 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
}
.about-page-note h3 { font-size: 1.02rem; margin-bottom: 12px; }
.about-page-note p { color: var(--muted); font-size: .9rem; line-height: 1.95; }
.about-page-note .brand-ar {
  display: inline-block;
  margin-top: 10px;
  color: var(--accent-soft);
  font-size: .82rem;
}
.about-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 34px;
}
.about-stat {
  padding: 22px 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
}
.about-stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.7rem;
  color: var(--accent-soft);
  margin-bottom: 6px;
}
.about-stat span { font-size: .78rem; color: var(--muted); line-height: 1.7; }

/* ---------- English / LTR fixes ---------- */
[dir="ltr"] .breadcrumbs,
[dir="ltr"] .page-hero-actions,
[dir="ltr"] .page-cta-actions { flex-direction: row; }
[dir="ltr"] .check-list li { text-align: start; }
[dir="ltr"] .page-hero h1,
[dir="ltr"] .page-hero .lead { margin-inline: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .feature-grid,
  .related-grid,
  .services-grid.is-page { grid-template-columns: repeat(2, 1fr); }
  .about-page-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .page-hero { padding: 126px 0 58px; }
  .page-section { padding: 56px 0; }
  .feature-grid,
  .related-grid,
  .services-grid.is-page,
  .split,
  .about-stats { grid-template-columns: 1fr; }
  .page-cta { padding: 52px 0; }
  .page-cta-inner { align-items: flex-start; }
  .page-cta-actions .btn { width: 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  .feature-card,
  .related-card,
  .service-card { transition: none; }
}
