/* ===== SECTION DIVIDERS ===== */
.section-divider {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 0 5%;
  height: 52px;
  position: relative;
  z-index: 1;
}

/* Fading gradient lines flanking the ornament */
.section-divider::before,
.section-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    var(--border) 15%,
    var(--gold) 50%,
    var(--border) 85%,
    transparent 100%
  );
}

/* Central diamond ornament */
.divider-icon {
  width: 10px;
  height: 10px;
  background: var(--gold);
  clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
  flex-shrink: 0;
  position: relative;
}

/* Flanking blue dots */
.divider-icon::before,
.divider-icon::after {
  content: '';
  position: absolute;
  width: 5px; height: 5px;
  background: var(--blue);
  border-radius: 50%;
  top: 50%;
  transform: translateY(-50%);
}
.divider-icon::before { right: calc(100% + 10px); }
.divider-icon::after  { left:  calc(100% + 10px); }

/* ===== HERO (homepage) ===== */
.hero {
  padding: 110px 0;
  position: relative;
  overflow: hidden;
  border-bottom: none; /* divider handles separation */
}

/* Dot-grid texture — right half of hero */
.hero::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 58%; height: 100%;
  background-image: radial-gradient(circle, rgba(17,17,17,0.055) 1px, transparent 1px);
  background-size: 26px 26px;
  pointer-events: none;
  z-index: 0;
}

/* Warm gold atmospheric glow — top-right corner */
.hero::after {
  content: '';
  position: absolute;
  top: -120px; right: -80px;
  width: 560px; height: 480px;
  background: radial-gradient(ellipse, rgba(201,168,76,0.08) 0%, transparent 62%);
  pointer-events: none;
  z-index: 0;
}

/* Ensure content layers above decorations */
.hero-flex { position: relative; z-index: 1; }

.hero p { max-width: 580px; }

/* ===== HERO IMAGE — homepage overrides ===== */
.hero-img-frame { max-width: 500px; }

.hero-buttons { margin-top: 32px; display: flex; gap: 14px; flex-wrap: wrap; }

/* ===== HERO TAGS ===== */
.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 38px;
  padding-top: 30px;
  border-top: 1px solid var(--border);
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border: 1px solid var(--border);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--text-muted);
  text-decoration: none;
  transition: border-color 0.25s, color 0.25s, background 0.25s;
}
.hero-tag i {
  font-size: 7px;
  color: var(--gold);
  transition: transform 0.25s;
}
.hero-tag:hover {
  border-color: var(--gold);
  color: var(--black);
  background: rgba(201, 168, 76, 0.04);
}
.hero-tag:hover i {
  transform: scale(1.4);
}

/* ===== FEATURES ===== */
.features { padding: 0; background: var(--white); }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: none; /* divider above handles top edge */
  border-bottom: 1px solid var(--border);
}
.feature {
  padding: 42px 32px;
  border-right: 1px solid var(--border);
  transition: background 0.2s;
  text-align: left;
}
.feature:last-child { border-right: none; }
.feature:hover { background: var(--cream); }
.feature i {
  font-size: 26px; color: var(--blue);
  margin-bottom: 18px; display: block;
  transition: color 0.2s;
}
.feature:hover i { color: var(--gold); }
.feature h3 { font-size: 16px; margin-bottom: 8px; }
.feature p  { font-size: 13.5px; color: var(--text-muted); line-height: 1.6; }

/* ===== WHY CHOOSE CSEGIS ===== */
.why-us { background: var(--white); padding: 100px 0; }

.why-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 54px;
  border: 1px solid var(--border);
  gap: 0;
}
.why-card {
  padding: 36px 28px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  transition: background 0.2s, border-color 0.2s;
}
.why-card:hover { background: var(--cream); border-color: transparent; }
.why-card i   { font-size: 22px; color: var(--blue); margin-bottom: 18px; display: block; transition: color 0.2s; }
.why-card:hover i { color: var(--gold); }
.why-card h4  { font-size: 15px; font-weight: 600; color: var(--black); margin-bottom: 10px; }
.why-card p   { font-size: 13px; color: var(--text-muted); line-height: 1.7; }

/* ===== WORK PROCESS ===== */
.process { background: var(--cream); padding: 100px 0; }

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 54px;
}
.process-step {
  background: var(--white);
  border: 1px solid var(--border);
  padding: 36px 28px;
  transition: border-color 0.2s, box-shadow 0.2s;
  position: relative;
}
.process-step:hover {
  border-color: var(--gold);
  box-shadow: var(--shadow-md);
}
.step-number {
  width: 34px; height: 34px;
  background: var(--blue);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; letter-spacing: 0.5px;
  margin-bottom: 22px;
}
.process-step i { font-size: 24px; color: var(--gold); margin-bottom: 14px; display: block; }
.process-step h3 { font-size: 16px; margin-bottom: 8px; }
.process-step p  { font-size: 13px; color: var(--text-muted); line-height: 1.65; }

/* ===== INDUSTRIES ===== */
.industries { background: var(--white); padding: 100px 0; }

.industries-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-top: 54px;
  border: 1px solid var(--border);
}
.industry-card {
  padding: 36px 32px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  transition: background 0.2s;
}
.industry-card:hover { background: var(--cream); }
.industry-card i {
  font-size: 26px; color: var(--blue);
  margin-bottom: 16px; display: block;
  transition: color 0.2s;
}
.industry-card:hover i { color: var(--gold); }
.industry-card h3 { font-size: 16px; margin-bottom: 8px; }
.industry-card p  { font-size: 13.5px; color: var(--text-muted); line-height: 1.6; }

/* ===== DIGITUS EGIS — homepage feature ===== */
.digitus-feature {
  background: var(--cream);
  padding: 100px 0;
}
.digitus-flex { display: flex; gap: 80px; align-items: center; }

.digitus-text { flex: 3; }
.digitus-text .section-label { color: var(--gold); margin-bottom: 12px; }
.digitus-text h2 {
  font-size: 42px; color: var(--black);
  letter-spacing: -1px; margin-bottom: 6px;
}
.digitus-text .section-header::after { display: none; }
.digitus-tagline { font-size: 15px; color: var(--blue); margin-bottom: 22px; font-weight: 500; }
.digitus-desc { font-size: 16px; color: var(--text-mid); line-height: 1.8; margin-bottom: 28px; max-width: 520px; }

.digitus-points { list-style: none; margin-bottom: 36px; }
.digitus-points li {
  padding: 10px 0;
  font-size: 14.5px;
  color: var(--text-mid);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 14px;
}
.digitus-points li:last-child { border-bottom: none; }
.digitus-points li::before {
  content: '';
  width: 5px; height: 5px;
  background: var(--gold);
  border-radius: 50%;
  flex-shrink: 0;
}

.digitus-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.digitus-panel { flex: 2; }
.digitus-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  background: var(--white);
  border: 1px solid var(--border);
}
.dmetric {
  background: var(--white);
  padding: 40px 32px;
  text-align: center;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  transition: background 0.2s;
}
.dmetric:hover { background: var(--cream-deep); }
.dmetric strong {
  display: block;
  font-size: 40px; font-weight: 700;
  color: var(--blue); letter-spacing: -1.5px;
  margin-bottom: 8px;
}
.dmetric span {
  font-size: 10px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 2px;
  color: var(--text-muted);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .feature-grid    { grid-template-columns: repeat(2, 1fr); }
  .why-cards       { grid-template-columns: repeat(2, 1fr); }
  .process-grid    { grid-template-columns: repeat(2, 1fr); }
  .industries-grid { grid-template-columns: repeat(2, 1fr); }
  .digitus-flex    { flex-direction: column; gap: 50px; }
  .digitus-panel   { width: 100%; }
}

@media (max-width: 768px) {
  .feature-grid    { grid-template-columns: 1fr; }
  .why-cards       { grid-template-columns: 1fr; }
  .process-grid    { grid-template-columns: 1fr; }
  .industries-grid { grid-template-columns: 1fr; }
  .hero-tags       { gap: 8px; }
  .digitus-metrics { grid-template-columns: 1fr; }
  .why-us          { padding: 70px 0; }
}
