/* CloudSigma Marketing Site — overrides on top of portal.css
   Keep this file thin. portal.css is the design system.
   Only add styles here that are specific to the marketing site preview. */

/* ── Smooth scroll ── */
html { scroll-behavior: smooth; }

/* ── Logo light/dark swap ── */
.cs-logo-light { display: block; }
.cs-logo-dark  { display: none; }
[data-bs-theme="dark"] .cs-logo-light { display: none; }
[data-bs-theme="dark"] .cs-logo-dark  { display: block; }

/* ── Dropdown menu theming ── */
.cs-navbar .dropdown-menu {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  box-shadow: var(--shadow-card-hover);
  padding: 0.5rem;
  min-width: 260px;
}
.cs-navbar .dropdown-item {
  border-radius: 6px;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  color: var(--text-primary);
  transition: background 0.15s;
}
.cs-navbar .dropdown-item:hover {
  background: var(--cs-green-bg);
  color: var(--cs-green);
}
.cs-navbar .dropdown-item small {
  color: var(--text-secondary);
  font-size: 0.75rem;
}
.cs-navbar .dropdown-divider {
  border-color: var(--border-color);
}

/* ── Hero subtitle ── */
.cs-hero-subtitle {
  font-size: 1.05rem;
  max-width: 540px;
  line-height: 1.65;
}
[data-bs-theme="light"] .cs-hero .cs-hero-subtitle {
  color: rgba(255,255,255,0.85);
}
[data-bs-theme="dark"] .cs-hero .cs-hero-subtitle {
  color: var(--text-secondary);
}

/* ── Hero title override ── */
.cs-hero-title {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  line-height: 1.12;
}
[data-bs-theme="light"] .cs-hero .cs-hero-title { color: #fff; }
[data-bs-theme="dark"] .cs-hero .cs-hero-title { color: var(--text-heading); }

/* ── Hero metrics row ── */
.cs-hero-metrics {
  display: flex;
  gap: 2rem;
  padding-top: 0.5rem;
}

/* ── Section alternating background fix ── */
[data-bs-theme="dark"] .cs-section-dark {
  background: #1f2329;
}

/* ── Testimonial dark section ── */
[data-bs-theme="dark"] .cs-section-dark .cs-testimonial {
  background: var(--bg-card);
  border-color: var(--border-color);
}
[data-bs-theme="dark"] .cs-section-dark .cs-section-title-light {
  color: var(--text-heading);
}

/* ── Cert grid center ── */
.cs-cert-grid {
  justify-content: center;
}

/* ── Navbar toggler fix ── */
.navbar-toggler { padding: 0.4rem; }
.navbar-toggler:focus { box-shadow: none; }

/* ── Dark mode fixes ── */
[data-bs-theme="dark"] .cs-cta-banner .btn-light {
  background: var(--cs-green) !important;
  border-color: var(--cs-green) !important;
  color: #fff !important;
}
[data-bs-theme="dark"] .cs-cta-banner .btn-light:hover {
  background: var(--cs-green-dark) !important;
}

/* ── Mobile ── */
@media (max-width: 991.98px) {
  .cs-hero-metrics { flex-wrap: wrap; gap: 1rem; }
  .cs-navbar .dropdown-menu {
    border: none;
    box-shadow: none;
    padding: 0;
    min-width: auto;
  }
}
@media (max-width: 575.98px) {
  .cs-cert-grid { gap: 0.4rem; }
  .cs-cert-badge { font-size: 0.72rem; padding: 0.4rem 0.6rem; }
}
