/* ============================================================
   Hospital project page
   Brand: #6366f1 indigo — clinical, structured, precise
   ============================================================ */

:root {
  --brand:      #6366f1;
  --brand-dark: #4f46e5;
  --brand-lt:   #eef2ff;
  --brand-glow: rgba(99,102,241,0.18);
}

body { background: #f8fafc; color: #334155; padding: 0; max-width: none; }

/* ── Hero ──────────────────────────────────────────────────── */
.project-hero {
  min-height: 65vh;
  background: linear-gradient(135deg, var(--dark), var(--dark-2));
  background-image:
    linear-gradient(135deg, var(--dark), var(--dark-2)),
    linear-gradient(rgba(99,102,241,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(99,102,241,0.05) 1px, transparent 1px);
  background-size: auto, 42px 42px, 42px 42px;
  color: white;
  display: flex;
  align-items: center;
  padding: 120px 5% 80px;
  position: relative;
  overflow: hidden;
}

.project-hero::before {
  content: '';
  position: absolute;
  top: -80px; right: -80px;
  width: 420px; height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--brand-glow), transparent 70%);
  pointer-events: none;
}

.project-hero-inner { position: relative; max-width: 1200px; margin: 0 auto; width: 100%; }

.back-link {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--brand); text-decoration: none; font-weight: 600;
  font-size: 0.92rem; margin-bottom: 1.8rem; transition: color 0.3s;
}
.back-link:hover { color: #a5b4fc; }

.eyebrow {
  display: inline-block; font-size: 0.82rem; font-weight: 700;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--brand); margin-bottom: 0.9rem;
}

.project-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 6vw, 4rem);
  font-weight: 700; line-height: 1.1; margin-bottom: 0.5rem;
}

.project-subtitle { font-size: 1.2rem; color: #a5b4fc; margin-bottom: 2.5rem; }

.project-meta {
  display: flex; gap: 3rem; margin-bottom: 2.5rem; flex-wrap: wrap;
}
.meta-item { display: flex; flex-direction: column; gap: 4px; }
.meta-label {
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--text-muted);
}
.meta-value { font-size: 0.97rem; font-weight: 500; color: white; }

.project-cta-row { display: flex; gap: 1rem; flex-wrap: wrap; }

.project-btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 13px 28px; border-radius: 999px; text-decoration: none;
  font-weight: 600; font-size: 0.95rem; transition: all 0.3s;
}

.brand-btn {
  background: var(--brand); color: white;
  box-shadow: 0 8px 20px var(--brand-glow);
}
.brand-btn:hover {
  background: var(--brand-dark); transform: translateY(-2px);
  box-shadow: 0 12px 28px var(--brand-glow);
}
.outline-btn {
  background: rgba(255,255,255,0.07); color: white;
  border: 1.5px solid rgba(255,255,255,0.2);
}
.outline-btn:hover { background: rgba(255,255,255,0.13); transform: translateY(-2px); }

/* ── Sub-project cards ─────────────────────────────────────── */
.subprojects {
  padding: 80px 5%;
  background: white;
}

.subprojects-inner { max-width: 1100px; margin: 0 auto; }

.section-title {
  font-family: var(--font-display);
  font-size: 2rem; font-weight: 700; color: var(--dark);
  margin-bottom: 2.5rem; position: relative; display: inline-block;
}
.section-title::after {
  content: ''; position: absolute; left: 0; bottom: -8px;
  width: 40px; height: 4px; border-radius: 4px;
  background: var(--brand);
}

.sub-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.sub-card {
  background: #f8fafc;
  border-radius: 16px;
  padding: 2.2rem;
  border: 1.5px solid #e2e8f0;
  border-top: 3px solid var(--brand);
  transition: all 0.3s;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.sub-card:hover {
  border-color: var(--brand);
  box-shadow: 0 12px 32px rgba(99,102,241,0.12);
  transform: translateY(-4px);
}

.sub-card-num {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brand);
}

.sub-card h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--dark);
  line-height: 1.3;
}

.sub-card p {
  color: #475569;
  line-height: 1.7;
  font-size: 0.97rem;
  flex: 1;
}

.tech-stack {
  display: flex; flex-wrap: wrap; gap: 6px; margin-top: 0.5rem;
}
.tech-pill {
  font-size: 0.72rem; font-weight: 600;
  padding: 3px 11px; border-radius: 999px;
  background: var(--brand-lt); color: var(--brand-dark);
  border: 1px solid rgba(99,102,241,0.2);
}

.sub-card-links {
  display: flex; align-items: center; gap: 1.2rem;
  margin-top: 0.5rem; padding-top: 1rem;
  border-top: 1px solid #e2e8f0;
  flex-wrap: wrap;
}

.sub-link {
  display: inline-flex; align-items: center; gap: 6px;
  text-decoration: none; font-size: 0.88rem;
  font-weight: 600; transition: all 0.3s;
  color: var(--brand);
}
.sub-link:hover { color: var(--brand-dark); }

.sub-link.ghost {
  color: #64748b;
}
.sub-link.ghost:hover { color: var(--brand); }

/* ── Feature list ─────────────────────────────────────────── */
.features-section {
  padding: 0 5% 90px;
  background: white;
}
.features-inner { max-width: 1100px; margin: 0 auto; }

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.2rem;
  margin-top: 2rem;
}

.feature-chip {
  display: flex; align-items: center; gap: 12px;
  background: var(--brand-lt);
  border-radius: 12px;
  padding: 1rem 1.2rem;
  font-size: 0.93rem; font-weight: 500;
  color: #334155;
  border: 1px solid rgba(99,102,241,0.15);
}

.feature-chip .ficon {
  display: flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 8px;
  background: rgba(99,102,241,0.12); color: var(--brand);
  flex-shrink: 0;
}

/* ── Preview ────────────────────────────────────────────────── */
.project-preview { padding: 70px 5%; background: var(--dark-2); }
.preview-inner { max-width: 1100px; margin: 0 auto; }

.browser-mockup {
  border-radius: 16px; overflow: hidden;
  box-shadow: 0 30px 70px rgba(0,0,0,0.5);
}
.browser-bar {
  background: #1e2a3a; padding: 12px 18px;
  display: flex; align-items: center; gap: 8px;
}
.dot { width: 13px; height: 13px; border-radius: 50%; flex-shrink: 0; }
.dot.red    { background: #ff5f57; }
.dot.yellow { background: #febc2e; }
.dot.green  { background: #28c840; }
.browser-url { margin-left: 12px; font-size: 0.8rem; color: #64748b; font-family: monospace; }
.browser-screen { background: #f8fafc; max-height: 520px; overflow: hidden; }
.browser-screen img { width: 100%; display: block; object-fit: cover; object-position: top; }

/* ── Footer overrides ──────────────────────────────────────── */
footer { margin-top: 0; }

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 768px) {
  .sub-grid { grid-template-columns: 1fr; }
  .project-meta { gap: 1.8rem; }
}
