/* ============================================================
   SOLVIKTECH — subpage.css
   Extends style.css for project and service detail pages.
   Never modify style.css — only add here.
   ============================================================ */

/* ============================================================
   SUBPAGE HERO (smaller than homepage, no full-height)
   ============================================================ */
.subpage-hero {
  min-height: 56vh;
  display: flex;
  align-items: flex-end;
  position: relative;
  overflow: hidden;
  padding: 0;
}
.subpage-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.subpage-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
}
.subpage-hero-bg-placeholder {
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, #0c1420 0%, #0d1a2e 60%, #0a1525 100%);
  z-index: 0;
}
/* Decorative ambient lines */
.subpage-hero-bg-placeholder::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 70% 40%, rgba(0,201,167,0.06) 0%, transparent 55%),
    radial-gradient(ellipse at 20% 70%, rgba(124,115,230,0.04) 0%, transparent 50%);
}
.subpage-hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to top,
    rgba(8,14,26,0.98) 0%,
    rgba(8,14,26,0.7)  40%,
    rgba(8,14,26,0.35) 100%
  );
}
.subpage-hero-content {
  position: relative;
  z-index: 2;
  padding: 80px 0 60px;
  max-width: 820px;
}
.subpage-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 24px;
  transition: color 0.2s;
}
.subpage-back:hover { color: var(--accent-teal); }
html[lang="ar"] .subpage-back { flex-direction: row-reverse; }
.subpage-hero-content h1 {
  font-size: clamp(1.7rem, 3.5vw, 2.8rem);
  margin-bottom: 18px;
  background: linear-gradient(140deg, #e4edf8 0%, #a0bcd8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.subpage-hero-content .hero-intro {
  font-size: 1.02rem;
  color: rgba(228,237,248,0.72);
  line-height: 1.8;
  max-width: 640px;
}

/* ============================================================
   OVERVIEW SECTION
   ============================================================ */
.overview-section { background: var(--bg-base); }
.overview-body {
  max-width: 780px;
  font-size: 1rem;
  line-height: 1.84;
  color: var(--text-secondary);
}

/* ============================================================
   DETAIL CARDS (Scope / Challenge / Approach / Execution / Result)
   ============================================================ */
.details-section { background: var(--bg-surface); }

.details-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.detail-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-md);
  padding: 26px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: border-color var(--tr), transform var(--tr);
  position: relative;
  overflow: hidden;
}
.detail-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-teal), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}
html[lang="ar"] .detail-card::before {
  background: linear-gradient(-90deg, var(--accent-teal), transparent);
}
.detail-card:hover::before { opacity: 1; }
.detail-card:hover {
  border-color: var(--border-teal);
  transform: translateY(-4px);
}
.detail-label {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent-teal);
}
.detail-card p {
  font-size: 0.88rem;
  line-height: 1.74;
}
/* Span last card full width if odd count */
.details-grid .detail-card:last-child:nth-child(3n+1) {
  grid-column: 1 / -1;
  max-width: 520px;
}

/* ============================================================
   SERVICE INCLUDED LIST
   ============================================================ */
.included-section { background: var(--bg-base); }
.included-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 8px;
}
.included-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 18px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-md);
  font-size: 0.88rem;
  color: var(--text-secondary);
  transition: border-color var(--tr);
}
.included-item:hover { border-color: var(--border-teal); }
.included-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-teal);
  flex-shrink: 0;
  margin-top: 5px;
}

/* ============================================================
   PROCESS (service pages — 5 steps, condensed)
   ============================================================ */
.process-section { background: var(--bg-surface); }
.process-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 760px;
  margin: 0 auto;
  counter-reset: process;
}
.process-item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 20px 0;
  border-bottom: 1px solid var(--border-subtle);
  position: relative;
}
.process-item:last-child { border-bottom: none; }
html[lang="ar"] .process-item { flex-direction: row-reverse; }
.process-num {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--text-muted);
  flex-shrink: 0;
  transition: var(--tr);
}
.process-item:hover .process-num {
  border-color: var(--accent-teal);
  background: var(--accent-teal-dim);
  color: var(--accent-teal);
}
.process-body { padding-top: 8px; }
.process-body h4 { color: var(--text-primary); margin-bottom: 5px; }
.process-body p  { font-size: 0.86rem; line-height: 1.7; }

/* ============================================================
   WHO IT'S FOR
   ============================================================ */
.who-section { background: var(--bg-base); }
.who-card {
  max-width: 720px;
  background: var(--bg-card);
  border: 1px solid var(--border-teal);
  border-radius: var(--r-lg);
  padding: 32px 36px;
}
.who-card p { font-size: 0.97rem; line-height: 1.82; }

/* ============================================================
   VISUALS / IMAGE PLACEHOLDERS
   ============================================================ */
.visuals-section { background: var(--bg-base); }
.visuals-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.visual-placeholder {
  border-radius: var(--r-lg);
  overflow: hidden;
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, var(--bg-card) 0%, #162035 100%);
  border: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 0.78rem;
  transition: border-color var(--tr);
}
.visual-placeholder:hover { border-color: var(--border-teal); }
.visual-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.visual-placeholder-icon {
  font-size: 1.6rem;
  opacity: 0.4;
}

/* ============================================================
   CTA BANNER
   ============================================================ */
.cta-section {
  background: var(--bg-surface);
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 80% 50%, rgba(0,201,167,0.06) 0%, transparent 55%),
    radial-gradient(ellipse at 20% 50%, rgba(124,115,230,0.04) 0%, transparent 50%);
  pointer-events: none;
}
.cta-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 620px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.cta-inner h2 { font-size: clamp(1.4rem, 3vw, 2rem); }
.cta-inner p  { font-size: 1rem; }
.cta-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 8px;
}

/* ============================================================
   SUBPAGE CONTACT (same style, updated info)
   ============================================================ */
.subpage-contact { background: var(--bg-base); }

/* ============================================================
   RESPONSIVE — TABLET
   ============================================================ */
@media (max-width: 1024px) {
  .details-grid    { grid-template-columns: repeat(2, 1fr); }
  .included-grid   { grid-template-columns: 1fr; }
  .visuals-grid    { grid-template-columns: 1fr; }
  .details-grid .detail-card:last-child:nth-child(3n+1) {
    grid-column: auto;
    max-width: 100%;
  }
}

/* ============================================================
   RESPONSIVE — MOBILE
   ============================================================ */
@media (max-width: 768px) {
  .subpage-hero        { min-height: 48vh; }
  .subpage-hero-content { padding: 100px 0 44px; }
  .subpage-hero-content h1 { font-size: clamp(1.5rem, 7vw, 2rem); }
  .details-grid        { grid-template-columns: 1fr; }
  .visuals-grid        { grid-template-columns: 1fr; }
  .who-card            { padding: 24px 22px; }
  .cta-actions         { flex-direction: column; width: 100%; }
  .cta-actions .btn    { width: 100%; justify-content: center; }
  .process-list        { max-width: 100%; }
}
