:root {
  --brand-primary: #2563eb;
  --brand-secondary: #06b6d4;
  --brand-font: "Jost", system-ui, -apple-system, Segoe UI, Roboto, Helvetica,
    Arial, "Apple Color Emoji", "Segoe UI Emoji", sans-serif;
  --bs-primary: var(--brand-primary);
  --surface: #f8f9fb;
}

body {
  font-family: var(--brand-font);
  background: linear-gradient(180deg, #ffffff 0%, #fafbfc 100%);
  min-height: 100vh;
}

h1,
h2 {
  font-family: var(--brand-font);
  font-weight: 700;
}

h3,
h4,
h5,
h6 {
  font-family: var(--brand-font);
  font-weight: 600;
}

.navbar-brand {
  font-family: var(--brand-font);
  font-weight: 600;
}

.nav-link {
  font-family: var(--brand-font);
  font-weight: 400;
}

a {
  color: var(--brand-primary);
}

.btn-primary {
  --bs-btn-bg: var(--brand-primary);
  --bs-btn-border-color: var(--brand-primary);
}
.btn-primary:hover {
  --bs-btn-hover-bg: #1d4ed8;
  --bs-btn-hover-border-color: #1d4ed8;
}

/* Header + footer surface */
.site-header.bg-light,
footer.bg-light {
  background-color: var(--surface) !important;
}

/* Banner */
.header-banner {
  background: url("/assets/img/header-banner.jpg") center/cover no-repeat;
  height: 160px;
}

/* Footer sizing and alignment */
.site-footer {
  background-color: var(--surface) !important;
}
.site-footer .footer-grid {
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  align-items: stretch;
  gap: 16px;
}
.site-footer .footer-col {
  display: flex;
}
.site-footer .footer-col--brand {
  align-items: center;
  position: relative;
}
.site-footer .footer-col--center {
  align-items: flex-end;
  justify-content: center;
  text-align: center;
}
.site-footer .footer-col--links {
  align-items: stretch;
  justify-content: flex-end;
  text-align: left;
}
.site-footer .footer-col--links > div {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
/* Logo fills available column height but doesn't set it */
.site-footer .footer-logo {
  position: absolute;
  inset-block: 0;
  align-self: stretch;
  height: 100%;
  min-height: 100px;
  max-height: 100%;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}
.site-footer .footer-links .footer-link {
  color: inherit;
  text-decoration: none;
}
.site-footer .footer-links .footer-link:hover {
  color: var(--brand-primary);
  text-decoration: underline;
}
.site-footer .copyright {
  line-height: 1.8;
  font-weight: 600;
}

/* Enhanced Cards */
.enhanced-card {
  background: #fff;
  border-radius: 12px;
  padding: 1rem;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.enhanced-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(
    90deg,
    var(--brand-primary),
    var(--brand-secondary)
  );
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.enhanced-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.enhanced-card:hover::before {
  transform: scaleX(1);
}

/* Generic card content elements */
.card-icon {
  background: linear-gradient(135deg, #2563eb, #06b6d4);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}
.card-icon-lg {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  font-size: 24px;
}
.card-icon-sm {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  font-size: 20px;
}

.card-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #1a1a1a;
}

.card-description {
  color: #666;
  line-height: 1.6;
  margin: 0;
}

/* Universal page content styling */
.page-content {
  max-width: 800px;
  margin: 0 auto;
}

.page-content h1 {
  font-weight: 700;
  color: #1a1a1a;
  border-bottom: 3px solid var(--brand-primary);
  padding-bottom: 0.5rem;
}

.page-content h2 {
  font-weight: 600;
  color: #2d3748;
  margin-top: 2rem;
}

.page-content p {
  color: #4a5568;
  line-height: 1.7;
  margin-bottom: 1rem;
}

.page-content a {
  color: var(--brand-primary);
  font-weight: 500;
}

.page-content a:hover {
  color: var(--brand-secondary);
}

/* 404 page center alignment */
.page-content.center {
  text-align: center;
}

.client-card,
.contact-card {
  background: #fff;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  transition: all 0.3s ease;
}

.client-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

/* feature-icon replaced by .card-icon.card-icon-sm */

.contact-card {
  background: linear-gradient(135deg, #f8fafc, #e2e8f0);
  border: 1px solid rgba(37, 99, 235, 0.1);
}

/* Client logos */
.client-logo {
  max-width: 100%;
  height: 56px;
  object-fit: contain;
  filter: grayscale(0%);
}

/* ===== RESPONSIVE DESIGN ===== */

/* Mobile devices (max-width: 576px) */
@media (max-width: 576px) {
  .header-banner {
    height: 96px;
  }
}

/* Tablet and mobile (max-width: 991.98px) */
@media (max-width: 991.98px) {
  .site-footer .footer-grid {
    grid-template-columns: 1fr;
  }
  .site-footer .footer-col--links {
    justify-content: center;
    text-align: center;
  }
  .site-footer .footer-col--brand {
    justify-content: center;
  }
  .site-footer .footer-logo {
    position: static;
    height: auto;
    max-height: 140px;
    min-height: 100px;
    align-self: center;
  }
  .site-header .navbar-collapse {
    align-items: flex-end;
  }
  .site-header .navbar-nav {
    width: 100%;
    align-items: flex-end;
  }
  .site-header .navbar-nav .nav-link {
    text-align: right;
  }
}

/* Large desktop (min-width: 992px) */
@media (min-width: 992px) {
  .client-logo {
    height: 72px;
  }
}
