/* ════════════════════════════════════════════════════════════
   PIXEL PROFIT — Inner Page Styles
════════════════════════════════════════════════════════════ */

/* ── Page Hero ───────────────────────────────────────────── */
.page-hero {
  background: var(--dark);
  padding: 5rem 0 4.5rem;
  position: relative;
  overflow: hidden;
}
.ph-geo-1 {
  position: absolute; top: -80px; right: -80px;
  width: 340px; height: 340px;
  border-radius: 50%;
  background: rgba(59,130,246,0.09);
  pointer-events: none;
}
.ph-geo-2 {
  position: absolute; bottom: -40px; left: 6%;
  width: 160px; height: 160px;
  background: rgba(16,185,129,0.07);
  transform: rotate(20deg);
  pointer-events: none;
}
.page-hero h1 { color: #fff; }
.page-hero .sub {
  color: rgba(255,255,255,0.62);
  font-size: 1.05rem;
  max-width: 580px;
  margin-top: 1rem;
  line-height: 1.78;
}
.ph-content { position: relative; }

/* ── About Page ──────────────────────────────────────────── */
.about-story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}
.about-img-block {
  border-radius: var(--r);
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--muted);
}
.about-img-block img { width: 100%; height: 100%; object-fit: cover; }

.about-text h2 { margin-bottom: 1.25rem; }
.about-text p  { margin-bottom: 1rem; color: #4B5563; }

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}
.val-card {
  background: var(--bg);
  border-radius: var(--r);
  padding: 2rem;
  transition: transform 0.2s;
}
.val-card:hover { transform: scale(1.02); }
.val-icon {
  width: 52px; height: 52px;
  border-radius: var(--r);
  display: flex; align-items: center; justify-content: center;
  color: #fff; margin-bottom: 1.25rem;
}
.val-card h3 { font-size: 1rem; margin-bottom: 0.4rem; }
.val-card p  { font-size: 0.87rem; color: #6B7280; line-height: 1.65; }

.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}
.team-card { text-align: center; transition: transform 0.2s; }
.team-card:hover { transform: scale(1.02); }
.team-avatar {
  width: 80px; height: 80px;
  border-radius: 50%;
  margin: 0 auto 1rem;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.65rem;
  font-weight: 800;
  color: #fff;
}
.team-card h4  { font-size: 0.95rem; }
.team-role     { font-size: 0.77rem; color: #9CA3AF; font-weight: 600; margin-top: 0.2rem; text-transform: uppercase; letter-spacing: 0.06em; }
.team-bio      { font-size: 0.82rem; color: #6B7280; margin-top: 0.6rem; line-height: 1.6; }

/* Stats amber block */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
  position: relative;
}
.stat-num {
  font-size: 3.2rem;
  font-weight: 900;
  letter-spacing: -0.04em;
  color: #fff;
  line-height: 1;
}
.stat-lbl {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.6);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 0.4rem;
}

/* ── Articles Page ───────────────────────────────────────── */
.filter-bar {
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 2px solid var(--border);
}
.fbtn {
  padding: 0.6rem 1.25rem;
  border-radius: var(--r-pill);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  background: var(--muted);
  color: #4B5563;
  border: 2px solid transparent;
  transition: var(--ease);
  font-family: var(--font);
}
.fbtn:hover { background: var(--muted-d); }
.fbtn.on { background: var(--primary); color: #fff; border-color: var(--primary); }

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.no-results {
  grid-column: 1 / -1;
  text-align: center;
  padding: 5rem 2rem;
  color: #9CA3AF;
}
.no-results h3 { font-size: 1.1rem; color: var(--fg); margin-bottom: 0.5rem; }

/* ── Article Detail ──────────────────────────────────────── */
.article-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 3rem;
  padding: 4rem 0 6rem;
  align-items: start;
}
.article-hero-img {
  width: 100%;
  aspect-ratio: 16/8;
  object-fit: cover;
  border-radius: var(--r);
  margin-bottom: 2rem;
}
.article-title-h1 {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin: 0.85rem 0 1.25rem;
}
.article-byline {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  font-size: 0.8rem;
  color: #9CA3AF;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 2px solid var(--border);
}
.byline-author {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  color: var(--fg);
}
.author-dot {
  width: 30px; height: 30px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.65rem;
  font-weight: 800;
  color: #fff;
  flex-shrink: 0;
}

.article-body { font-size: 1.05rem; line-height: 1.85; color: var(--dark-3); }
.article-body h2 {
  font-size: 1.45rem; font-weight: 800; color: var(--fg);
  margin: 2.5rem 0 0.85rem;
  letter-spacing: -0.02em;
  padding-top: 1rem;
}
.article-body h3 {
  font-size: 1.1rem; font-weight: 700; color: var(--fg);
  margin: 1.75rem 0 0.6rem;
}
.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(--fg); font-weight: 700; }

.article-tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 2px solid var(--border);
}
.article-back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 2rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
  padding: 0.6rem 1.25rem;
  background: #EFF6FF;
  border-radius: var(--r);
  transition: var(--ease);
}
.article-back:hover { background: var(--primary); color: #fff; }

/* Sidebar */
.article-sidebar { position: sticky; top: calc(var(--nav-h) + 1.5rem); }
.sb-block {
  background: var(--muted);
  border-radius: var(--r);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}
.sb-block h4 {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #9CA3AF;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--border);
}
.toc-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: #4B5563;
  text-decoration: none;
  padding: 0.35rem 0.5rem;
  border-radius: var(--r-sm);
  transition: var(--ease);
  font-weight: 500;
}
.toc-link:hover { background: var(--bg); color: var(--primary); }
.toc-link::before {
  content: '';
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--muted-d);
  flex-shrink: 0;
}
.toc-list { display: flex; flex-direction: column; gap: 0.25rem; }

.sb-cta {
  background: var(--primary);
  border-radius: var(--r);
  padding: 2rem;
  margin-bottom: 1.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.sb-cta-geo {
  position: absolute; bottom: -30px; right: -30px;
  width: 100px; height: 100px;
  border-radius: 50%;
  background: rgba(255,255,255,0.07);
}
.sb-cta h4 { color: #fff; margin-bottom: 0.5rem; position: relative; }
.sb-cta p  { color: rgba(255,255,255,0.75); font-size: 0.82rem; margin-bottom: 1.25rem; position: relative; }

.related-item {
  display: flex;
  gap: 0.75rem;
  padding: 0.75rem 0;
  text-decoration: none;
  border-bottom: 1px solid var(--border);
  transition: opacity 0.15s;
}
.related-item:last-child { border-bottom: none; padding-bottom: 0; }
.related-item:hover { opacity: 0.7; }
.related-thumb {
  width: 60px; height: 60px;
  object-fit: cover;
  border-radius: var(--r-sm);
  flex-shrink: 0;
}
.related-title {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--fg);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.related-cat {
  font-size: 0.67rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary);
  margin-top: 0.25rem;
}

/* ── Contact ─────────────────────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 5rem;
  align-items: start;
}
.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem;
  background: var(--muted);
  border-radius: var(--r);
  margin-bottom: 1rem;
  transition: transform 0.15s;
}
.contact-detail:hover { transform: translateX(5px); }
.cd-icon {
  width: 44px; height: 44px;
  border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center;
  color: #fff; flex-shrink: 0;
}
.cd-text strong { display: block; font-size: 0.85rem; margin-bottom: 0.2rem; }
.cd-text span   { font-size: 0.875rem; color: #6B7280; }

.contact-form-box {
  background: var(--muted);
  border-radius: var(--r);
  padding: 2.5rem;
}
.contact-form-box h3 { margin-bottom: 1.75rem; }
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}
.form-group { margin-bottom: 1rem; }
.form-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}
.form-group input,
.form-group textarea,
.form-group select { background: var(--bg); }
.form-success {
  background: #ECFDF5;
  border-radius: var(--r);
  padding: 1.25rem 1.5rem;
  color: #065F46;
  font-weight: 600;
  font-size: 0.9rem;
  display: none;
  align-items: center;
  gap: 0.6rem;
  margin-top: 1rem;
}

/* ── Legal (privacy / terms / disclaimer) ────────────────── */
.legal-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 4rem;
  align-items: start;
  padding: 4rem 0 6rem;
}
.legal-meta {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  background: var(--muted);
  border-radius: var(--r);
  padding: 1.25rem 1.5rem;
  margin-bottom: 2.5rem;
}
.legal-meta-item strong {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #9CA3AF;
  margin-bottom: 0.2rem;
}
.legal-meta-item span { font-size: 0.875rem; }

.legal-body h2 {
  font-size: 1.3rem; font-weight: 800;
  margin: 2.5rem 0 0.85rem;
  padding-top: 1.5rem;
  border-top: 2px solid var(--border);
  letter-spacing: -0.02em;
}
.legal-body h2:first-child { border-top: none; margin-top: 0; padding-top: 0; }
.legal-body p  { font-size: 0.92rem; color: #4B5563; margin-bottom: 1rem; line-height: 1.8; }
.legal-body ul { padding-left: 1.5rem; margin-bottom: 1rem; }
.legal-body li { font-size: 0.92rem; color: #4B5563; margin-bottom: 0.4rem; line-height: 1.7; }

.legal-toc {
  position: sticky;
  top: calc(var(--nav-h) + 1.5rem);
  background: var(--muted);
  border-radius: var(--r);
  padding: 1.5rem;
}
.legal-toc h4 {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #9CA3AF;
  margin-bottom: 1rem;
}
.legal-toc ul { display: flex; flex-direction: column; gap: 0.25rem; }
.legal-toc a {
  font-size: 0.82rem; color: #4B5563; text-decoration: none;
  padding: 0.3rem 0.5rem; border-radius: var(--r-sm);
  display: block; transition: var(--ease); font-weight: 500;
}
.legal-toc a:hover { color: var(--primary); background: var(--bg); }

/* ── Responsive inner pages ──────────────────────────────── */
@media (max-width: 1024px) {
  .article-layout { grid-template-columns: 1fr; }
  .article-sidebar { position: static; display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
  .legal-layout { grid-template-columns: 1fr; }
  .legal-toc { position: static; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .about-story-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .values-grid { grid-template-columns: 1fr; }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .form-row { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  .article-sidebar { grid-template-columns: 1fr; }
  .sb-cta { order: -1; }
}
