/* ==========================================================================
   Shared styles for portfolio.html and saas.html
   Relies on tokens from nav.css (--primary-color, --main-color)
   ========================================================================== */

/* Banner backgrounds (overlay comes from .page-banner-area::before in services.css) */
.bg-portfolio {
  background: url('../images/hero-portfolio.jpg') center / cover no-repeat;
}
.bg-saas {
  background: url('../images/cloud-server-header.jpg') center / cover no-repeat;
}

/* ---------- Layout helpers ---------- */
.sc-section { padding: 80px 0; }
.sc-section--tint { background: #f4f7fb; }

.sc-eyebrow {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--primary-color, #dd2424);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.sc-title {
  margin-bottom: 14px;
  color: #032346;
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  line-height: 1.2;
}
.sc-lead {
  max-width: 720px;
  color: #555;
  font-size: 18px;
}
.sc-head { margin-bottom: 36px; }
.sc-head--center { text-align: center; }
.sc-head--center .sc-lead { margin-inline: auto; }

/* ---------- Buttons ---------- */
.sc-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: .7rem 1.4rem;
  border: 2px solid var(--primary-color, #dd2424);
  border-radius: 10px;
  background: var(--primary-color, #dd2424);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
}
.sc-btn:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, .18);
}
.sc-btn--ghost {
  background: transparent;
  color: #032346;
  border-color: #032346;
}
.sc-btn--ghost:hover { background: #032346; color: #fff; }
.sc-btn--light { background: #fff; border-color: #fff; color: #032346; }
.sc-btn--light:hover { color: #032346; }
.sc-btn--outline-light { background: transparent; border-color: #fff; color: #fff; }
.sc-btn--outline-light:hover { background: #fff; color: #032346; }
.sc-btn:focus-visible,
.sc-chip:focus-visible,
.sc-link:focus-visible {
  outline: 3px solid var(--main-color, #1b73ce);
  outline-offset: 3px;
}

/* ---------- Portfolio: filters + grid ---------- */
.sc-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
}
.sc-chip {
  padding: .45rem 1.1rem;
  border: 2px solid #d3dbe6;
  border-radius: 999px;
  background: #fff;
  color: #032346;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.sc-chip:hover { border-color: #032346; }
.sc-chip[aria-pressed="true"] {
  background: #032346;
  border-color: #032346;
  color: #fff;
}
.sc-count { margin-bottom: 24px; color: #6b7785; font-size: 14px; }

.sc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
  gap: 28px;
}
.sc-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #e3e9f0;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 2px 10px rgba(3, 35, 70, .06);
  transition: transform .25s ease, box-shadow .25s ease;
}
.sc-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(3, 35, 70, .14);
}
.sc-card[hidden] { display: none; }
.sc-card-media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: white;
}
.sc-card-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}
.sc-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  padding: 22px;
}
.sc-card-body h3 {
  margin: 10px 0 8px;
  color: #032346;
  font-size: 21px;
  font-weight: 700;
}
.sc-card-body p { 
  flex: 1;
   margin-bottom: 14px; 
   color: #555; 
   display: none;
}


.sc-tag {
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.sc-tag--saas      { background: #e3f0fd; color: #0b4f99; }
.sc-tag--websites  { background: #e8f5ec; color: #17613a; }
.sc-tag--ecommerce { background: #fdecec; color: #a11a1a; }
.sc-tag--software  { background: #efe9fb; color: #4b2a9a; }

.sc-link {
  color: var(--main-color, #1b73ce);
  font-weight: 700;
  text-decoration: none;
}
.sc-link:hover { text-decoration: underline; }

/* ---------- SaaS: benefits, products, steps ---------- */
.sc-benefits {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 22px;
}
.sc-benefit {
  padding: 26px 22px;
  border: 1px solid #e3e9f0;
  border-radius: 14px;
  background: #fff;
}
.sc-benefit i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-bottom: 14px;
  border-radius: 12px;
  background: #e3f0fd;
  color: var(--main-color, #1b73ce);
  font-size: 22px;
}
.sc-benefit h3 { margin-bottom: 6px; color: #032346; font-size: 19px; font-weight: 700; }
.sc-benefit p { margin: 0; color: #555; }

.saas-product {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  align-items: center;
  gap: 56px;
  padding: 56px 0;
  border-top: 1px solid #e3e9f0;
}
.saas-product:first-child { border-top: 0; padding-top: 0; }
.saas-product.is-reversed .saas-copy { order: 2; }
.saas-logo { display: block; height: 48px; width: auto; margin-bottom: 18px; }
.saas-copy h3 {
  margin-bottom: 10px;
  color: #032346;
  font-size: clamp(26px, 3.2vw, 34px);
  font-weight: 700;
}
.saas-copy > p { color: #555; font-size: 17px; }
.saas-points { margin: 18px 0 26px; padding: 0; }
.saas-points li {
  position: relative;
  padding: 5px 0 5px 30px;
  color: #333;
}
.saas-points li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  top: 5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--main-color, #1b73ce);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}
.saas-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.saas-visual {
  padding: 26px;
  border-radius: 22px;
  background: linear-gradient(135deg, #eef4fb, #f8fafd);
  border: 1px solid #e3e9f0;
  text-align: center;
}
.saas-visual img { max-width: 100%; height: auto; }

.sc-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 26px;
  counter-reset: step;
}
.sc-step {
  position: relative;
  padding: 28px 24px 24px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid #e3e9f0;
  counter-increment: step;
}
.sc-step::before {
  content: counter(step);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  margin-bottom: 14px;
  border-radius: 50%;
  background: var(--primary-color, #dd2424);
  color: #fff;
  font-weight: 700;
}
.sc-step h3 { margin-bottom: 6px; color: #032346; font-size: 19px; font-weight: 700; }
.sc-step p { margin: 0; color: #555; }

/* ---------- Closing call-to-action band ---------- */
.sc-cta {
  padding: 70px 0;
  background: #032346;
  color: #fff;
  text-align: center;
}
.sc-cta h2 { margin-bottom: 10px; font-size: clamp(26px, 3.6vw, 36px); font-weight: 700; }
.sc-cta p { max-width: 640px; margin: 0 auto 26px; color: #d6e2f0; font-size: 18px; }
.sc-cta .saas-actions { justify-content: center; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .sc-section { padding: 56px 0; }
  .saas-product { grid-template-columns: 1fr; gap: 28px; padding: 40px 0; }
  .saas-product.is-reversed .saas-copy { order: 0; }
}
@media (max-width: 480px) {
  .sc-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .sc-card, .sc-btn { transition: none; }
  .sc-card:hover, .sc-btn:hover { transform: none; }
}

/* Easy Balance's logo file has wide padding, so it needs more height to read */
#easy-balance .saas-logo { height: 76px; margin-left: -6px; }

/* Keep square/tall product images from stretching their panel */
.saas-visual img { max-height: 440px; width: auto; max-width: 100%; margin-inline: auto; }

/* Logo-only cards (clients without a site screenshot) */
.sc-card-media--logo {
  background: #fff;
  border-bottom: 1px solid #eef2f7;
}
.sc-card-media--logo img {
  object-fit: contain;
  object-position: center;
  padding: 14px;
}
