:root {
  --ml-primary: #1565c0;
  --ml-primary-dark: #0d47a1;
  --ml-primary-light: #42a5f5;
  --ml-accent: #e3f2fd;
  --ml-dark: #0a1929;
  --ml-text: #334155;
  --ml-muted: #64748b;
  --ml-white: #ffffff;
  --ml-border: #cbd5e1;
  --ml-gradient: linear-gradient(135deg, #0d47a1 0%, #1565c0 50%, #1976d2 100%);
}

* {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  color: var(--ml-text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

h1, h2, h3, h4, h5, h6 {
  font-family: "Inter", system-ui, sans-serif;
  font-weight: 700;
  color: var(--ml-dark);
}

.text-primary-brand {
  color: var(--ml-primary) !important;
}

.bg-primary-brand {
  background-color: var(--ml-primary) !important;
}

.bg-accent-light {
  background-color: var(--ml-accent);
}

.bg-dark-brand {
  background-color: var(--ml-dark);
}

.btn-primary-brand {
  background-color: var(--ml-primary);
  border-color: var(--ml-primary);
  color: var(--ml-white);
  font-weight: 600;
  padding: 0.625rem 1.5rem;
  border-radius: 0.375rem;
  transition: background-color 0.2s, border-color 0.2s, transform 0.15s;
}

.btn-primary-brand:hover,
.btn-primary-brand:focus {
  background-color: var(--ml-primary-dark);
  border-color: var(--ml-primary-dark);
  color: var(--ml-white);
}

.btn-outline-brand {
  border: 2px solid var(--ml-primary);
  color: var(--ml-primary);
  font-weight: 600;
  padding: 0.625rem 1.5rem;
  border-radius: 0.375rem;
  background: transparent;
  transition: all 0.2s;
}

.btn-outline-brand:hover {
  background-color: var(--ml-primary);
  color: var(--ml-white);
}

.btn-outline-light-brand {
  border: 2px solid var(--ml-white);
  color: var(--ml-white);
  font-weight: 600;
  padding: 0.625rem 1.5rem;
  border-radius: 0.375rem;
  background: transparent;
}

.btn-outline-light-brand:hover {
  background-color: var(--ml-white);
  color: var(--ml-primary-dark);
}

/* Navbar */
.navbar-brand {
  padding: 0;
  display: flex;
  align-items: center;
}

.brand-logo {
  height: 48px;
  width: auto;
  display: block;
}

.navbar-nav .nav-link {
  font-weight: 500;
  color: var(--ml-text);
  padding: 0.5rem 1rem !important;
  transition: color 0.2s;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: var(--ml-primary);
}

.navbar {
  border-bottom: 1px solid var(--ml-border);
  background: var(--ml-white) !important;
}

.social-follow {
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

.follow-label {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--ml-muted);
  white-space: nowrap;
}

.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  color: var(--ml-text);
  font-size: 1.125rem;
  line-height: 1;
  text-decoration: none;
  border-radius: 0.375rem;
  transition: color 0.2s, background-color 0.2s;
}

.social-icon:hover,
.social-icon:focus-visible {
  color: var(--ml-primary);
  background-color: var(--ml-accent);
}

.navbar .social-follow {
  padding: 0.5rem 0.75rem;
}

/* Hero */
.hero {
  background: var(--ml-gradient);
  color: var(--ml-white);
  padding: 6rem 0 5rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

.hero h1 {
  color: var(--ml-white);
  font-size: clamp(2rem, 5vw, 3.25rem);
  line-height: 1.15;
}

.hero .lead {
  font-size: 1.125rem;
  opacity: 0.92;
  max-width: 36rem;
}

.hero-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 2rem;
  padding: 0.375rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

.hero-image-wrap {
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
  border: 3px solid rgba(255, 255, 255, 0.2);
}

.hero-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 320px;
}

/* Section utilities */
.section-padding {
  padding: 5rem 0;
}

.section-label {
  color: var(--ml-primary);
  font-weight: 600;
  font-size: 0.8125rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  margin-bottom: 1rem;
}

/* Service cards */
.service-card {
  border: 1px solid var(--ml-border);
  border-radius: 0.75rem;
  padding: 2rem;
  height: 100%;
  background: var(--ml-white);
  transition: box-shadow 0.25s, transform 0.25s, border-color 0.25s;
}

.service-card:hover {
  box-shadow: 0 12px 32px rgba(21, 101, 192, 0.12);
  transform: translateY(-4px);
  border-color: var(--ml-primary-light);
}

.service-icon {
  width: 3rem;
  height: 3rem;
  background: var(--ml-accent);
  border-radius: 0.625rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ml-primary);
  font-size: 1.25rem;
  margin-bottom: 1.25rem;
}

/* Stats */
.stat-item {
  text-align: center;
  padding: 1.5rem;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--ml-primary);
  line-height: 1;
}

.stat-item-percent .stat-number::after {
  content: "%";
}

.stat-label {
  font-size: 0.875rem;
  color: var(--ml-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 0.5rem;
}

/* About / bio */
.bio-card {
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid var(--ml-border);
}

.bio-card img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

.credentials-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.credentials-list li {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--ml-border);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.credentials-list li:last-child {
  border-bottom: none;
}

.credentials-list li::before {
  content: "";
  width: 8px;
  height: 8px;
  background: var(--ml-primary);
  border-radius: 50%;
  flex-shrink: 0;
}

/* Testimonial */
.testimonial-card {
  background: var(--ml-white);
  border: 1px solid var(--ml-border);
  border-radius: 0.75rem;
  padding: 2rem;
  height: 100%;
}

.testimonial-card blockquote {
  font-style: italic;
  color: var(--ml-text);
  margin-bottom: 1rem;
}

/* FAQ */
.accordion-button:not(.collapsed) {
  background-color: var(--ml-accent);
  color: var(--ml-primary-dark);
  box-shadow: none;
}

.accordion-button:focus {
  box-shadow: 0 0 0 0.2rem rgba(21, 101, 192, 0.25);
}

/* Contact */
.contact-info-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.contact-info-icon {
  width: 2.75rem;
  height: 2.75rem;
  background: var(--ml-accent);
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ml-primary);
  flex-shrink: 0;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--ml-primary-light);
  box-shadow: 0 0 0 0.2rem rgba(21, 101, 192, 0.2);
}

/* Footer */
.site-footer {
  background: var(--ml-dark);
  color: rgba(255, 255, 255, 0.75);
  padding: 4rem 0 2rem;
  margin-top: auto;
}

.site-footer h5 {
  color: var(--ml-white);
  font-size: 1rem;
  margin-bottom: 1.25rem;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
  transition: color 0.2s;
}

.site-footer a:hover {
  color: var(--ml-white);
}

.footer-brand {
  line-height: 1;
}

.brand-logo-footer {
  height: 56px;
  width: auto;
  display: block;
}

.site-footer .social-follow {
  margin-top: 1rem;
}

.site-footer .follow-label {
  color: rgba(255, 255, 255, 0.65);
}

.site-footer .social-icon {
  color: rgba(255, 255, 255, 0.75);
}

.site-footer .social-icon:hover,
.site-footer .social-icon:focus-visible {
  color: var(--ml-white);
  background-color: rgba(255, 255, 255, 0.1);
}

.footer-divider {
  border-color: rgba(255, 255, 255, 0.1);
  margin: 2rem 0 1.5rem;
}

/* Page header (inner pages) */
.page-header {
  background: var(--ml-gradient);
  color: var(--ml-white);
  padding: 4rem 0 3rem;
}

.page-header h1 {
  color: var(--ml-white);
  font-size: clamp(2rem, 4vw, 2.75rem);
}

.page-header .breadcrumb {
  margin-bottom: 0;
  --bs-breadcrumb-divider-color: rgba(255, 255, 255, 0.5);
}

.page-header .breadcrumb-item a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
}

.page-header .breadcrumb-item.active {
  color: var(--ml-white);
}

/* CTA band */
.cta-band {
  background: var(--ml-gradient);
  color: var(--ml-white);
  padding: 4rem 0;
}

.cta-band h2 {
  color: var(--ml-white);
}

/* 404 page */
.error-page {
  flex: 1;
  display: flex;
  align-items: center;
}

.error-page-content {
  max-width: 36rem;
}

.error-code {
  font-size: clamp(4rem, 12vw, 6rem);
  font-weight: 800;
  line-height: 1;
  color: var(--ml-primary);
  margin-bottom: 1rem;
}

/* Process steps */
.process-step {
  text-align: center;
  padding: 1.5rem;
}

.process-number {
  width: 3rem;
  height: 3rem;
  background: var(--ml-primary);
  color: var(--ml-white);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.125rem;
  margin-bottom: 1rem;
}

@media (max-width: 991.98px) {
  .hero {
    padding: 4rem 0 3rem;
    text-align: center;
  }

  .hero .lead {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-image-wrap {
    margin-top: 2rem;
  }
}
