/* ══════════════════════════════
   PROJECT SECTIONS (Rubalif / VisaTrack)
══════════════════════════════ */
.sp-section {
  width: 100vw;
  min-height: 90vh;
  display: flex;
  justify-content: center;
  background: #f5f3f0;
  margin-left: calc(-50vw + 50%);
  padding: 2.5rem 80px;
  font-family: 'DM Sans', sans-serif;
  color: #1a202c;
}

.sp-section-inner {
  width: 100%;
  max-width: 1300px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 4rem;
}

/* ── LEFT ── */
.sp-left {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.sp-eyebrow {
  font: 500 11px/1 'DM Sans', sans-serif;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: #8a9ab0;
  margin: 0 0 29px;
}

.sp-headline {
  font: 400 64px/1.05 'DM Serif Display', serif;
  color: #1a202c;
  letter-spacing: -1.5px;
  max-width: 600px;
  margin: 0 0 42px;
}

.sp-body {
  font: 400 17px/1.75 'DM Sans', sans-serif;
  color: #4a5568;
  max-width: 520px;
  margin: 0 0 42px;
}

.sp-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 32px;
  background: #1a202c;
  color: #f5f3f0;
  font: 500 15px/1 'DM Sans', sans-serif;
  text-decoration: none;
  border: 2px solid #1a202c;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
  white-space: nowrap;
}
.btn-primary:hover { background: #8b0000; border-color: #8b0000; color: #f5f3f0; }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  padding: 16px 32px;
  background: transparent;
  color: #1a202c;
  font: 500 15px/1 'DM Sans', sans-serif;
  text-decoration: none;
  border: 2px solid rgba(0,0,0,0.18);
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
  white-space: nowrap;
}
.btn-secondary:hover { border-color: #8b0000; color: #8b0000; }

/* ── RIGHT ── */
.sp-right {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.sp-card {
  /* same color as the section background, so the card reads as a subtle
     bordered panel rather than a separate white box */
  background: #f5f3f0;
  border: 1px solid rgba(0,0,0,0.09);
  box-shadow: 0 6px 32px rgba(0,0,0,0.07);
  padding: 40px 40px 32px;
}

/* ── COVER BANNER ──
   Big brand visual at the top of the card (see .sp-cover markup inside
   .sp-card in rubalif.html / visatrack.html).

   No real cover photo yet, so it defaults to each project's own brand
   color via the --cover-bg custom property, set per page further down
   (search "#rubalif .sp-cover" / "#visatrack .sp-cover").

   TO ADD A REAL COVER PHOTO LATER: on that same --cover-bg line, either
     1) replace the color with a photo:  --cover-bg: url("your-photo.jpg") center/cover;
     2) or add a second declaration just for background-image:
          #rubalif .sp-cover { background-image: url("your-photo.jpg"); }
   The color still renders underneath as an instant fallback while the
   photo loads (or if the URL breaks), so nothing needs to be removed. */
.sp-cover {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 240px;
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 32px;
  background: var(--cover-bg);
  background-size: cover;
  background-position: center;
}

/* the enlarged logo/icon shown centered inside the cover */
.sp-cover-logo {
  max-width: 45%;
  max-height: 55%;
  object-fit: contain;
}
.sp-cover-icon {
  width: 30%;
  max-width: 96px;
  height: auto;
}

/* small "mini logo + name" chip pinned to the cover's bottom-left corner */
.sp-cover-badge {
  position: absolute;
  left: 14px;
  bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  padding: 6px 12px 6px 6px;
  border-radius: 999px;
  font: 600 12px/1 'DM Sans', sans-serif;
  white-space: nowrap;
}
.sp-cover-badge img,
.sp-cover-badge .sp-cover-badge-icon {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  object-fit: cover;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.sp-cover-badge .sp-cover-badge-icon svg { width: 12px; height: 12px; }

/* brand color defaults — used as the cover background when no photo is set */
#rubalif .sp-cover { --cover-bg: #8b0000; }
#visatrack .sp-cover { --cover-bg: linear-gradient(135deg, #F5A524, #FFCB74); }

.sp-divider {
  width: 100%;
  height: 1px;
  background: rgba(0,0,0,0.09);
}

.sp-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 18px 0;
  border-bottom: 1px solid rgba(0,0,0,0.07);
}
.sp-row:last-of-type { border-bottom: none; padding-bottom: 0; }

.sp-label {
  font: 500 10.5px/1 'DM Sans', sans-serif;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #8a9ab0;
}

.sp-value {
  font: 500 15px/1 'DM Sans', sans-serif;
  color: #1a202c;
  text-align: right;
}

/* Website link row */
.sp-link-row {
  padding-top: 24px;
}

.sp-site-link {
  font: 400 15px/1 'DM Sans', sans-serif;
  color: #1a202c;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: color 0.2s;
}

.sp-site-link:hover { color: #8b0000; }

.sp-site-link::after {
  content: '↗';
  font-size: 13px;
}

/* ── VISATRACK OVERRIDES (scoped, so it doesn't affect Rubalif) ── */
#visatrack .btn-primary:hover { background: #6C5CE7; border-color: #6C5CE7; color: #f5f3f0; }
#visatrack .btn-secondary:hover { border-color: #6C5CE7; color: #6C5CE7; }
#visatrack .sp-site-link:hover { color: #6C5CE7; }

/* ── RESPONSIVE ── */
@media (max-width: 1150px) {
  .sp-section { min-height: auto; }
}
@media (max-width: 900px) {
  .sp-section { min-height: auto; padding: 48px 32px; }
  .sp-section-inner { grid-template-columns: 1fr; gap: 32px; }
  .sp-headline { font-size: 38px; }
  .sp-body { font-size: 15px; }
  .sp-cover { max-height: 200px; margin-bottom: 24px; }
  /* buttons stay side-by-side on tablet (more compact, matches design ref);
     they only stack full-width on small phones, see the 500px query below */
}
@media (max-width: 500px) {
  .sp-section { padding: 32px 20px; }
  .sp-section-inner { gap: 24px; }
  .sp-headline { font-size: 30px; }
  .sp-card { padding: 24px 20px; }
  .sp-body { font-size: 14px; }
  .sp-eyebrow { font-size: 9px; }
  .sp-cover { max-height: 160px; margin-bottom: 18px; }
  .sp-cover-badge { font-size: 11px; padding: 5px 10px 5px 5px; left: 10px; bottom: 10px; }
  /* only stack buttons full-width on small phones, where side-by-side text would get too cramped */
  .sp-buttons { flex-direction: column; }
  .btn-primary, .btn-secondary { width: 100%; justify-content: center; padding: 14px 22px; font-size: 14px; }
}
