/* =========================================================
   NL Migration — styles
   Brand: #3E63D2   Neutrals: gray scale below
   ========================================================= */

:root {
  --brand: #3E63D2;
  --brand-dark: #2f4fb0;
  --brand-tint: #eef1fc;

  --ink: #1a1c22;      /* headings / primary text */
  --body: #31343b;     /* body text */
  --muted: #44474e;    /* secondary text */
  --line: #e4e6eb;     /* borders */
  --surface: #f5f6f8;  /* alt section bg */
  --card: #eceef2;     /* card bg */
  --white: #ffffff;

  --radius: 10px;
  --radius-lg: 16px;
  --maxw: 1120px;
  --gutter: 24px;

  --shadow-sm: 0 1px 2px rgba(20, 22, 30, .06);
  --shadow-md: 0 8px 24px rgba(20, 22, 30, .08);

  --font-display: "Spline Sans", system-ui, sans-serif;
  --font-body: "Spline Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--body);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  padding: 8px 20px;
  border-radius: var(--radius);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background .18s ease, color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.btn-primary {
  background: var(--brand);
  color: #fff;
}
.btn-primary:hover { background: var(--brand-dark); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-outline {
  background: transparent;
  color: var(--brand);
  border-color: var(--brand);
}
.btn-outline:hover { background: var(--brand); color: #fff; transform: translateY(-1px); }
.btn-lg { padding: 8px 20px; font-size: 16px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.9);
  backdrop-filter: saturate(160%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: 68px;
}
.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  text-decoration: none;
  color: var(--ink);
}
.brand-mark {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 26px;
  letter-spacing: 1px;
  line-height: 1;
}
.brand-bar { color: var(--brand); margin: 0 1px; font-weight: 400; }
.brand-sub {
  font-family: var(--font-body);
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--muted);
}
.brand-logo {
  height: 40px;
  width: auto;
  display: block;
}
.footer-logo {
  height: 80px;
  margin-bottom: 16px;
}

.nav {
  display: flex;
  gap: 30px;
}
.nav a {
  text-decoration: none;
  color: var(--body);
  font-weight: 500;
  font-size: 15px;
  position: relative;
  padding: 4px 0;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 2px;
  background: var(--brand);
  transition: width .2s ease;
}
.nav a:hover { color: var(--ink); }
.nav a:hover::after { width: 100%; }

.btn-call svg { flex: none; }

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 42px; height: 42px;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 20px; height: 2px;
  background: var(--ink);
  transition: transform .25s ease, opacity .2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 12px var(--gutter) 20px;
  border-top: 1px solid var(--line);
}
.mobile-nav a {
  text-decoration: none;
  color: var(--body);
  font-weight: 500;
  padding: 12px 4px;
  border-bottom: 1px solid var(--line);
}
.mobile-nav a:last-of-type { border: none; margin-top: 8px; justify-content: center; }
.mobile-nav a.btn-primary {
  color: #ffffff;
}
.mobile-nav.open { display: flex; }

/* ---------- Hero ---------- */
.hero {
  background:
    linear-gradient(rgba(255, 255, 255, .8), rgba(255, 255, 255, .8)),
    url("images/hero.jpg");
  background-size: cover;
  background-position: center;
  position: relative;
}
.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 120px;
  background: linear-gradient(to bottom, rgba(255,255,255,0), #ffffff);
  pointer-events: none;
}
.hero-inner {
  text-align: center;
  padding: 90px var(--gutter) 130px; /* ideal padding is 120px */
}
.hero-eyebrow {
  font-size: 16px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--brand);
  font-weight: 600;
  margin: 0 0 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}
.hero-eyebrow::before,
.hero-eyebrow::after {
  content: "";
  width: 40px;
  height: 1px;
  background: currentColor;
}
.hero h1 {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--ink);
  font-size: clamp(34px, 6vw, 60px);
  line-height: 1.08;
  letter-spacing: -0.5px;
  margin: 0 0 20px;
}
.hero-lead {
  font-size: 18px;
  color: var(--muted);
  max-width: 540px;
  margin: 0 auto 32px;
}
/* ---------- Highlights bar ---------- */
.highlights {
  position: relative;
  margin-top: -48px;
  z-index: 5;
}
.highlights-bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.highlight {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 24px 30px;
  position: relative;
}
.highlight:not(:first-child)::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  height: 56%;
  width: 1px;
  background: var(--line);
}
.highlight-icon {
  flex: none;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--brand-tint);
  color: var(--brand);
}
.highlight-text { display: flex; flex-direction: column; }
.highlight-number {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 22px;
  color: var(--ink);
  line-height: 1.2;
}
.highlight-label {
  font-size: 13.5px;
  color: var(--muted);
  margin-top: 2px;
}

@media (max-width: 760px) {
  .highlights-bar { grid-template-columns: 1fr; }
  .highlight:not(:first-child)::before { display: none; }
}
/* ---------- Sections ---------- */
.section { padding: 88px 0; }
.section-alt { background: var(--surface); }
.section-title {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--ink);
  font-size: clamp(28px, 4vw, 40px);
  text-align: center;
  letter-spacing: -0.3px;
  margin: 0 0 12px;
}
.section-title.left { text-align: left; }
.section-intro {
  text-align: center;
  color: var(--muted);
  font-size: 17px;
  max-width: 560px;
  margin: 0 auto 52px;
}

/* ---------- Services grid ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 30px 28px;
  position: relative;
  overflow: hidden;   
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--brand);
}
.card h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 21px;
  color: var(--ink);
  margin: 0 0 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--brand);
  display: inline-block;
}
.card ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.card li {
  position: relative;
  padding-left: 18px;
  margin-bottom: 8px;
  font-size: 14.5px;
  color: var(--body);
}
.card li::before {
  content: "";
  position: absolute;
  left: 0; top: 9px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--brand);
}
.card-watermark {
  position: absolute;
  right: -15px;
  bottom: 12px;
  color: var(--brand);
  opacity: 0.07;
  pointer-events: none;
}
.card-watermark svg {
  width: 90px;
  height: 90px;
  display: block;
}
/* ---------- Why Choose Us ---------- */
.about-inner {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 56px;
  align-items: center;
}
.about-copy p { margin: 0 0 16px; font-size: 16px; }
.about-copy .btn { margin-top: 12px; }
.text-link { color: var(--brand); font-weight: 600; text-decoration: none; }
.text-link:hover { text-decoration: underline; }
.image-callout-wrap img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
}

.image-callout-wrap {
  position: relative;
  display: inline-block;
  max-width: 100%;
}

.callout-bubble {
  position: absolute;
  left: 24px;
  bottom: 24px;
  background: var(--card);
  color: var(--ink);
  line-height: 1.5;
  padding: 16px 22px;
  border-radius: 12px;
  max-width: 260px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.callout-bubble strong {
  font-weight: 600;
}

/* ---------- Testimonials ---------- */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.quote {
  margin: 0;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 30px 28px;
  box-shadow: var(--shadow-sm);
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;  
}
.quote::before {
  content: "\201C";
  font-family: var(--font-display);
  font-size: 60px;
  line-height: 1;
  color: var(--brand);
  opacity: .25;
  position: absolute;
  top: 14px; left: 20px;
}
.quote blockquote {
  margin: 24px 0 16px;
  font-size: 15.5px;
  color: var(--body);
  flex: 1;  
}
.quote figcaption {
  font-weight: 600;
  color: var(--ink);
  font-size: 14px;
  white-space: nowrap;
  margin-top: auto;  
}

/* ---------- Contact ---------- */
.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: stretch;
}
.contact-media img {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
}
.contact-panel {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-sm);
}
.contact-lead { color: var(--muted); margin: 0 0 24px; }
.contact-form { display: grid; gap: 16px; }
.field { display: grid; gap: 6px; }
.field label {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}
.field input,
.field select,
.field textarea {
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--ink);
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(62,99,210,.15);
}
.field textarea { resize: vertical; }
.req { color: #d64545; }
.contact-form .btn { justify-self: start; margin-top: 4px; }
/* honeypot hidden from humans */
.hp { position: absolute; left: -9999px; }

.form-status {
  margin-top: 12px;
  padding: 10px 14px;
  border-radius: 6px;
  font-size: 0.95rem;
}
.form-status.success {
  background: #e8f5e9;
  color: #1b5e20;
}
.form-status.error {
  background: #fdecea;
  color: #b71c1c;
}

/* ---------- Footer ---------- */
.site-footer {
  background: #ffffff;;
  padding-top: 80px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 48px;
  padding-bottom: 60px;
}

.footer-right {
  display: flex;
  flex-direction: column;
}

.footer-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  padding-bottom: 28px;
}

.footer-partners {
  display: flex;
  align-items: center;
  justify-content: space-between; 
  gap: 60px;
  padding-top: 12px;
  padding-right: 80px;
}
.footer-partners img {
  height: 60px;
  width: auto;
  object-fit: contain;
  display: block;
}
.footer-partners a:hover img {
  opacity: 1;
}

.footer-partners img.logo-lg {
  height: 75px;   /* larger MIA logo */
}

@media (max-width: 560px) {
  .footer-partners {
    flex-wrap: nowrap;
    gap: 4px;
  }
  .footer-partners a {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    min-width: 0;
  }
  .footer-partners img {
    max-width: 100%;
    max-height: 40px;
    width: auto;
    height: auto;
    object-fit: contain;
  }
}

.footer-mark { font-size: 40px; display: block; }
.footer-brand .brand-sub { display: block; margin: 20px 0 16px; }
.footer-tagline { color: var(--muted); font-size: 16px; max-width: 260px; margin: 0; }
.footer-contact { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; align-content: start; }
.footer-contact li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14.5px;
  color: var(--body);
}
.footer-contact svg { color: var(--brand); flex: none; }
.footer-contact a { text-decoration: none; color: var(--body); }
.footer-contact a:hover { color: var(--brand); }
.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 22px;
  padding-bottom: 28px;
}
.footer-bottom p { margin: 0; font-size: 13px; color: var(--muted); text-align: center; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonials-grid { grid-template-columns: 1fr; }
  .about-inner { grid-template-columns: 1fr; gap: 32px; }
  .contact-inner { grid-template-columns: 1fr; }
  .contact-media img { min-height: 260px; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-details { grid-template-columns: 1fr 1fr; }
  .footer-partners { flex-wrap: wrap; gap: 32px; padding-right: 0; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 720px) {
  .nav, .btn-call { display: none; }
  .nav-toggle { display: flex; }
  .hero-inner { padding: 60px var(--gutter) 100px; }
  .section { padding: 64px 0; }
}

@media (max-width: 560px) {
  .services-grid { grid-template-columns: 1fr; }
  .site-footer {padding-top: 40px;}
  .footer-inner { grid-template-columns: 1fr; padding-bottom: 60px;  }
  .footer-details { grid-template-columns: 1fr; gap: 20px; }
  .footer-partners { padding-right: 0; }
  .footer-partners img { height: 40px; }
}

/* ---------- Accessibility ---------- */
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
