/* ==========================================================================
   Meghaz Inc. — new theme (2026 redesign)
   Clean & modern, light, Meghaz blue. Bootstrap 5, no jQuery.
   Primary blue #3498db is the existing brand blue, kept as-is.
   ========================================================================== */

:root {
  --mh-blue: #3498db;
  --mh-blue-dark: #217dbb;
  --mh-blue-deep: #1b6ea6;
  --mh-navy: #102a43;
  --mh-ink: #334e68;
  --mh-muted: #627d98;
  --mh-line: #dfe9f2;
  --mh-soft: #f4f8fb;
  --mh-tint: #e9f4fc;
  --mh-radius: 1rem;
  --mh-shadow: 0 10px 30px rgba(16, 42, 67, .08);
  --mh-shadow-lg: 0 18px 44px rgba(16, 42, 67, .12);
}

html { scroll-behavior: smooth; }

body {
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--mh-ink);
  background: #fff;
  font-size: 1rem;
  line-height: 1.65;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: "Poppins", "Inter", system-ui, sans-serif;
  color: var(--mh-navy);
  font-weight: 600;
  line-height: 1.25;
}

a { color: var(--mh-blue); text-decoration: none; }
a:hover { color: var(--mh-blue-dark); }

::selection { background: var(--mh-blue); color: #fff; }

img { max-width: 100%; }

/* ---------- Buttons ---------- */
.btn {
  border-radius: 999px;
  font-weight: 600;
  padding: .65rem 1.5rem;
  font-size: .95rem;
}
.btn-primary {
  background: var(--mh-blue);
  border-color: var(--mh-blue);
}
.btn-primary:hover, .btn-primary:focus {
  background: var(--mh-blue-dark);
  border-color: var(--mh-blue-dark);
}
.btn-outline-primary {
  color: var(--mh-blue);
  border-color: var(--mh-blue);
}
.btn-outline-primary:hover {
  background: var(--mh-blue);
  border-color: var(--mh-blue);
}
.btn-outline-light:hover { color: var(--mh-blue-deep); }

/* ---------- Section scaffolding ---------- */
.section { padding: 4.5rem 0; }
/* Contain a wide (g-5) row inside its section so it cannot widen the
   layout viewport on phones. Used on the careers intro section; the
   home hero already gets this from .hero's own overflow:hidden. Do NOT
   put overflow-x:hidden/clip on <html> instead — that breaks the sticky
   header in Chrome (verified). */
.section-clip { overflow: hidden; }
.section-soft { background: var(--mh-soft); }
.eyebrow {
  display: inline-block;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--mh-blue);
  margin-bottom: .6rem;
}
.section-head { max-width: 46rem; margin: 0 auto 2.75rem; text-align: center; }
.section-head h2 { font-size: 2rem; margin-bottom: .6rem; }
.section-head p { color: var(--mh-muted); margin-bottom: 0; }
.section-head.text-start { margin-left: 0; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1030;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--mh-line);
  transition: box-shadow .25s ease;
}
.site-header.scrolled { box-shadow: 0 6px 24px rgba(16, 42, 67, .09); }
.site-header .navbar { padding: .7rem 0; }
.site-header .navbar-brand img { height: 52px; width: auto; }
.site-header .nav-link {
  color: var(--mh-navy);
  font-weight: 500;
  font-size: .98rem;
  padding: .5rem .85rem !important;
  border-radius: .5rem;
}
.site-header .nav-link:hover { color: var(--mh-blue); }
.site-header .nav-link.active { color: var(--mh-blue); }
.site-header .navbar-toggler { border: 1px solid var(--mh-line); border-radius: .6rem; padding: .4rem .6rem; }
.site-header .navbar-toggler:focus { box-shadow: 0 0 0 .2rem rgba(52, 152, 219, .25); }
.site-header .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23102a43' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ---------- Page hero (breadcrumbs) ---------- */
.page-hero {
  background: linear-gradient(180deg, var(--mh-tint) 0%, #fff 100%);
  border-bottom: 1px solid var(--mh-line);
  padding: 3.5rem 0 2.75rem;
}
.page-hero h1 { font-size: 2.1rem; margin-bottom: .4rem; }
.page-hero p.lead { color: var(--mh-muted); margin-bottom: 0; }
.page-hero .breadcrumb { margin-bottom: 0; font-size: .9rem; }
.page-hero .breadcrumb a { color: var(--mh-muted); }
.page-hero .breadcrumb-item.active { color: var(--mh-blue); font-weight: 500; }

/* ---------- Hero (home) ---------- */
.hero {
  background: linear-gradient(135deg, #fff 0%, var(--mh-tint) 58%, #e2f0fa 100%);
  padding: 4.5rem 0 5rem;
  overflow: hidden;
}
.hero h1 { font-size: 2.9rem; font-weight: 700; letter-spacing: -.01em; }
.hero h1 .text-blue { color: var(--mh-blue); }
.hero .lead { color: var(--mh-muted); font-size: 1.15rem; max-width: 34rem; }
.hero-img-wrap {
  background: #fff;
  border: 1px solid var(--mh-line);
  border-radius: 1.5rem;
  box-shadow: var(--mh-shadow-lg);
  padding: 1.25rem;
  position: relative;
}
.hero-img-wrap img { border-radius: .9rem; display: block; margin: 0 auto; }
.hero-chip {
  position: absolute;
  left: -1rem;
  bottom: 1.5rem;
  background: #fff;
  border: 1px solid var(--mh-line);
  border-radius: .9rem;
  box-shadow: var(--mh-shadow);
  padding: .65rem 1rem;
  font-size: .85rem;
  font-weight: 600;
  color: var(--mh-navy);
}
.hero-chip span { color: var(--mh-blue); font-size: 1.15rem; font-weight: 700; }

/* ---------- Cards ---------- */
.card-soft {
  background: #fff;
  border: 1px solid var(--mh-line);
  border-radius: var(--mh-radius);
  box-shadow: 0 2px 10px rgba(16, 42, 67, .04);
}
.service-card {
  background: #fff;
  border: 1px solid var(--mh-line);
  border-radius: 1.25rem;
  padding: 1.75rem 1.6rem;
  height: 100%;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--mh-shadow);
  border-color: #bcdcf2;
}
.service-card h3, .service-card h4 { font-size: 1.12rem; margin: 1rem 0 .75rem; }
.service-card ul { list-style: none; padding: 0; margin: 0; }
.service-card ul li {
  padding: .28rem 0 .28rem 1.55rem;
  position: relative;
  color: var(--mh-ink);
  font-size: .95rem;
}
.service-card ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .72em;
  width: .5rem;
  height: .5rem;
  border-radius: 50%;
  background: var(--mh-blue);
  opacity: .85;
}
.icon-tile {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 1rem;
  background: var(--mh-tint);
  color: var(--mh-blue);
  font-size: 1.7rem;
}
.icon-tile i { line-height: 1; }

/* ---------- Stats ---------- */
.stat-card {
  background: #fff;
  border: 1px solid var(--mh-line);
  border-radius: 1.25rem;
  padding: 1.75rem 1.25rem;
  text-align: center;
  height: 100%;
}
.stat-card .stat-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: var(--mh-tint);
  color: var(--mh-blue);
  font-size: 1.4rem;
  margin-bottom: .8rem;
}
.stat-card .stat-num {
  font-family: "Poppins", sans-serif;
  font-size: 2.3rem;
  font-weight: 700;
  color: var(--mh-navy);
  line-height: 1.1;
}
.stat-card .stat-label { color: var(--mh-muted); font-weight: 500; margin-top: .25rem; }

/* ---------- Clients ---------- */
.client-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 5.25rem;
  padding: .75rem;
  background: #fff;
  border: 1px solid var(--mh-line);
  border-radius: 1rem;
}
.client-logo img {
  max-height: 3.25rem;
  max-width: 9rem;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: grayscale(1);
  opacity: .62;
  transition: filter .25s ease, opacity .25s ease;
}
.client-logo:hover img { filter: grayscale(0); opacity: 1; }

/* ---------- About / process / advantages ---------- */
.about-card {
  background: #fff;
  border: 1px solid var(--mh-line);
  border-radius: 1.25rem;
  padding: 2rem;
  height: 100%;
  box-shadow: 0 2px 10px rgba(16, 42, 67, .04);
}
.about-card h3 { font-size: 1.3rem; margin-bottom: .75rem; }
.process-step { text-align: center; }
.process-step .step-num {
  width: 3.5rem;
  height: 3.5rem;
  margin: 0 auto .9rem;
  border-radius: 50%;
  background: var(--mh-blue);
  color: #fff;
  font-family: "Poppins", sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 18px rgba(52, 152, 219, .35);
}
.process-step h4 { font-size: 1.05rem; }
.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li { padding: .45rem 0 .45rem 2rem; position: relative; font-weight: 500; color: var(--mh-navy); }
.check-list li i {
  position: absolute;
  left: 0;
  top: .5rem;
  color: var(--mh-blue);
  font-size: 1.25rem;
}
.advantage-row { padding: 1.6rem 0; border-bottom: 1px solid var(--mh-line); }
.advantage-row:last-child { border-bottom: 0; }
.advantage-row h3 { font-size: 1.2rem; margin-bottom: .25rem; }
.advantage-row p { color: var(--mh-muted); margin-bottom: 0; }
.advantage-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: .8rem;
  background: var(--mh-tint);
  color: var(--mh-blue);
  font-size: 1.35rem;
  margin-bottom: .7rem;
}

/* ---------- Careers ---------- */
.snap-carousel {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  border-radius: 1.25rem;
  scrollbar-width: none;
}
.snap-carousel::-webkit-scrollbar { display: none; }
.snap-carousel .snap-slide {
  flex: 0 0 100%;
  scroll-snap-align: start;
}
.snap-carousel .snap-slide img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 1.25rem;
}
.carousel-dots { display: flex; gap: .45rem; justify-content: center; margin-top: .9rem; }
.carousel-dots button {
  width: .65rem;
  height: .65rem;
  border-radius: 50%;
  border: 0;
  background: #c8d9e8;
  padding: 0;
  cursor: pointer;
}
.carousel-dots button.active { background: var(--mh-blue); }
.filter-card {
  background: #fff;
  border: 1px solid var(--mh-line);
  border-radius: 1.25rem;
  box-shadow: 0 2px 10px rgba(16, 42, 67, .04);
  padding: 1.25rem;
}
.resume-banner {
  background: var(--mh-tint);
  border: 1px solid #cfe6f6;
  border-radius: 1rem;
  padding: 1.1rem 1.25rem;
  text-align: center;
}
.resume-banner h4 { margin: 0; font-size: 1.05rem; font-weight: 600; }
.resume-banner a { color: var(--mh-blue-deep); text-decoration: underline; font-weight: 700; }
.job-card {
  background: #fff;
  border: 1px solid var(--mh-line);
  border-radius: 1.1rem;
  padding: 1.4rem 1.5rem;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.job-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--mh-shadow);
  border-color: #bcdcf2;
}
.job-card h3, .job-card h4 { font-size: 1.15rem; margin-bottom: .3rem; }
.job-card h3 a, .job-card h4 a { color: var(--mh-navy); }
.job-card h3 a:hover, .job-card h4 a:hover { color: var(--mh-blue); }
.job-code {
  display: inline-block;
  font-size: .78rem;
  font-weight: 600;
  color: var(--mh-blue-deep);
  background: var(--mh-tint);
  border-radius: 999px;
  padding: .15rem .6rem;
  vertical-align: middle;
  margin-left: .35rem;
}
.job-meta { color: var(--mh-muted); font-size: .93rem; margin-bottom: 0; }
.job-list-item {
  background: #fff;
  border: 1px solid var(--mh-line);
  border-radius: 1rem;
  padding: 1.1rem 1.2rem;
  margin-bottom: .8rem;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.job-list-item:hover { border-color: #bcdcf2; box-shadow: var(--mh-shadow); }
.job-list-item.active { border-color: var(--mh-blue); background: var(--mh-soft); }
.job-list-item h4 { font-size: 1.02rem; margin-bottom: .25rem; }
.job-list-item h4 a { color: var(--mh-navy); }
.job-list-item h4 a:hover { color: var(--mh-blue); }
.job-list-item p { margin-bottom: .15rem; font-size: .92rem; }
.meta-list { margin: 0; }
.meta-list dt { color: var(--mh-muted); font-weight: 500; font-size: .9rem; }
.meta-list dd { color: var(--mh-navy); font-weight: 500; margin-bottom: .55rem; }

/* ---------- Forms ---------- */
.form-control, .form-select {
  border-radius: .75rem;
  border: 1px solid #cbd9e6;
  padding: .7rem .95rem;
  font-size: .97rem;
  color: var(--mh-ink);
}
.form-control:focus, .form-select:focus {
  border-color: var(--mh-blue);
  box-shadow: 0 0 0 .22rem rgba(52, 152, 219, .18);
}
.form-label { font-weight: 600; color: var(--mh-navy); font-size: .92rem; }
.form-card {
  background: #fff;
  border: 1px solid var(--mh-line);
  border-radius: 1.25rem;
  box-shadow: var(--mh-shadow);
  padding: 2rem;
}
.alert { border-radius: .9rem; }

/* ---------- Contact section / footer ---------- */
.contact-block { padding: 4.5rem 0; }
.contact-item { display: flex; gap: 1rem; margin-bottom: 1.25rem; }
.contact-item .icon-tile { flex: 0 0 3rem; width: 3rem; height: 3rem; font-size: 1.35rem; border-radius: .85rem; }
.contact-item p { margin: 0; }
.contact-item strong { color: var(--mh-navy); display: block; font-size: .92rem; }
.social-links { display: flex; gap: .6rem; margin-top: 1.1rem; }
.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: var(--mh-tint);
  color: var(--mh-blue);
  font-size: 1.2rem;
  transition: background .2s ease, color .2s ease;
}
.social-links a:hover { background: var(--mh-blue); color: #fff; }
.map-frame { border: 0; border-radius: 1.25rem; width: 100%; height: 26rem; display: block; }
.cta-band {
  background: linear-gradient(120deg, var(--mh-blue-deep), var(--mh-blue));
  border-radius: 1.5rem;
  padding: 2.75rem 2.5rem;
  color: #fff;
  box-shadow: var(--mh-shadow-lg);
}
.cta-band h2 { color: #fff; margin-bottom: .5rem; }
.cta-band p { color: rgba(255, 255, 255, .85); margin-bottom: 0; }
.site-footer { background: var(--mh-navy); color: #a9bed0; }
.site-footer a { color: #d6e4f0; }
.site-footer a:hover { color: #fff; }
.site-footer .footer-links a { margin-left: 1.25rem; font-size: .93rem; }
.site-footer .footer-links a:first-child { margin-left: 0; }

/* ---------- Back to top ---------- */
.back-to-top {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 1040;
  width: 2.9rem;
  height: 2.9rem;
  border-radius: 50%;
  background: var(--mh-blue);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  box-shadow: var(--mh-shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(.5rem);
  transition: opacity .25s ease, transform .25s ease, visibility .25s;
}
.back-to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--mh-blue-dark); color: #fff; }

/* ---------- Reveal on scroll (replaces AOS) ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in-view { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: .1s; }
.reveal-delay-2 { transition-delay: .2s; }
.reveal-delay-3 { transition-delay: .3s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Alert auto-dismiss ---------- */
.alert-fading { opacity: 0; transition: opacity 1s ease; }

/* ---------- Responsive ---------- */
@media (max-width: 991.98px) {
  .hero { padding: 3rem 0 3.5rem; }
  .hero h1 { font-size: 2.2rem; }
  .hero-chip { left: .5rem; bottom: .75rem; }
  .section { padding: 3.25rem 0; }
  .page-hero { padding: 2.5rem 0 2rem; }
  .page-hero h1 { font-size: 1.7rem; }
  .site-header .navbar-brand img { height: 44px; }
  .site-header .navbar-collapse {
    background: #fff;
    border: 1px solid var(--mh-line);
    border-radius: 1rem;
    padding: .75rem 1rem;
    margin-top: .6rem;
    box-shadow: var(--mh-shadow);
  }
  .site-header .navbar-nav .btn { margin-top: .5rem; }
}
@media (max-width: 575.98px) {
  .hero h1 { font-size: 1.9rem; }
  .section-head h2 { font-size: 1.6rem; }
  .stat-card .stat-num { font-size: 1.9rem; }
  /* Form cards: less side padding so the fixed 304px reCAPTCHA widget
     has room, and scale the widget down instead of letting its right
     edge get cut off below ~400px. The negative margin removes the dead
     space the scale leaves under the widget (78px layout vs 70px seen). */
  .form-card { padding: 1.25rem; }
  .g-recaptcha { transform: scale(.9); transform-origin: 0 0; margin-bottom: -8px; }
  /* CTA band: the desktop side padding squeezes the text too much. */
  .cta-band { padding: 2rem 1.25rem; }
}
@media (max-width: 359.98px) {
  /* 320px phones: the 304px widget needs a bigger shrink to fit. */
  .g-recaptcha { transform: scale(.8); margin-bottom: -16px; }
}
