/* ==============================================
   ADJUTAS – Professional Design System
   Background : #FFFFFF  (white)
   Text       : #0F172A  (near-black)
   Accent     : #2563EB  (corporate blue)
   Dark       : #1D3461  (deep navy)
   ============================================== */

/* ── CSS Variables ──────────────────────────── */
:root {
  --primary:     #1D3461;
  --accent:      #2563EB;
  --accent-dark: #1D4ED8;
  --text:        #0F172A;
  --text-muted:  #475569;
  --bg:          #FFFFFF;
  --bg-subtle:   #F8FAFC;
  --border:      #E2E8F0;
  --shadow-sm:   0 1px 3px rgba(15,23,42,0.08);
  --shadow-md:   0 4px 20px rgba(15,23,42,0.10);
  --radius:      8px;
  --radius-lg:   12px;
  --font:        -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, Arial, sans-serif;
}

/* ── Reset & Base ───────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

body {
  font-family: var(--font);
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  padding-top: 70px;
  font-size: 1rem;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.25;
  color: var(--text);
  margin-top: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

img { max-width: 100%; height: auto; }

/* ── Navbar ─────────────────────────────────── */
.navbar {
  background: var(--bg) !important;
  border-bottom: 1px solid var(--border);
  height: 70px;
  padding: 0 2rem;
  box-shadow: var(--shadow-sm);
}

.navbar-brand img {
  height: 34px;
  width: auto;
}

.navbar-nav .nav-link,
.navbar-nav .nav-link.dropdown-toggle {
  color: var(--text) !important;
  font-weight: 500;
  font-size: 0.9375rem;
  padding: 0.5rem 0.875rem !important;
  letter-spacing: 0.01em;
  transition: color 0.15s;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus {
  color: var(--accent) !important;
  text-decoration: none;
}

/* Nav CTA button */
.navbar .cta .btn-dark,
.navbar .cta a.btn {
  background: var(--accent) !important;
  border-color: var(--accent) !important;
  color: #fff !important;
  font-weight: 600;
  font-size: 0.875rem;
  padding: 0.5rem 1.375rem !important;
  border-radius: var(--radius);
  transition: background 0.15s;
  text-decoration: none;
}

.navbar .cta .btn-dark:hover,
.navbar .cta a.btn:hover {
  background: var(--accent-dark) !important;
  border-color: var(--accent-dark) !important;
  text-decoration: none;
}

/* ── Megamenu ───────────────────────────────── */
.has-megamenu { position: static !important; }

.has-megamenu .dropdown-menu.megamenu {
  width: auto;
  min-width: 660px;
  max-width: 820px;
  left: auto;
  right: 0;
  transform: none;
  border: 1px solid var(--border);
  border-top: 3px solid var(--accent);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 1.75rem 2rem;
  margin-top: 0;
  color: var(--text);
}

.megamenu-callout {
  background: var(--bg-subtle);
  border-radius: var(--radius);
  padding: 1.25rem;
  height: 100%;
}

.megamenu-callout h6 {
  color: var(--text) !important;
  font-size: 0.8125rem !important;
  letter-spacing: 0.04em !important;
  margin-bottom: 0.5rem !important;
}

.megamenu-callout p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 1rem;
}

.has-megamenu .dropdown-menu.megamenu h6 {
  color: var(--text-muted);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.875rem;
}

.has-megamenu .dropdown-menu.megamenu a.dropdown-item {
  color: var(--text);
  font-size: 0.9rem;
  padding: 0.4rem 0.625rem;
  border-radius: 6px;
  font-weight: 400;
  transition: background 0.12s, color 0.12s;
}

.has-megamenu .dropdown-menu.megamenu a.dropdown-item:hover,
.has-megamenu .dropdown-menu.megamenu a.dropdown-item:focus {
  color: var(--accent);
  background: #EFF6FF;
  text-decoration: none;
}

/* ── Hero ───────────────────────────────────── */
header.hero {
  text-align: center;
  padding: 96px 24px 88px;
  max-width: 900px;
  margin: 0 auto;
}

header.hero h1 {
  font-size: clamp(1.875rem, 4.5vw, 3.125rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.15;
  color: var(--text);
  margin-bottom: 1.25rem;
}

header.hero p {
  font-size: 1.1875rem;
  color: var(--text-muted);
  max-width: 540px;
  margin: 0 auto 2.5rem;
  line-height: 1.65;
}

/* ── CTA Buttons ─────────────────────────────── */
.cta { margin-top: 1rem; }

.cta a {
  display: inline-block;
  margin: 6px;
  padding: 0.875rem 2rem;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9375rem;
  transition: all 0.15s;
  letter-spacing: 0.01em;
}

.cta a.primary,
.cta a:not(.secondary):not(.btn) {
  background: var(--accent);
  color: #ffffff;
  border: 2px solid var(--accent);
}

.cta a.primary:hover,
.cta a:not(.secondary):not(.btn):hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(37,99,235,0.35);
}

.cta a.secondary {
  background: transparent;
  border: 2px solid var(--text);
  color: var(--text);
}

.cta a.secondary:hover {
  background: var(--text);
  color: #ffffff;
  text-decoration: none;
}

/* ── Screenshot Section ─────────────────────── */
.screenshot-section {
  background: var(--bg-subtle);
  padding: 80px 24px;
  text-align: center;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-left: 0;
  margin-right: 0;
  max-width: 100%;
}

.screenshot-section h2 {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.screenshot-section p {
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  font-size: 1.0625rem;
}

.screenshot-section img {
  max-width: 960px;
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 48px rgba(15,23,42,0.12);
  border: 1px solid var(--border);
}

/* ── Content Sections (homepage) ──────────────── */
section:not(.screenshot-section) {
  padding: 80px 24px;
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}

section:not(.screenshot-section) > h2 {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}

/* ── Features Grid ───────────────────────────── */
.features-grid, .industries, .steps, .feature-cards {
  display: grid;
  gap: 24px;
}

.features-grid {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  margin-top: 2.5rem;
}

.industries, .steps, .feature-cards {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  margin-top: 1.875rem;
}

.features-grid > div {
  padding: 28px 24px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  border-top: 3px solid var(--accent);
  background: var(--bg);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s, transform 0.2s;
}

.features-grid > div:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.features-grid strong {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
}

.features-grid > div br { display: none; }

/* ── Customer Logos Section ──────────────────── */
.customer-logos-section {
  padding: 60px 24px;
  text-align: center;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}

.customer-logos-section h2 {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
}

.customer-logos-section .row {
  align-items: center;
  justify-content: center;
}

.customer-logos-section img {
  filter: grayscale(100%);
  opacity: 0.6;
  transition: opacity 0.2s, filter 0.2s;
}

.customer-logos-section img:hover {
  filter: grayscale(0%);
  opacity: 1;
}

/* ── Blog Card ───────────────────────────────── */
.custom-shadow {
  padding: 1.75rem 0;
}

.custom-shadow h2 {
  font-size: 1.3125rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  border-bottom: none;
  padding-bottom: 0;
  margin-top: 0;
}

.custom-shadow h2 a {
  color: var(--text) !important;
  font-weight: 700;
  text-decoration: none;
}

.custom-shadow h2 a:hover {
  color: var(--accent) !important;
  text-decoration: none;
}

.custom-shadow small a {
  color: var(--text-muted);
}

.custom-shadow p:last-child a {
  color: var(--accent);
  font-weight: 600;
  font-size: 0.875rem;
}

/* ── Interior Page Content ───────────────────── */
main.container {
  max-width: 880px;
}

main h1 {
  font-size: 2.25rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--primary);
  margin-bottom: 0.75rem;
}

main h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
}

main h3 {
  font-size: 1.3125rem;
  font-weight: 700;
  color: var(--text);
  margin-top: 2rem;
  margin-bottom: 0.5rem;
}

main h4 {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--text);
  margin-top: 1.5rem;
  margin-bottom: 0.375rem;
}

main h5 {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 1.5rem;
  margin-bottom: 0.375rem;
}

main p {
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 1rem;
}

main p.lead {
  font-size: 1.125rem;
  color: var(--text-muted);
  line-height: 1.75;
}

main ul, main ol {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

main ul li, main ol li {
  color: var(--text-muted);
  margin-bottom: 0.5rem;
  line-height: 1.75;
}

main a:not(.btn):not(.cta) {
  color: var(--accent);
}

main a:not(.btn):not(.cta):hover {
  color: var(--accent-dark);
  text-decoration: underline;
}

main b, main strong {
  color: var(--text);
}

/* ── Bootstrap btn-dark Override ─────────────── */
.btn.btn-dark,
button.btn-dark,
a.btn.btn-dark {
  background-color: var(--accent) !important;
  border-color: var(--accent) !important;
  color: #ffffff !important;
  font-weight: 600;
  border-radius: var(--radius);
  transition: background 0.15s, transform 0.15s, box-shadow 0.15s;
}

.btn.btn-dark:hover,
button.btn-dark:hover,
a.btn.btn-dark:hover {
  background-color: var(--accent-dark) !important;
  border-color: var(--accent-dark) !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(37,99,235,0.3);
  text-decoration: none;
}

/* ── Testimonial ─────────────────────────────── */
.testimonial {
  font-style: italic;
  border-left: 4px solid var(--accent);
  padding-left: 1.25rem;
  color: var(--text-muted);
  margin: 1.5rem 0;
}

/* ── Contact Section Headings ────────────────── */
main h5[align="center"] {
  font-size: 0.875rem;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

/* ── Footer ──────────────────────────────────── */
footer.bg-body-tertiary {
  background: #F1F5F9 !important;
  color: var(--text);
  border-top: 1px solid var(--border);
  padding-bottom: 0 !important;
}

footer h3 {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

footer p {
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
  color: var(--text);
  line-height: 1.65;
}

footer a {
  color: var(--text);
  text-decoration: none;
  font-size: 0.875rem;
  line-height: 2;
  transition: color 0.12s;
}

footer a:hover,
footer a:focus {
  color: var(--accent);
  text-decoration: none;
}

/* Footer bottom dark bar */
.footer-bottom {
  background: var(--primary);
  margin-top: 3rem;
  padding: 1.25rem 1rem;
  text-align: center;
  font-size: 0.8125rem;
}

.footer-bottom p,
.footer-bottom p.mb-0 {
  color: #94A3B8;
  font-size: 0.8125rem;
  margin: 0;
}

.footer-bottom a {
  color: #94A3B8;
  font-size: 0.8125rem;
  line-height: 1;
}

.footer-bottom a:hover {
  color: #ffffff;
  text-decoration: none;
}

/* ── Capability Cards (Feature Pages) ────────── */
.capability-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 1.5rem;
  margin-bottom: 2.5rem;
}

.capability-card {
  padding: 1.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-subtle);
}

.capability-card h5 {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--text);
  text-transform: none;
  letter-spacing: 0;
  margin-top: 0;
  margin-bottom: 0.5rem;
}

.capability-card p {
  margin-bottom: 0;
  font-size: 0.9rem;
}

/* ── FAQ Styling ─────────────────────────────── */
.faq-section {
  margin-bottom: 3rem;
}

.faq-section-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--primary);
  padding-bottom: 0.625rem;
  border-bottom: 2px solid var(--accent);
  margin-bottom: 0;
  display: inline-block;
}

.faq-item {
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--border);
}

.faq-item:last-child { border-bottom: none; }

.faq-item h5 {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--text);
  text-transform: none;
  letter-spacing: 0;
  margin-top: 0;
  margin-bottom: 0.5rem;
}

.faq-item p { margin-bottom: 0; }

/* ── Button Sharpness (override rounded corners) */
.cta a,
.cta a.primary,
.cta a.secondary,
.btn.btn-dark,
button.btn-dark,
a.btn.btn-dark,
.navbar .cta .btn-dark,
.navbar .cta a.btn {
  border-radius: 4px !important;
  letter-spacing: 0.025em;
}

/* ── Image Placeholders ──────────────────────── */
.img-placeholder {
  background: var(--bg-subtle);
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 3.5rem 2rem;
  text-align: center;
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0.5rem 0;
}

.img-placeholder p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.875rem;
  font-weight: 500;
  font-style: italic;
}

/* ── Stats Bar (Homepage) ────────────────────── */
.stats-bar {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 2.5rem 1rem;
  background: var(--bg);
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 0.375rem;
  letter-spacing: -0.03em;
}

.stat-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

/* ── Responsive ──────────────────────────────── */
@media (max-width: 991.98px) {
  .navbar {
    height: auto;
    padding: 0.875rem 1.25rem;
  }

  .has-megamenu .dropdown-menu.megamenu {
    width: 100%;
    max-width: 100%;
    border: 1px solid var(--border);
    border-top: 3px solid var(--accent);
    box-shadow: none;
    margin-top: 0.5rem;
    border-radius: var(--radius);
  }
}

@media (max-width: 767.98px) {
  body { padding-top: 62px; }

  header.hero {
    padding: 60px 20px 52px;
  }

  header.hero h1 {
    font-size: 1.75rem;
    letter-spacing: -0.02em;
  }

  header.hero p {
    font-size: 1.0625rem;
  }

  section:not(.screenshot-section) {
    padding: 56px 20px;
  }

  .screenshot-section { padding: 56px 20px; }

  .features-grid { grid-template-columns: 1fr; }

  main h1 { font-size: 1.75rem; }
  main h2 { font-size: 1.3125rem; }

  .customer-logos-section { padding: 44px 20px; }

  footer .row > div { margin-bottom: 2.5rem; }
}
