/**
 * Modern layout polish + mobile-first enhancements (works with pristine.css + themes).
 */

.sd-container-wide {
  max-width: 1200px;
}

.sd-main {
  overflow-x: clip;
}

/* —— Mobile navigation (offcanvas) —— */
.sd-nav-offcanvas.offcanvas {
  background: var(--sd-surface, #fff);
  border-left: 1px solid var(--sd-line, rgba(15, 23, 42, 0.08));
}

.sd-nav-offcanvas .offcanvas-header {
  border-bottom: 1px solid var(--sd-line, rgba(15, 23, 42, 0.08));
}

.sd-nav-offcanvas .nav-link {
  font-size: 1.05rem;
  padding: 0.65rem 0;
  min-height: 44px;
  display: flex;
  align-items: center;
}

.sd-nav-offcanvas .btn {
  min-height: 44px;
}

.sd-tech-ai-card {
  padding: 1.35rem 1.25rem;
  border-radius: var(--sd-radius, 0.75rem);
  border: 1px solid var(--sd-line, rgba(15, 23, 42, 0.08));
  background: var(--sd-surface, #fff);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.6) inset;
}

.sd-tech-ai-card .text-muted,
.sd-build-tile .text-muted {
  color: var(--sd-muted) !important;
}

.sd-tech-ai-card h3 {
  color: var(--sd-ink, #0c1222);
}

/* “Technologies we work with” — separate from hero .sd-pill (white-on-dark) */
.sd-tech-pills-section .sd-section-title,
.sd-tech-pills-section .sd-section-lead {
  color: var(--sd-ink, #0c1222);
}

.sd-tech-pills-section .sd-section-lead {
  color: var(--sd-muted, #475569) !important;
}

.sd-tech-chip {
  display: inline-block;
  font-family: var(--sd-font, system-ui, sans-serif);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.3;
  padding: 0.55rem 1.05rem;
  border-radius: 999px;
  color: #1e293b !important;
  background: #ffffff !important;
  border: 1px solid rgba(15, 23, 42, 0.14) !important;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
  -webkit-font-smoothing: antialiased;
}

.sd-tech-chip:hover {
  color: #0c1222 !important;
  border-color: rgba(8, 145, 178, 0.45) !important;
  background: linear-gradient(165deg, #ffffff 0%, #f1f5f9 100%) !important;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.1);
}

.sd-tech-pills-group__title {
  font-family: var(--sd-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sd-muted, #475569);
  margin-bottom: 1rem;
}

.sd-tech-stack-list {
  color: var(--sd-muted, #475569) !important;
}

.sd-tech-stack-list li {
  color: var(--sd-ink-soft, #1e293b);
}

.sd-tech-ai-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.65rem;
  margin-bottom: 0.85rem;
  font-size: 1.15rem;
  color: var(--sd-accent, #6366f1);
  background: linear-gradient(145deg, rgba(99, 102, 241, 0.12), rgba(45, 212, 191, 0.1));
}

.sd-build-tile {
  height: 100%;
  padding: 1.25rem;
  border-radius: var(--sd-radius, 0.75rem);
  border: 1px solid var(--sd-line, rgba(15, 23, 42, 0.08));
  background: var(--sd-surface, #fff);
}

.sd-build-tile__tag {
  font-family: var(--sd-mono);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sd-muted);
}

.sd-ai-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.5rem;
  color: var(--sd-accent);
  background: rgba(99, 102, 241, 0.1);
}

@media (max-width: 991.98px) {
  .sd-navbar .navbar-brand,
  .sd-navbar .sd-brand-lockup {
    max-width: calc(100% - 3.5rem);
  }

  .sd-brand-lockup__text {
    max-width: calc(100vw - 8.5rem);
  }

  .sd-logo-tag {
    font-size: 0.58rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 12.5rem;
  }

  .sd-navbar .navbar-collapse.d-lg-flex {
    display: none !important;
  }

  .sd-hero-title {
    font-size: clamp(1.65rem, 5vw, 2.35rem);
  }

  .sd-section-title.display-6 {
    font-size: clamp(1.35rem, 4.5vw, 2rem);
  }

  .sd-portfolio-carousel .carousel-control-prev,
  .sd-portfolio-carousel .carousel-control-next {
    width: 2.75rem;
    min-height: 44px;
  }

  .sd-clients-pro__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
  }

  .sd-trust-item h3 {
    font-size: 0.95rem;
  }
}

@media (min-width: 992px) {
  .sd-nav-mobile-trigger {
    display: none;
  }
}

/* —— AI / technology band —— */
.sd-ai-band {
  background: linear-gradient(
    135deg,
    rgba(var(--sd-accent-rgb, 6, 182, 212), 0.06) 0%,
    var(--sd-canvas-warm, #f8fafc) 45%,
    var(--sd-surface, #fff) 100%
  );
  border-block: 1px solid var(--sd-line, rgba(15, 23, 42, 0.08));
}

.sd-ai-card {
  height: 100%;
  border: 1px solid var(--sd-line, rgba(15, 23, 42, 0.08));
  border-radius: var(--sd-radius-lg, 1rem);
  background: var(--sd-surface, #fff);
  padding: 1.35rem 1.25rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.sd-ai-card__icon {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(var(--sd-accent-rgb, 6, 182, 212), 0.12);
  color: var(--sd-accent, #0891b2);
  font-size: 1.25rem;
  margin-bottom: 0.85rem;
}

@media (hover: hover) {
  .sd-ai-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--sd-shadow-md, 0 12px 40px rgba(15, 23, 42, 0.08));
  }
}

/* —— Inner page hero —— */
.sd-page-hero {
  padding: clamp(2.5rem, 6vw, 4rem) 0 clamp(2rem, 4vw, 3rem);
  background: var(--sd-canvas-warm, #f8fafc);
  border-bottom: 1px solid var(--sd-line, rgba(15, 23, 42, 0.06));
}

.sd-page-hero .sd-section-lead {
  max-width: 42rem;
  color: var(--sd-muted);
}

/* Readable muted copy on light surfaces (Bootstrap .text-muted) */
.sd-body .text-muted,
.sd-body .text-muted small {
  color: var(--sd-muted) !important;
}

.sd-body .small.text-muted,
.sd-body p.text-muted {
  color: var(--sd-muted) !important;
}

/* Dark bands — never use Bootstrap gray on navy/teal process section */
.sd-process .text-muted,
.sd-process .sd-on-dark-muted,
.sd-process .sd-empty-hint {
  color: rgba(255, 255, 255, 0.78) !important;
}

.sd-trust-strip .text-muted {
  color: rgba(255, 255, 255, 0.72) !important;
}

.sd-footer .text-muted,
.sd-footer p.small {
  color: rgba(255, 255, 255, 0.78) !important;
}

.sd-page-hero .sd-section-title {
  color: var(--sd-ink);
}

.sd-portfolio-cap {
  background: var(--sd-surface, #fff);
}

/* —— Work grid —— */
.sd-work-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: var(--sd-radius-md, 0.75rem);
}

/* —— FAQ —— */
.sd-faq .accordion-button {
  font-weight: 600;
  font-size: 1rem;
  padding: 1rem 1.15rem;
}

.sd-faq .accordion-button:not(.collapsed) {
  color: var(--sd-accent, #0891b2);
  background: rgba(var(--sd-accent-rgb, 6, 182, 212), 0.06);
}

/* —— Build catalog (technologies) —— */
.sd-build-tile {
  border: 1px solid var(--sd-line);
  border-radius: var(--sd-radius-lg, 1rem);
  padding: 1.25rem;
  height: 100%;
  background: var(--sd-surface, #fff);
}

.sd-build-tile__tag {
  font-family: var(--sd-font-mono, ui-monospace, monospace);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--sd-muted, #64748b);
}
