/* ==========================================================================
   Design refresh layer — loaded after styles.css. Keeps Bootstrap and the
   original color language, adds a token system, refined type scale, section
   rhythm, and new component styles (trust bar, process timeline,
   testimonials, accordion, CTA band, prose, breadcrumbs) on top of it.
   ========================================================================== */

:root {
  --aw-accent: #ff5574;
  --aw-accent-dark: #e8415e;
  --aw-purple: #6168ff;
  --aw-purple-dark: #4a50e0;
  --aw-purple-text: #4a50e0;
  --aw-text: #1c1f2b;
  --aw-text-muted: #5a5f72;
  --aw-bg: #ffffff;
  --aw-bg-alt: #f7f8fc;
  --aw-border: #e6e8f0;
  --aw-radius: 16px;
  --aw-shadow: 0 10px 30px -12px rgba(28, 31, 43, 0.15);
  --aw-shadow-hover: 0 16px 40px -12px rgba(28, 31, 43, 0.22);
  --aw-max-prose: 65ch;
}

/* ---- Type scale ---- */
h1,
.h1-large {
  font-size: clamp(2.1rem, 1.5rem + 2.4vw, 3.4rem);
  line-height: 1.12;
}

h2 {
  font-size: clamp(1.6rem, 1.25rem + 1.4vw, 2.5rem);
  line-height: 1.2;
}

h3 {
  font-size: clamp(1.25rem, 1.05rem + 0.7vw, 1.75rem);
}

body {
  color: var(--aw-text);
}

.p-large,
.p-large p {
  color: var(--aw-text-muted);
}

/* ---- Section rhythm ---- */
.header,
.cards-1,
.basic-1,
.counter,
.basic-2,
.trust-bar,
.process-section,
.testimonials-section,
.faq-section,
.cta-band,
.service-hero,
.service-body,
.related-links {
  padding-top: clamp(3rem, 2rem + 3vw, 6rem);
  padding-bottom: clamp(3rem, 2rem + 3vw, 6rem);
}

.header {
  padding-top: clamp(6rem, 5rem + 3vw, 9rem);
}

.alt-bg,
.trust-bar,
.testimonials-section,
.faq-section {
  background-color: var(--aw-bg-alt);
}

.section-compact {
  padding-top: clamp(2rem, 1.5rem + 1.5vw, 3.5rem);
  padding-bottom: clamp(2rem, 1.5rem + 1.5vw, 3.5rem);
}

.section-heading {
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 2.5rem;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

.hero-trust-line {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: var(--aw-text-muted);
}

.btn-outline-lg,
.btn-outline-sm {
  display: inline-block;
  border-radius: 30px;
  border: 1px solid var(--aw-purple);
  color: var(--aw-purple-text);
  background: transparent;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.btn-outline-lg {
  padding: 1.625rem 2.625rem;
}

.btn-outline-sm {
  padding: 0.6rem 1.25rem;
  font-size: 0.9rem;
}

.btn-outline-lg:hover,
.btn-outline-sm:hover {
  background-color: var(--aw-purple-text);
  color: #fff;
}

/* ---- Service cards ---- */
.service-card-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.75rem;
}

.service-card-row-4 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  min-width: 0;
}

@media (min-width: 992px) {
  .service-card-row-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 575px) {
  .service-card-row-4 {
    grid-template-columns: minmax(0, 1fr);
  }
}

.card.service-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  color: inherit;
  border-radius: var(--aw-radius);
  box-shadow: var(--aw-shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border: 1px solid var(--aw-border);
}

.card.service-card .card-body {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.card.service-card .card-link {
  margin-top: auto;
}

.cards-1 .card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  margin-left: 0;
}

.cards-1 .card-icon .fas,
.cards-1 .card-icon .far {
  margin-right: 0;
  line-height: 1;
}

.cards-1 .card-icon.blue {
  background: linear-gradient(135deg, #599af2, #3b479a);
}

.cards-1 .card-icon.purple {
  background: linear-gradient(135deg, var(--aw-purple), var(--aw-purple-dark));
}

.cards-1 .card-icon.yellow {
  background: linear-gradient(135deg, #ffc043, #d99214);
}

.cards-1 .card-icon.red {
  background: linear-gradient(135deg, var(--aw-accent), #c2244a);
}

.card.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--aw-shadow-hover);
}

.card.service-card .card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1rem;
  font-weight: 600;
  color: var(--aw-accent);
}

/* ---- Trust bar ---- */
.trust-bar-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1.5rem;
  text-align: center;
}

.trust-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  padding: 1.5rem 1rem;
  background: #fff;
  border-radius: var(--aw-radius);
  border: 1px solid var(--aw-border);
}

.trust-chip i {
  font-size: 1.5rem;
  color: var(--aw-purple-text);
}

.trust-chip-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--aw-text);
}

/* ---- Process timeline ---- */
.process-timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  counter-reset: process;
}

.process-step {
  position: relative;
  padding-top: 3.25rem;
}

.process-number {
  position: absolute;
  top: 0;
  left: 0;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--aw-accent), var(--aw-purple));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
}

/* ---- Testimonials ---- */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.75rem;
}

.testimonial-card {
  position: relative;
  margin: 0;
  padding: 2rem 1.75rem 1.5rem;
  background: #fff;
  border-radius: var(--aw-radius);
  border: 1px solid var(--aw-border);
  box-shadow: var(--aw-shadow);
}

.testimonial-quote-mark {
  position: absolute;
  top: 0.5rem;
  left: 1.25rem;
  font-size: 3.5rem;
  line-height: 1;
  color: var(--aw-accent);
  opacity: 0.35;
  font-family: Georgia, serif;
}

.testimonial-headline {
  font-weight: 700;
  margin-bottom: 0.75rem;
  margin-top: 1rem;
}

.testimonial-body {
  color: var(--aw-text-muted);
}

.testimonial-by {
  display: flex;
  flex-direction: column;
  margin-top: 1rem;
}

.testimonial-name {
  font-weight: 600;
}

.testimonial-role {
  font-size: 0.85rem;
  color: var(--aw-text-muted);
}

/* ---- Accordion / FAQ ---- */
.faq-section .accordion-item {
  border: 1px solid var(--aw-border);
  border-radius: var(--aw-radius) !important;
  overflow: hidden;
  margin-bottom: 1rem;
}

.faq-section .accordion-button {
  font-weight: 600;
  color: var(--aw-text);
  background: #fff;
}

.faq-section .accordion-button:not(.collapsed) {
  color: var(--aw-purple-text);
  background: var(--aw-bg-alt);
  box-shadow: none;
}

.faq-section .accordion-button:focus {
  box-shadow: 0 0 0 3px rgba(97, 104, 255, 0.35);
}

/* ---- CTA band ---- */
.cta-band {
  background: linear-gradient(120deg, var(--aw-purple), var(--aw-accent));
  color: #fff;
  text-align: center;
  border-radius: var(--aw-radius);
  margin: 0 auto;
  max-width: 1200px;
}

.cta-band h2,
.cta-band p {
  color: #fff;
}

.cta-band-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.5rem;
}

.cta-band .btn-solid-lg {
  background: #fff;
  color: var(--aw-purple-text);
  border-color: #fff;
}

.cta-band .btn-outline-lg {
  border-color: #fff;
  color: #fff;
}

.cta-band .btn-outline-lg:hover {
  background: #fff;
  color: var(--aw-purple-text);
}

/* ---- Breadcrumbs ---- */
.breadcrumbs {
  padding: 1rem 0;
  font-size: 0.9rem;
}

.breadcrumb-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding: 0;
  margin: 0;
  color: var(--aw-text-muted);
}

.breadcrumb-list a {
  color: var(--aw-purple-text);
  text-decoration: none;
}

.breadcrumb-sep {
  margin-left: 0.4rem;
}

/* ---- Service / blog prose ---- */
.service-hero {
  background: var(--aw-bg-alt);
}

.service-hero-row {
  align-items: center;
}

.service-hero-illustration {
  text-align: center;
  margin-top: 2rem;
}

@media (min-width: 992px) {
  .service-hero-illustration {
    margin-top: 0;
    text-align: right;
  }
}

.service-hero-illustration img {
  max-width: 100%;
  height: auto;
  max-height: 380px;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.service-hero-illustration img:hover {
  transform: translateY(-4px);
}

.service-hero-center {
  text-align: center;
}

.service-hero-center .hero-cta-group {
  justify-content: center;
}

.service-hero-center-badge {
  max-width: 320px;
  margin: 1.5rem auto 0;
}

.service-hero-center-badge img {
  max-width: 100%;
  height: auto;
  max-height: 200px;
}

.prose {
  max-width: var(--aw-max-prose);
  margin: 0 auto;
  color: #3f4452;
  font-size: 1.0625rem;
  line-height: 1.7;
}

.col-lg-8 > .prose {
  margin: 0;
  max-width: none;
}

.prose h2 {
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

.prose h3 {
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.prose p {
  margin-bottom: 1.25rem;
  color: #3f4452;
  font-size: 1.0625rem;
  line-height: 1.7;
}

.prose ul,
.prose ol {
  margin-bottom: 1.25rem;
  padding-left: 1.5rem;
  color: #3f4452;
}

.prose li {
  font-size: 1.0625rem;
  line-height: 1.7;
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.5rem;
  display: block;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.prose table th,
.prose table td {
  border: 1px solid var(--aw-border);
  padding: 0.6rem 0.9rem;
  text-align: left;
}

.prose blockquote {
  border-left: 4px solid var(--aw-accent);
  padding-left: 1.25rem;
  color: var(--aw-text-muted);
  font-style: italic;
  margin: 1.5rem 0;
}

.prose code {
  background: var(--aw-bg-alt);
  padding: 0.15rem 0.4rem;
  border-radius: 6px;
  font-size: 0.9em;
}

.prose pre {
  background: #1c1f2b;
  color: #f7f8fc;
  padding: 1.25rem;
  border-radius: var(--aw-radius);
  overflow-x: auto;
  margin-bottom: 1.5rem;
}

.service-layout-row {
  display: flex;
  flex-wrap: wrap;
}

.service-sidebar {
  position: sticky;
  top: 6.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 2.5rem;
}

@media (min-width: 992px) {
  .service-sidebar {
    margin-top: 0;
  }
}

.sidebar-card {
  background: var(--aw-bg-alt);
  border: 1px solid var(--aw-border);
  border-radius: var(--aw-radius);
  padding: 1.5rem;
}

.sidebar-card h2 {
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.sidebar-card ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.sidebar-card a {
  color: var(--aw-purple-text);
  text-decoration: none;
}

.sidebar-cta-card {
  background: #fff;
  text-align: center;
}

.sidebar-cta-card .btn-solid-lg,
.sidebar-cta-card a.btn-solid-lg {
  width: 100%;
  text-align: center;
  padding: 1rem 1.5rem;
  color: #fff;
}

.sidebar-cta-card .btn-solid-lg:hover,
.sidebar-cta-card a.btn-solid-lg:hover {
  color: #fff;
}

.sidebar-trust-line {
  margin: 1rem 0 0;
  font-size: 0.8rem;
  color: var(--aw-text-muted);
}

.related-links-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.related-links-list a {
  display: inline-block;
  padding: 0.6rem 1.1rem;
  border-radius: 30px;
  border: 1px solid var(--aw-border);
  color: var(--aw-purple-text);
  text-decoration: none;
}

/* ---- Blog ---- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.blog-hero .blog-post-count {
  margin-top: 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--aw-purple-text);
}

.blog-topics {
  background: var(--aw-bg);
  border-bottom: 1px solid var(--aw-border);
  padding: 1.25rem 0;
}

.topic-chip-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 0;
  padding: 0;
}

.topic-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.9rem;
  border-radius: 30px;
  border: 1px solid var(--aw-border);
  background: var(--aw-bg-alt);
  color: var(--aw-text);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}

.topic-chip:hover {
  border-color: var(--aw-purple);
  color: var(--aw-purple-text);
  text-decoration: none;
}

.topic-chip-active,
.topic-chip-active:hover {
  background: var(--aw-purple);
  border-color: var(--aw-purple);
  color: #fff;
}

.topic-chip-count {
  font-size: 0.75rem;
  font-weight: 700;
  opacity: 0.75;
}

.blog-listing .section-heading {
  font-size: 1.4rem;
  margin: 0 0 1.25rem;
}

.blog-listing .section-heading:not(:first-child) {
  margin-top: 3rem;
}

/* Featured post */
.featured-post-card {
  display: block;
  background: #fff;
  border: 1px solid var(--aw-border);
  border-radius: var(--aw-radius);
  box-shadow: var(--aw-shadow);
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  border-top: 5px solid var(--aw-accent);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.featured-post-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--aw-shadow-hover);
  text-decoration: none;
  color: inherit;
}

.featured-post-body {
  padding: 2rem;
}

.featured-post-title {
  font-size: 1.6rem;
  line-height: 1.3;
  margin: 0.75rem 0 0.75rem;
}

.featured-post-desc {
  color: var(--aw-text-muted);
  font-size: 1.05rem;
  line-height: 1.6;
  margin-bottom: 1.25rem;
  max-width: 70ch;
}

@media (min-width: 992px) {
  .featured-post-body {
    padding: 2.5rem 3rem;
  }

  .featured-post-title {
    font-size: 1.9rem;
    max-width: 80%;
  }
}

/* Card grid */
.blog-card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
}

@media (min-width: 768px) {
  .blog-card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 992px) {
  .blog-card-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.blog-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #fff;
  border: 1px solid var(--aw-border);
  border-radius: var(--aw-radius);
  text-decoration: none;
  color: inherit;
  box-shadow: var(--aw-shadow);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--aw-shadow-hover);
  text-decoration: none;
  color: inherit;
}

@media (prefers-reduced-motion: reduce) {
  .featured-post-card,
  .blog-card {
    transition: none;
  }

  .featured-post-card:hover,
  .blog-card:hover {
    transform: none;
  }
}

.blog-card-accent {
  display: block;
  height: 5px;
  background: var(--tag-accent, var(--aw-purple));
}

.blog-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1.5rem;
}

.blog-card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: var(--aw-bg-alt);
  color: var(--tag-accent, var(--aw-purple));
  margin-bottom: 0.75rem;
  font-size: 0.9rem;
}

.blog-card-title {
  font-size: 1.25rem;
  line-height: 1.35;
  margin: 0.5rem 0 0.6rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-card-desc {
  color: var(--aw-text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1.25rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

.blog-card-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--aw-text-muted);
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--aw-border);
}

.blog-card-read-link {
  margin-left: auto;
  font-weight: 700;
  color: var(--aw-purple-text);
}

.blog-meta {
  color: var(--aw-text-muted);
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
}

.tag-list {
  list-style: none;
  display: flex;
  gap: 0.5rem;
  padding: 0;
  margin-top: 1rem;
}

.tag-list a {
  padding: 0.3rem 0.75rem;
  background: #fff;
  border: 1px solid var(--aw-border);
  border-radius: 30px;
  font-size: 0.8rem;
  text-decoration: none;
  color: var(--aw-purple-text);
}

.blog-card-tag {
  display: inline-block;
  align-self: flex-start;
  padding: 0.25rem 0.7rem;
  border-radius: 30px;
  background: var(--aw-bg-alt);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--tag-accent, var(--aw-purple-text));
}

.featured-post-card .blog-card-tag {
  margin-bottom: 0.25rem;
}

/* ---- Footer ---- */
.footer .decoration-city {
  z-index: 0;
  max-width: 45%;
  height: auto;
  pointer-events: none;
}

.footer .footer-grid {
  position: relative;
  z-index: 1;
}

.footer .btn-outline-sm {
  position: relative;
  z-index: 2;
}

/* ---- Contact form & layout ---- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: start;
}

@media (min-width: 992px) {
  .contact-grid {
    grid-template-columns: 1.5fr 1fr;
  }
}

.contact-card {
  background: var(--aw-bg-alt);
  border: 1px solid var(--aw-border);
  border-radius: var(--aw-radius);
  padding: 2rem;
}

.contact-card h2 {
  font-size: 1.25rem;
  margin-bottom: 1.25rem;
}

.contact-card .next-steps {
  padding-left: 1.25rem;
  margin-bottom: 1.75rem;
  color: #3f4452;
  line-height: 1.6;
}

.contact-card .next-steps li {
  margin-bottom: 0.75rem;
}

.contact-card .btn-solid-lg {
  display: block;
  text-align: center;
  width: 100%;
}

.contact-card .trust-line {
  margin-top: 1rem;
  margin-bottom: 0;
  font-size: 0.85rem;
  color: var(--aw-text-muted);
  text-align: center;
}

.contact-form {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
}

.contact-form .form-group {
  margin-bottom: 1.25rem;
}

.contact-form label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--aw-border);
  border-radius: 10px;
  font-family: inherit;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: 3px solid rgba(97, 104, 255, 0.35);
  border-color: var(--aw-purple-text);
}

.honeypot-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

#form-status {
  margin-top: 1rem;
  font-weight: 600;
}

.form-status-success {
  color: #1c8f4d;
}

.form-status-error {
  color: var(--aw-accent-dark);
}

.section-pad {
  padding: 6rem 0;
}

/* ---- Focus states & motion ---- */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--aw-purple);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---- Mobile nav ---- */
@media (max-width: 991px) {
  .navbar .offcanvas-collapse {
    position: static;
    top: auto;
    bottom: auto;
    left: auto;
    width: 100%;
    transform: none;
    -webkit-transform: none;
    transition: none;
    visibility: visible;
  }

  .navbar-collapse {
    background: #fff;
    padding: 1.25rem 1.5rem;
    border-radius: 0 0 var(--aw-radius) var(--aw-radius);
    box-shadow: 0 12px 28px rgba(28, 31, 43, 0.12);
    border: 1px solid var(--aw-border);
    border-top: none;
    margin-top: 0.5rem;
  }

  .navbar .navbar-nav {
    margin-top: 0;
    margin-bottom: 0.5rem;
  }

  .navbar .nav-item .nav-link {
    padding: 0.6rem 0;
    font-size: 1rem;
    font-weight: 500;
  }

  .navbar .dropdown-menu {
    border-left: 2px solid var(--aw-purple);
    border-radius: 0 8px 8px 0;
    padding: 0.5rem 0.75rem;
    background-color: var(--aw-bg-alt);
    margin: 0.25rem 0 0.5rem 0.5rem;
    box-shadow: none;
  }

  .navbar .dropdown-item {
    padding: 0.4rem 0.5rem;
  }

  .navbar .btn-solid-sm {
    display: block;
    text-align: center;
    width: 100%;
    margin-top: 0.75rem;
    margin-left: 0;
    padding: 0.75rem 1.25rem;
  }

  .hero-cta-group,
  .cta-band-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-cta-group a,
  .cta-band-actions a {
    text-align: center;
  }
}

html {
  overflow-x: hidden;
}

body {
  overflow-x: hidden;
}

/* Legacy .cards-1 .card sets a fixed 298px width and nth-child margins; let the grid size cards */
.service-card-row-4 .card.service-card {
	width: auto;
	max-width: none;
	margin: 0;
	min-width: 0;
}

/* ---- Responsive Mobile & Tablet Optimizations ---- */
@media (max-width: 991px) {
  .header {
    text-align: center;
    padding-top: 6.5rem;
    padding-bottom: 3.5rem;
  }

  .header .text-container {
    margin-bottom: 2.5rem;
  }

  .header .image-container {
    max-width: 540px;
    margin: 0 auto;
  }

  .basic-1 .image-container,
  .counter .image-container {
    max-width: 540px;
    margin: 0 auto 2.5rem;
    text-align: center;
  }

  .service-hero {
    text-align: center;
  }

  .service-hero .hero-cta-group {
    justify-content: center;
  }

  .service-hero-illustration {
    max-width: 500px;
    margin: 2rem auto 0;
  }

  .service-sidebar {
    position: static;
    margin-top: 2.5rem;
  }
}

@media (max-width: 767px) {
  .header .btn-solid-lg,
  .header .btn-outline-lg,
  .hero-cta-group .btn-solid-lg,
  .hero-cta-group .btn-outline-lg,
  .cta-band-actions .btn-solid-lg,
  .cta-band-actions .btn-outline-lg {
    padding: 1.125rem 1.75rem;
    font-size: 0.95rem;
    width: 100%;
  }

  .btn-solid-lg,
  .btn-outline-lg {
    padding: 1.125rem 1.75rem;
    font-size: 0.95rem;
  }

  .service-hero {
    padding-top: 3.5rem;
    padding-bottom: 2.5rem;
  }

  .service-hero-illustration img {
    max-height: 260px;
  }

  .trust-bar-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
  }

  .trust-chip {
    padding: 1.125rem 0.75rem;
  }

  .trust-chip-label {
    font-size: 0.82rem;
  }

  .topic-chip-list {
    gap: 0.5rem;
  }

  .contact-card {
    padding: 1.5rem 1.25rem;
  }
}

@media (max-width: 480px) {
  .trust-bar-grid {
    grid-template-columns: 1fr;
  }

  .service-hero-illustration img {
    max-height: 220px;
  }
}

/* ---- Use Cases dropdown: two columns on desktop, scrollable on mobile ---- */
@media (min-width: 992px) {
  .navbar .dropdown-menu.dropdown-menu-cols.show {
    display: grid;
    grid-template-columns: repeat(2, minmax(11rem, 1fr));
    column-gap: 0.5rem;
  }
  .navbar .dropdown-menu-cols .dropdown-menu-cols-full {
    grid-column: 1 / -1;
  }
}
@media (max-width: 991px) {
  .navbar .dropdown-menu.dropdown-menu-cols {
    max-height: 60vh;
    overflow-y: auto;
  }
}

/* ==========================================================================
   Content pages (use cases / products), hubs, contact aftercare, 404
   ========================================================================== */

/* Hero */
.content-hero {
  max-width: 52rem;
}

.content-hero .p-large {
  max-width: 44rem;
}

.service-hero .p-large {
  margin-bottom: 1.75rem;
}

/* Prose in the 8-col column: cap line length, keep tables scrollable */
.col-lg-8 > .prose {
  max-width: 46rem;
}

.prose > :first-child {
  margin-top: 0;
}

.prose table {
  font-size: 0.95rem;
  line-height: 1.5;
  border: 1px solid var(--aw-border);
  border-radius: 12px;
}

.prose table th {
  background: var(--aw-bg-alt);
  font-weight: 700;
  color: var(--aw-text);
  white-space: nowrap;
}

.prose table tbody tr:nth-child(even) td {
  background: var(--aw-bg-alt);
}

.prose a {
  color: var(--aw-purple-text);
}

.prose h2[id],
.prose h3[id] {
  scroll-margin-top: 6rem;
}

/* Systenics link box */
.systenics-box {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 2.5rem;
  padding: 1.125rem 1.5rem;
  max-width: 46rem;
  background: var(--aw-bg-alt);
  border: 1px solid var(--aw-border);
  border-left: 4px solid var(--aw-purple);
  border-radius: var(--aw-radius);
  font-weight: 600;
}

.systenics-box i {
  color: var(--aw-purple-text);
}

.systenics-box a {
  color: var(--aw-purple-text);
  text-decoration: none;
}

.systenics-box a:hover {
  text-decoration: underline;
}

/* Sidebar */
.sidebar-card a:hover {
  text-decoration: underline;
}

.sidebar-card ul a {
  display: block;
  line-height: 1.4;
}

@media (max-width: 991px) {
  .sidebar-toc {
    display: none;
  }

  .service-sidebar {
    margin-top: 2rem;
  }
}


/* Related links */
.related-links h2 {
  margin-bottom: 1.5rem;
}

.related-links-list {
  margin: 0;
}

.related-links-list a {
  background: #fff;
  font-weight: 600;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.related-links-list a:hover {
  border-color: var(--aw-purple);
  box-shadow: var(--aw-shadow);
}

/* Hub cards */
.hub-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 2rem 1.75rem;
  background: #fff;
  border: 1px solid var(--aw-border);
  border-radius: var(--aw-radius);
  box-shadow: var(--aw-shadow);
  color: inherit;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

a.hub-card:hover,
.hub-card-static:hover {
  transform: translateY(-6px);
  box-shadow: var(--aw-shadow-hover);
}

.hub-card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  margin-bottom: 1.25rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--aw-purple), var(--aw-purple-dark));
  color: #fff;
  font-size: 1.15rem;
}

.hub-card-title {
  font-size: 1.3rem;
  line-height: 1.3;
  margin-bottom: 0.75rem;
  color: var(--aw-text);
}

.hub-card p {
  color: var(--aw-text-muted);
  margin-bottom: 1.25rem;
}

.hub-card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: auto;
  font-weight: 600;
  color: var(--aw-accent);
  text-decoration: none;
}

.hub-card-actions {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-top: auto;
}

.hub-card-secondary {
  font-size: 0.9rem;
  color: var(--aw-purple-text);
  text-decoration: none;
}

.hub-card-secondary:hover {
  text-decoration: underline;
}

/* Contact aftercare */
.aftercare {
  max-width: 52rem;
  margin: 0 auto;
}

.aftercare h2 {
  margin-bottom: 1.5rem;
}

.aftercare-intro p {
  color: #3f4452;
  font-size: 1.0625rem;
  line-height: 1.7;
}

.aftercare-steps {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.aftercare-steps li {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  padding: 1.25rem 1.5rem;
  background: #fff;
  border: 1px solid var(--aw-border);
  border-radius: var(--aw-radius);
  box-shadow: var(--aw-shadow);
}

.aftercare-steps p {
  margin: 0;
  color: #3f4452;
  line-height: 1.65;
}

.aftercare-number {
  flex: 0 0 2.75rem;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--aw-accent), var(--aw-purple));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
}

@media (max-width: 575px) {
  .aftercare-steps li {
    gap: 1rem;
    padding: 1rem;
  }

  .aftercare-number {
    flex-basis: 2.25rem;
    width: 2.25rem;
    height: 2.25rem;
    font-size: 1rem;
  }
}

/* 404 */
.not-found-hero {
  text-align: center;
  min-height: 60vh;
  display: flex;
  align-items: center;
}

.not-found-hero > .container {
  width: 100%;
}

.not-found-code {
  font-size: clamp(4rem, 3rem + 6vw, 8rem);
  font-weight: 800;
  line-height: 1;
  margin-bottom: 0.5rem;
  background: linear-gradient(135deg, var(--aw-accent), var(--aw-purple));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.not-found-links {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

@media (max-width: 767px) {
  .not-found-links {
    flex-direction: column;
  }

  .not-found-links a {
    width: 100%;
    text-align: center;
  }
}

/* Testimonials: quote body leads, so give it the quote-mark clearance and a readable colour */
.testimonial-card .testimonial-body {
  margin-top: 1.5rem;
  color: var(--aw-text);
  font-size: 1.02rem;
  line-height: 1.65;
}

/* Breadcrumbs sit below the fixed navbar and blend into the page hero */
.breadcrumbs {
  padding: calc(70px + 1rem) 0 0;
  background: var(--aw-bg-alt, #f7f8fc);
}
.breadcrumbs ~ .service-hero {
  padding-top: 1.75rem;
}
.breadcrumb-list [aria-current="page"] {
  color: #6b7080;
}
@media (max-width: 575px) {
  .breadcrumbs { font-size: 0.8rem; }
}

/* Long sidebars (TOC + tools + CTA) scroll with the page instead of sticking */
.service-sidebar:has(.sidebar-toc) {
  position: static;
}

/* Labelled callout linking to the matching Systenics page */
.systenics-box-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #6b7080;
  margin-bottom: 0.2rem;
}

/* Tables fill the prose column on desktop; scroll horizontally only on small screens */
@media (min-width: 768px) {
  .prose table {
    display: table;
    width: 100%;
  }
}

/* Hub cards fill their grid cell so actions align along the bottom */
.hub-card { height: 100%; }

/* 404: clear the fixed navbar */
.service-hero.not-found-hero { padding-top: calc(70px + 4rem); padding-bottom: 5rem; }
