/* ==========================================================================
   Apex Support Group — corporate design system
   ========================================================================== */

:root {
  --asg-navy: #0b1f3a;
  --asg-navy-deep: #081429;
  --asg-navy-soft: #12294a;
  --asg-blue: #1f6feb;
  --asg-blue-strong: #1858c4;
  --asg-cyan: #2dd4bf;
  --asg-ink: #0f172a;
  --asg-slate: #475569;
  --asg-slate-light: #64748b;
  --asg-line: #e2e8f0;
  --asg-bg-soft: #f1f5f9;
  --asg-white: #ffffff;
  --asg-radius: 14px;
  --asg-shadow-sm: 0 1px 2px rgba(15, 23, 42, .06), 0 4px 12px rgba(15, 23, 42, .05);
  --asg-shadow-md: 0 10px 30px rgba(15, 23, 42, .10);
  --asg-shadow-lg: 0 24px 60px rgba(8, 20, 41, .18);
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  color: var(--asg-ink);
  background-color: var(--asg-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--asg-navy);
  font-weight: 700;
  letter-spacing: -0.01em;
}

a {
  color: var(--asg-blue);
  text-decoration: none;
}

a:hover {
  color: var(--asg-blue-strong);
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus,
.form-control:focus, .form-check-input:focus, .form-select:focus {
  box-shadow: 0 0 0 0.25rem rgba(31, 111, 235, .25);
}

.skip-link {
  position: absolute;
  top: .5rem;
  left: .5rem;
  z-index: 1080;
  background: var(--asg-navy);
  color: #fff;
  padding: .5rem .9rem;
  border-radius: 8px;
}

/* ---------- Layout helpers ------------------------------------------------ */

.asg-section {
  padding: 5rem 0;
}

.asg-section--tight {
  padding: 3.5rem 0;
}

.asg-section--soft {
  background-color: var(--asg-bg-soft);
}

.asg-section--navy {
  background-color: var(--asg-navy);
  color: #cdd9ea;
}

.asg-section--navy h2,
.asg-section--navy h3 {
  color: #fff;
}

.asg-eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: .8rem;
  font-weight: 700;
  color: var(--asg-blue);
  margin-bottom: .85rem;
}

.asg-section--navy .asg-eyebrow {
  color: var(--asg-cyan);
}

.asg-section-title {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  margin-bottom: 1rem;
}

.asg-lead {
  font-size: 1.12rem;
  color: var(--asg-slate);
  max-width: 46rem;
}

.asg-section--navy .asg-lead {
  color: #aebfd6;
}

/* ---------- Navbar -------------------------------------------------------- */

.asg-navbar {
  background-color: rgba(8, 20, 41, .92);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 1030;
  padding-top: .85rem;
  padding-bottom: .85rem;
  border-bottom: 1px solid rgba(255, 255, 255, .06);
  transition: background-color .25s ease, box-shadow .25s ease, padding .25s ease;
}

.asg-navbar.is-scrolled {
  background-color: var(--asg-navy-deep);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .25);
  padding-top: .55rem;
  padding-bottom: .55rem;
}

.asg-brand {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  color: #fff;
  font-weight: 700;
  font-size: 1.25rem;
}

.asg-brand:hover {
  color: #fff;
}

.asg-brand-mark {
  color: var(--asg-cyan);
}

.asg-brand-accent {
  color: var(--asg-cyan);
}

.asg-navbar .nav-link {
  color: #d4ddec;
  font-weight: 500;
  padding: .5rem .95rem;
  border-radius: 8px;
  transition: color .15s ease, background-color .15s ease;
}

.asg-navbar .nav-link:hover,
.asg-navbar .nav-link:focus {
  color: #fff;
}

.asg-navbar .nav-link.active {
  color: #fff;
}

.asg-navbar .nav-link.active::after {
  content: "";
  display: block;
  height: 2px;
  width: 22px;
  margin: 4px auto 0;
  border-radius: 2px;
  background: var(--asg-cyan);
}

.navbar-toggler {
  border-color: rgba(255, 255, 255, .25);
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255,255,255,0.85%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ---------- Buttons ------------------------------------------------------- */

.btn-asg-primary {
  background: linear-gradient(135deg, var(--asg-blue), var(--asg-blue-strong));
  border: none;
  color: #fff;
  font-weight: 600;
  padding: .65rem 1.5rem;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(31, 111, 235, .28);
  transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
}

.btn-asg-primary:hover,
.btn-asg-primary:focus {
  color: #fff;
  filter: brightness(1.05);
  transform: translateY(-1px);
  box-shadow: 0 12px 26px rgba(31, 111, 235, .35);
}

.btn-asg-outline-light {
  border: 1.5px solid rgba(255, 255, 255, .55);
  color: #fff;
  font-weight: 600;
  padding: .65rem 1.5rem;
  border-radius: 10px;
  background: transparent;
  transition: background-color .15s ease, border-color .15s ease;
}

.btn-asg-outline-light:hover,
.btn-asg-outline-light:focus {
  background: rgba(255, 255, 255, .12);
  border-color: #fff;
  color: #fff;
}

.btn-asg-outline {
  border: 1.5px solid var(--asg-blue);
  color: var(--asg-blue);
  font-weight: 600;
  padding: .65rem 1.5rem;
  border-radius: 10px;
  background: transparent;
  transition: background-color .15s ease, color .15s ease;
}

.btn-asg-outline:hover,
.btn-asg-outline:focus {
  background: var(--asg-blue);
  color: #fff;
}

.btn-lg {
  padding: .8rem 1.9rem;
  font-size: 1.02rem;
}

/* ---------- Hero ---------------------------------------------------------- */

.asg-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(900px 500px at 85% -10%, rgba(45, 212, 191, .18), transparent 60%),
    radial-gradient(700px 500px at 10% 20%, rgba(31, 111, 235, .25), transparent 55%),
    linear-gradient(160deg, var(--asg-navy-deep), var(--asg-navy) 55%, var(--asg-navy-soft));
  color: #e6edf7;
  padding: 6rem 0 5.5rem;
}

.asg-hero h1 {
  color: #fff;
  font-size: clamp(2.2rem, 4.6vw, 3.6rem);
  line-height: 1.1;
  margin-bottom: 1.25rem;
}

.asg-hero-lead {
  font-size: 1.2rem;
  color: #b6c6dd;
  max-width: 34rem;
  margin-bottom: 2rem;
}

.asg-hero-accent {
  color: var(--asg-cyan);
}

.asg-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .9rem;
}

.asg-hero-points {
  list-style: none;
  padding: 0;
  margin: 2.25rem 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.75rem;
}

.asg-hero-points li {
  display: flex;
  align-items: center;
  gap: .5rem;
  color: #c6d4e8;
  font-weight: 500;
}

.asg-hero-points svg {
  color: var(--asg-cyan);
  flex: none;
}

/* Hero side panel */
.asg-hero-panel {
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 18px;
  padding: 1.75rem;
  box-shadow: var(--asg-shadow-lg);
}

.asg-hero-panel h2 {
  color: #fff;
  font-size: 1.1rem;
  margin-bottom: 1.25rem;
}

.asg-hero-stat {
  padding: .85rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.asg-hero-stat:last-child {
  border-bottom: 0;
}

.asg-hero-stat .num {
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--asg-cyan);
  line-height: 1.1;
}

.asg-hero-stat .label {
  color: #aebfd6;
  font-size: .92rem;
}

/* ---------- Logos / trust bar -------------------------------------------- */

.asg-trust {
  background: var(--asg-navy-deep);
  color: #93a6c2;
  padding: 1.5rem 0;
  border-top: 1px solid rgba(255, 255, 255, .06);
}

.asg-trust span {
  font-weight: 600;
  letter-spacing: .03em;
}

/* ---------- Stat band ----------------------------------------------------- */

.asg-stat {
  text-align: center;
  padding: 1rem;
}

.asg-stat .num {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 800;
  color: var(--asg-blue);
  line-height: 1;
}

.asg-section--navy .asg-stat .num {
  color: var(--asg-cyan);
}

.asg-stat .label {
  margin-top: .4rem;
  color: var(--asg-slate);
  font-weight: 500;
}

.asg-section--navy .asg-stat .label {
  color: #aebfd6;
}

/* ---------- Cards --------------------------------------------------------- */

.asg-card {
  background: #fff;
  border: 1px solid var(--asg-line);
  border-radius: var(--asg-radius);
  padding: 1.85rem;
  height: 100%;
  box-shadow: var(--asg-shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.asg-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--asg-shadow-md);
  border-color: #c7d6ee;
}

.asg-card h3 {
  font-size: 1.2rem;
  margin-bottom: .6rem;
}

.asg-card p {
  color: var(--asg-slate);
  margin-bottom: 0;
}

.asg-card-link {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  margin-top: 1rem;
  font-weight: 600;
}

.asg-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 12px;
  margin-bottom: 1.1rem;
  background: linear-gradient(135deg, rgba(31, 111, 235, .12), rgba(45, 212, 191, .14));
  color: var(--asg-blue);
}

.asg-icon svg {
  width: 26px;
  height: 26px;
}

/* ---------- Feature list / checkmarks ------------------------------------ */

.asg-check-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.asg-check-list li {
  position: relative;
  padding-left: 2rem;
  margin-bottom: .85rem;
  color: var(--asg-slate);
}

.asg-section--navy .asg-check-list li {
  color: #c6d4e8;
}

.asg-check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .15rem;
  width: 1.3rem;
  height: 1.3rem;
  border-radius: 50%;
  background: rgba(31, 111, 235, .12) url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%231f6feb'%3e%3cpath d='M13.5 4.5 6.5 11.5 2.5 7.5l1-1 3 3 6-6z'/%3e%3c/svg%3e") center / 0.95rem no-repeat;
}

.asg-section--navy .asg-check-list li::before {
  background-color: rgba(45, 212, 191, .18);
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%232dd4bf'%3e%3cpath d='M13.5 4.5 6.5 11.5 2.5 7.5l1-1 3 3 6-6z'/%3e%3c/svg%3e");
}

/* ---------- Process steps ------------------------------------------------- */

.asg-step {
  position: relative;
  padding: 1.6rem;
  background: #fff;
  border: 1px solid var(--asg-line);
  border-radius: var(--asg-radius);
  height: 100%;
}

.asg-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--asg-navy);
  color: #fff;
  font-weight: 700;
  margin-bottom: 1rem;
}

.asg-step h3 {
  font-size: 1.1rem;
}

.asg-step p {
  color: var(--asg-slate);
  margin-bottom: 0;
}

/* ---------- Sub-page header ----------------------------------------------- */

.asg-page-header {
  background:
    radial-gradient(700px 400px at 90% -20%, rgba(45, 212, 191, .15), transparent 60%),
    linear-gradient(160deg, var(--asg-navy-deep), var(--asg-navy));
  color: #e6edf7;
  padding: 4.5rem 0 4rem;
}

.asg-page-header h1 {
  color: #fff;
  font-size: clamp(2rem, 4vw, 3rem);
}

.asg-page-header p {
  color: #b6c6dd;
  font-size: 1.12rem;
  max-width: 44rem;
  margin-bottom: 0;
}

.asg-breadcrumb {
  font-size: .9rem;
  color: #8ea3c2;
  margin-bottom: .75rem;
}

.asg-breadcrumb a {
  color: #b6c6dd;
}

/* ---------- Service detail rows ------------------------------------------ */

.asg-service-row {
  padding: 2.5rem 0;
  border-bottom: 1px solid var(--asg-line);
}

.asg-service-row:last-child {
  border-bottom: 0;
}

.asg-service-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(31, 111, 235, .12), rgba(45, 212, 191, .14));
  color: var(--asg-blue);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.asg-service-icon svg {
  width: 32px;
  height: 32px;
}

/* ---------- CTA band ------------------------------------------------------ */

.asg-cta {
  background: linear-gradient(135deg, var(--asg-blue), #3b1fb8);
  color: #fff;
  border-radius: 20px;
  padding: 3rem;
  box-shadow: var(--asg-shadow-lg);
}

.asg-cta h2 {
  color: #fff;
}

.asg-cta p {
  color: rgba(255, 255, 255, .85);
  margin-bottom: 0;
}

/* ---------- Contact ------------------------------------------------------- */

.asg-form-card {
  background: #fff;
  border: 1px solid var(--asg-line);
  border-radius: var(--asg-radius);
  padding: 2rem;
  box-shadow: var(--asg-shadow-sm);
}

.asg-form-card .form-label {
  font-weight: 600;
  color: var(--asg-navy);
}

.asg-form-card .form-control,
.asg-form-card .form-select {
  border-radius: 10px;
  padding: .65rem .85rem;
  border-color: #cbd5e1;
}

.asg-contact-aside {
  background: var(--asg-navy);
  color: #cdd9ea;
  border-radius: var(--asg-radius);
  padding: 2rem;
  height: 100%;
}

.asg-contact-aside h2 {
  color: #fff;
  font-size: 1.25rem;
}

.asg-contact-item {
  display: flex;
  gap: .85rem;
  align-items: flex-start;
  margin-top: 1.4rem;
}

.asg-contact-item svg {
  color: var(--asg-cyan);
  flex: none;
  margin-top: .15rem;
}

.asg-contact-item a {
  color: #fff;
}

.asg-contact-item .label {
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #8ea3c2;
}

/* ---------- Prose (privacy / text pages) --------------------------------- */

.asg-prose h2 {
  font-size: 1.35rem;
  margin-top: 2rem;
  margin-bottom: .75rem;
}

.asg-prose p,
.asg-prose li {
  color: var(--asg-slate);
}

/* ---------- Footer -------------------------------------------------------- */

.asg-footer {
  background: var(--asg-navy-deep);
  color: #9fb1cc;
  padding: 3.5rem 0 1.75rem;
}

.asg-footer-brand {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  color: #fff;
  font-weight: 700;
  font-size: 1.15rem;
  margin-bottom: 1rem;
}

.asg-footer-brand:hover {
  color: #fff;
}

.asg-footer-brand svg {
  color: var(--asg-cyan);
}

.asg-footer-blurb {
  color: #8497b5;
  max-width: 22rem;
}

.asg-footer-heading {
  color: #fff;
  font-size: .95rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 1rem;
}

.asg-footer-links,
.asg-footer-contact {
  list-style: none;
  padding: 0;
  margin: 0;
}

.asg-footer-links li,
.asg-footer-contact li {
  margin-bottom: .6rem;
}

.asg-footer-links a,
.asg-footer-contact a {
  color: #9fb1cc;
}

.asg-footer-links a:hover,
.asg-footer-contact a:hover {
  color: #fff;
}

.asg-footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.5rem;
  justify-content: space-between;
  align-items: center;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, .08);
  font-size: .9rem;
  color: #7e90ae;
}

.asg-footer-bottom a {
  color: #9fb1cc;
}

/* ---------- Responsive ---------------------------------------------------- */

@media (max-width: 991.98px) {
  .asg-navbar .navbar-collapse {
    background: var(--asg-navy-deep);
    margin-top: .75rem;
    padding: 1rem;
    border-radius: 12px;
  }

  .asg-navbar .nav-link.active::after {
    margin: 4px 0 0;
  }

  .asg-cta {
    padding: 2rem;
  }
}

@media (max-width: 575.98px) {
  .asg-section {
    padding: 3.5rem 0;
  }

  .asg-hero {
    padding: 4rem 0;
  }
}