/* ==========================================================================
   Page header (used on all inner pages, service, about, contact, blog)
   ========================================================================== */
.page-hero {
  position: relative;
  padding: calc(var(--header-h) + 56px) 0 var(--space-xl);
  background: var(--grad-navy);
  color: #fff;
  overflow: hidden;
}
.page-hero::after {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(circle at 85% 10%, rgba(124,58,237,0.3) 0%, transparent 50%);
  z-index: 0;
}
.page-hero .container { position: relative; z-index: 1; }

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.84rem;
  color: var(--text-on-dark-muted);
  margin-bottom: var(--space-md);
}
.breadcrumb a:hover { color: #fff; }
.breadcrumb svg { width: 13px; height: 13px; }

.page-hero h1 { color: #fff; font-size: clamp(2rem, 4vw, 2.9rem); max-width: 760px; margin-bottom: 14px; }
.page-hero p.lead { font-size: 1.05rem; color: var(--text-on-dark); max-width: 620px; }

.page-hero-meta { display: flex; gap: 28px; margin-top: var(--space-lg); flex-wrap: wrap; }
.page-hero-meta div strong { display: block; font-family: var(--font-data); font-size: 1.4rem; }
.page-hero-meta div span { font-size: 0.78rem; color: var(--text-on-dark-muted); }

/* ==========================================================================
   Service detail page
   ========================================================================== */
.service-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: var(--space-xl);
  align-items: start;
}
@media (max-width: 980px) { .service-layout { grid-template-columns: 1fr; } }

.service-main h2 { font-size: 1.6rem; margin: var(--space-lg) 0 var(--space-sm); }
.service-main h2:first-child { margin-top: 0; }
.service-main p { color: var(--text-secondary); margin-bottom: var(--space-sm); }

.check-list { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: var(--space-md) 0; }
@media (max-width: 560px) { .check-list { grid-template-columns: 1fr; } }
.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.92rem;
  color: var(--text-primary);
  padding: 14px 16px;
  background: var(--bg-soft);
  border-radius: 12px;
}
.check-list li .ic {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--grad-primary);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}
.check-list li .ic svg { width: 12px; height: 12px; color: #fff; }

.benefit-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-sm);
  margin: var(--space-md) 0;
}
@media (max-width: 768px) { .benefit-strip { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .benefit-strip { grid-template-columns: 1fr; } }
.benefit-strip .item { padding: 20px; text-align: center; }
.benefit-strip .item .ic {
  width: 42px; height: 42px; margin: 0 auto 12px;
  border-radius: 12px; background: var(--bg-tint); color: var(--brn-primary);
  display: flex; align-items: center; justify-content: center;
}
.benefit-strip .item .ic svg { width: 20px; height: 20px; }
.benefit-strip .item span { font-size: 0.86rem; font-weight: 600; }

.mini-process { display: flex; flex-direction: column; gap: 0; margin: var(--space-md) 0; }
.mini-process .step {
  display: flex; gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--border-soft);
}
.mini-process .step:last-child { border-bottom: none; }
.mini-process .step .num {
  flex-shrink: 0;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--bg-tint);
  color: var(--brn-primary);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-data); font-weight: 700; font-size: 0.9rem;
}
.mini-process .step h4 { font-size: 0.96rem; margin-bottom: 4px; }
.mini-process .step p { font-size: 0.86rem; margin-bottom: 0; }

/* --- Sidebar --- */
.service-sidebar { position: sticky; top: calc(var(--header-h) + 24px); display: flex; flex-direction: column; gap: 20px; }
.sidebar-card { background: #fff; border: 1px solid var(--border-soft); border-radius: var(--radius-md); padding: 26px; box-shadow: var(--shadow-sm); }
.sidebar-card h3 { font-size: 1.05rem; margin-bottom: 16px; }
.sidebar-links { display: flex; flex-direction: column; gap: 4px; }
.sidebar-links a {
  display: flex; align-items: center; justify-content: space-between;
  padding: 11px 12px;
  border-radius: 9px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: background 0.2s ease, color 0.2s ease;
}
.sidebar-links a.is-active, .sidebar-links a:hover { background: var(--bg-tint); color: var(--brn-primary-dark); }
.sidebar-links a svg { width: 14px; height: 14px; opacity: 0; transition: opacity 0.2s ease; }
.sidebar-links a:hover svg, .sidebar-links a.is-active svg { opacity: 1; }

.sidebar-cta { background: var(--grad-navy); color: #fff; text-align: center; }
.sidebar-cta h3 { color: #fff; }
.sidebar-cta p { font-size: 0.86rem; color: var(--text-on-dark-muted); margin-bottom: 18px; }

.related-industries { display: flex; flex-wrap: wrap; gap: 8px; }
.related-industries span {
  font-size: 0.78rem; font-weight: 500;
  padding: 7px 13px; border-radius: var(--radius-full);
  background: var(--bg-soft); color: var(--text-secondary);
}

/* ==========================================================================
   About page
   ========================================================================== */
.story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: center;
}
@media (max-width: 900px) { .story-grid { grid-template-columns: 1fr; } }
.story-visual {
  aspect-ratio: 4/3.2;
  border-radius: var(--radius-lg);
  background: var(--grad-navy);
  position: relative;
  overflow: hidden;
}
.story-visual svg { width: 100%; height: 100%; }

.value-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-sm); }
@media (max-width: 900px) { .value-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .value-grid { grid-template-columns: 1fr; } }

.leader-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-md); }
@media (max-width: 900px) { .leader-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .leader-grid { grid-template-columns: 1fr; } }
.leader-card { text-align: center; padding: 24px 18px; }
.leader-avatar {
  width: 84px; height: 84px;
  border-radius: 50%;
  margin: 0 auto 16px;
  background: var(--grad-primary);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-family: var(--font-data); font-weight: 700; font-size: 1.5rem;
}
.leader-card h3 { font-size: 1rem; margin-bottom: 4px; }
.leader-card span.role { font-size: 0.82rem; color: var(--brn-primary); font-weight: 600; display: block; margin-bottom: 10px; }
.leader-card p { font-size: 0.84rem; color: var(--text-secondary); }

.cert-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: var(--space-sm); }
@media (max-width: 768px) { .cert-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 480px) { .cert-grid { grid-template-columns: repeat(2, 1fr); } }
.cert-card {
  padding: 22px 14px; text-align: center;
}
.cert-card .ic { width: 46px; height: 46px; margin: 0 auto 12px; border-radius: 12px; background: var(--bg-tint); color: var(--brn-secondary); display: flex; align-items: center; justify-content: center; }
.cert-card .ic svg { width: 22px; height: 22px; }
.cert-card span { font-size: 0.82rem; font-weight: 600; }

/* ==========================================================================
   Contact page
   ========================================================================== */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: var(--space-xl);
  align-items: start;
}
@media (max-width: 980px) { .contact-layout { grid-template-columns: 1fr; } }

.contact-info-card { padding: 32px; }
.contact-info-card h3 { font-size: 1.2rem; margin-bottom: 8px; }
.contact-info-card > p { color: var(--text-secondary); font-size: 0.92rem; margin-bottom: 24px; }
.contact-method { display: flex; gap: 14px; padding: 16px 0; border-top: 1px solid var(--border-soft); }
.contact-method:first-of-type { border-top: none; }
.contact-method .ic {
  width: 42px; height: 42px; flex-shrink: 0;
  border-radius: 12px; background: var(--bg-tint); color: var(--brn-primary);
  display: flex; align-items: center; justify-content: center;
}
.contact-method .ic svg { width: 20px; height: 20px; }
.contact-method strong { display: block; font-size: 0.9rem; margin-bottom: 3px; }
.contact-method span, .contact-method a { font-size: 0.86rem; color: var(--text-secondary); display: block; line-height: 1.5; }
.contact-method a:hover { color: var(--brn-primary); }

.contact-form-card { padding: 36px; }
.contact-form-card h3 { font-size: 1.3rem; margin-bottom: 6px; }
.contact-form-card > p { color: var(--text-secondary); font-size: 0.9rem; margin-bottom: 24px; }

.map-embed-wrap {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-soft);
  aspect-ratio: 16/8;
}
.map-embed-wrap iframe { width: 100%; height: 100%; border: 0; }

/* ==========================================================================
   Blog
   ========================================================================== */
.blog-filter { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: var(--space-lg); }
.blog-filter button {
  padding: 9px 18px;
  border-radius: var(--radius-full);
  font-size: 0.86rem;
  font-weight: 600;
  border: 1.5px solid var(--border-soft);
  color: var(--text-secondary);
  transition: all 0.2s ease;
}
.blog-filter button.is-active, .blog-filter button:hover {
  background: var(--grad-primary); color: #fff; border-color: transparent;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}
@media (max-width: 980px) { .blog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .blog-grid { grid-template-columns: 1fr; } }

.blog-card { overflow: hidden; display: flex; flex-direction: column; }
.blog-card .thumb {
  aspect-ratio: 16/10;
  background: var(--grad-navy);
  position: relative;
  overflow: hidden;
}
.blog-card .thumb svg { width: 100%; height: 100%; }
.blog-card .body { padding: 22px; flex: 1; display: flex; flex-direction: column; }
.blog-card .cat { font-size: 0.74rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--brn-primary); margin-bottom: 10px; }
.blog-card h3 { font-size: 1.08rem; margin-bottom: 10px; flex: 1; }
.blog-card .meta { display: flex; align-items: center; gap: 14px; font-size: 0.78rem; color: var(--text-muted); padding-top: 14px; border-top: 1px solid var(--border-soft); margin-top: 10px; }
.blog-card .meta span { display: flex; align-items: center; gap: 5px; }
.blog-card .meta svg { width: 13px; height: 13px; }

.blog-post-body { max-width: 760px; margin: 0 auto; }
.blog-post-body h2 { font-size: 1.5rem; margin: var(--space-lg) 0 var(--space-sm); }
.blog-post-body p { color: var(--text-secondary); margin-bottom: var(--space-sm); font-size: 1.02rem; }
.blog-post-body ul { margin: var(--space-sm) 0 var(--space-md); display: flex; flex-direction: column; gap: 10px; }
.blog-post-body ul li { display: flex; gap: 10px; color: var(--text-secondary); font-size: 0.98rem; }
.blog-post-body ul li::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--brn-primary); flex-shrink: 0; margin-top: 9px; }
.blog-post-body blockquote {
  border-left: 3px solid var(--brn-primary);
  padding: 4px 0 4px 22px;
  margin: var(--space-md) 0;
  font-style: italic;
  color: var(--text-primary);
  font-size: 1.08rem;
}

.author-box {
  display: flex; align-items: center; gap: 14px;
  padding: 22px; background: var(--bg-soft); border-radius: var(--radius-md);
  margin-top: var(--space-xl);
}
.author-box .avatar {
  width: 50px; height: 50px; border-radius: 50%; background: var(--grad-primary);
  display: flex; align-items: center; justify-content: center; color: #fff;
  font-family: var(--font-data); font-weight: 700; flex-shrink: 0;
}
.author-box strong { display: block; font-size: 0.95rem; }
.author-box span { font-size: 0.82rem; color: var(--text-muted); }

/* ==========================================================================
   404 / generic empty state
   ========================================================================== */
.empty-state { text-align: center; padding: var(--space-3xl) 0; }
.empty-state .code { font-family: var(--font-data); font-size: 5rem; font-weight: 700; background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* page-hero meta strip */
.page-hero-meta {
  display: flex;
  gap: var(--space-lg);
  margin-top: var(--space-lg);
  flex-wrap: wrap;
}
.page-hero-meta div { display: flex; flex-direction: column; gap: 3px; }
.page-hero-meta strong { font-family: var(--font-data); font-size: 1.6rem; font-weight: 700; color: #fff; }
.page-hero-meta span { font-size: 0.82rem; color: rgba(255,255,255,0.7); }

/* pill, used in industry quick-nav and tags */
.pill {
  display: inline-block;
  padding: 7px 16px;
  background: var(--bg-tint);
  border: 1px solid var(--border-tint);
  border-radius: var(--radius-full);
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  transition: all 0.2s ease;
}
.pill:hover { background: var(--brn-primary); color: #fff; border-color: var(--brn-primary); }

/* Blog/CS filter (reused from dept-filter) */
.blog-filter {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: var(--space-lg);
}
.blog-filter button {
  padding: 9px 18px;
  border-radius: var(--radius-full);
  font-size: 0.86rem;
  font-weight: 600;
  border: 1.5px solid var(--border-soft);
  color: var(--text-secondary);
  transition: all 0.2s ease;
  background: none;
}
.blog-filter button.is-active, .blog-filter button:hover {
  background: var(--grad-primary); color: #fff; border-color: transparent;
}

/* contact form grid responsive */
@media (max-width: 860px) {
  .contact-form-card > div[style*="grid-template-columns:1.3fr"] {
    grid-template-columns: 1fr !important;
  }
}

/* industries alternating layout responsive */
@media (max-width: 800px) {
  section .container > div[style*="grid-template-columns:1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }
  .industry-panel-visual { order: -1 !important; }
}
