.bg-soft { background: var(--bg-soft); }
.bg-alt { background: var(--bg-alt); }
.bg-dark-section {
  background: var(--grad-dark);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.bg-dark-section::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(255,107,26,0.15) 0%, transparent 65%);
  filter: blur(20px);
}
.bg-dark-section > .container { position: relative; z-index: 1; }
.bg-dark-section .section-header h2 { color: #fff; }
.bg-dark-section .section-header p { color: rgba(255,255,255,0.78); }
.bg-dark-section .eyebrow { background: rgba(255,107,26,0.2); color: var(--primary-light); }

.bg-pattern {
  background:
    radial-gradient(circle at 0% 0%, rgba(255,107,26,0.04) 0%, transparent 50%),
    radial-gradient(circle at 100% 100%, rgba(255,184,0,0.04) 0%, transparent 50%),
    var(--bg-soft);
}

.page-content { padding: 80px 0; }
.page-content--tight { padding-top: 56px; }

/* Inner page hero actions */
.page-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 8px;
}
.page-hero--left {
  text-align: left;
}
.page-hero--left .breadcrumb,
.page-hero--left .page-hero-actions {
  justify-content: flex-start;
}
.page-hero--left h1,
.page-hero--left p,
.page-hero--left .lead {
  margin-left: 0;
  margin-right: 0;
}
.page-hero .hero-badge-inline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  font-weight: 500;
  margin-bottom: 16px;
}
.page-hero .hero-badge-inline .pulse {
  width: 8px;
  height: 8px;
  background: #4ade80;
  border-radius: 50%;
  position: relative;
  flex-shrink: 0;
}
.page-hero .hero-badge-inline .pulse::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: #4ade80;
  opacity: 0.4;
  animation: pulse 2s ease-out infinite;
}

/* Bottom CTA band (inner pages) */
.page-cta-band {
  background: var(--grad-dark);
  color: #fff;
  padding: 72px 0;
  position: relative;
  overflow: hidden;
}
.page-cta-band::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -15%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(255, 107, 26, 0.2) 0%, transparent 65%);
  filter: blur(24px);
}
.page-cta-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.page-cta-text { flex: 1; min-width: 260px; }
.page-cta-text h2 {
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  font-weight: 800;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}
.page-cta-text p {
  opacity: 0.88;
  max-width: 520px;
  line-height: 1.7;
}
.page-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.eyebrow--light {
  background: rgba(255, 107, 26, 0.2);
  color: var(--primary-light);
}

/* Section headers on inner pages */
.page-content .section-header {
  text-align: center;
  margin-bottom: 48px;
}
.page-content .section-header h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 12px;
}
.page-content .section-header p {
  color: var(--text-light);
  max-width: 640px;
  margin: 0 auto;
}

/* Trust strip under hero on brand pages */
.page-trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center;
  padding: 28px 0;
  margin-top: -32px;
  position: relative;
  z-index: 2;
}
.page-trust-item {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 24px;
  text-align: center;
  min-width: 140px;
  box-shadow: var(--shadow-sm);
}
.page-trust-item strong {
  display: block;
  font-size: 1.25rem;
  color: var(--primary);
  font-weight: 800;
}
.page-trust-item span {
  font-size: 0.85rem;
  color: var(--text-light);
}

/* Legal / simple pages */
.page-content--legal .content-article h2 { margin-top: 36px; }
.info-box--warning {
  border-left-color: #f59e0b;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.08), rgba(255, 184, 0, 0.06));
}
.info-box--warning h3,
.info-box--warning h4 { display: flex; align-items: center; gap: 10px; }

/* Services hero badges */
.services-hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 28px;
}
.services-hero-badge {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 10px 20px;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.page-hero--left .brand-hero-logo img {
  filter: brightness(0) invert(1);
}

.services-hero-badge::before {
  content: '';
  width: 18px;
  height: 18px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffb800' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>");
  background-size: contain;
  background-repeat: no-repeat;
}

/* Complex service highlight */
.complex-service {
  background: linear-gradient(135deg, var(--bg) 0%, var(--bg-soft) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 48px 40px;
  text-align: center;
  max-width: 860px;
  margin: 0 auto 56px;
  position: relative;
  overflow: hidden;
}
.complex-service::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255,107,26,0.05) 0%, transparent 65%);
}
.complex-service > * { position: relative; z-index: 1; }
.complex-service h3 {
  font-size: 1.5rem;
  margin-bottom: 14px;
  color: var(--dark);
  font-weight: 800;
}
.complex-service p {
  color: var(--text-light);
  margin-bottom: 24px;
  font-size: 1.02rem;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}
.complex-tags { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.complex-tags span {
  background: var(--bg);
  border: 1.5px solid var(--border);
  padding: 8px 18px;
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--dark);
}

/* Brand pages use page-hero + page-hero--left */
.page-hero .lead {
  opacity: 0.88;
  max-width: 740px;
  font-size: 1.08rem;
  line-height: 1.7;
  margin: 0 auto 20px;
}
.page-hero--left .lead { margin-left: 0; }

/* Inline CTA on brand pages */
.brand-cta-inline {
  background: var(--grad-primary);
  color: #fff;
  padding: 48px 40px;
  border-radius: var(--radius-lg);
  text-align: center;
  margin: 48px 0;
  box-shadow: 0 20px 40px var(--primary-glow);
  position: relative;
  overflow: hidden;
}
.brand-cta-inline::before,
.brand-cta-inline::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
}
.brand-cta-inline::before { width: 200px; height: 200px; top: -100px; right: -50px; }
.brand-cta-inline::after { width: 250px; height: 250px; bottom: -125px; left: -75px; }
.brand-cta-inline > * { position: relative; z-index: 1; }
.brand-cta-inline h3 { margin-bottom: 12px; font-size: 1.4rem; font-weight: 800; }
.brand-cta-inline p { margin-bottom: 24px; opacity: 0.95; font-size: 1rem; }

/* Process grid */
.process-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 36px 0;
}
.process-item {
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 28px 24px;
  border-radius: var(--radius);
  text-align: center;
  transition: var(--transition);
}
.process-item:hover {
  border-color: var(--primary);
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}
.process-item .process-icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 14px;
  background: linear-gradient(135deg, rgba(255,107,26,0.12), rgba(255,184,0,0.12));
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
}
.process-item .process-icon svg { width: 26px; height: 26px; }
.process-item h4 { margin-bottom: 8px; color: var(--dark); font-weight: 700; }
.process-item p { font-size: 0.92rem; color: var(--text-light); line-height: 1.6; }

/* Inner page heros with image overlay */
.page-hero--image {
  position: relative;
  background: linear-gradient(135deg, rgba(10,22,40,0.92), rgba(15,52,96,0.88)), var(--hero-bg) center/cover no-repeat;
}

/* About page */
.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 56px;
  align-items: start;
}
.about-photo {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  position: sticky;
  top: calc(var(--header-h) + 24px);
}
.about-photo img {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
}

/* Blog article featured */
.article-featured {
  margin: -40px auto 40px;
  max-width: 900px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.article-featured img {
  width: 100%;
  height: auto;
  max-height: 440px;
  object-fit: cover;
  display: block;
}

/* Brand page floating photo */
.brand-photo {
  float: right;
  width: min(380px, 45%);
  margin: 0 0 24px 28px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.brand-photo img {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
}

@media (max-width: 768px) {
  .process-grid { grid-template-columns: 1fr; }
  .complex-service { padding: 32px 24px; }
  .brand-cta-inline { padding: 32px 24px; }
  .about-grid { grid-template-columns: 1fr; }
  .about-photo { position: static; order: -1; max-width: 480px; margin: 0 auto; }
  .brand-photo { float: none; width: 100%; margin: 0 0 24px; }
  .article-featured { margin: -32px -18px 32px; border-radius: 0; }
  .page-cta-inner { flex-direction: column; text-align: center; }
  .page-cta-actions { justify-content: center; width: 100%; }
  .page-cta-actions .btn { flex: 1; min-width: 140px; justify-content: center; }
  .page-trust-strip { margin-top: 0; padding-top: 0; }
  .page-hero--left { text-align: center; }
  .page-hero--left .breadcrumb,
  .page-hero--left .page-hero-actions { justify-content: center; }
}
