/* ==========================================================================
   Webtools365 — Template 2 "Meridian" — Corporate Enterprise design system
   ========================================================================== */

:root {
  --navy: #0b2545;
  --navy-2: #12315c;
  --ink: #111827;
  --teal: #0f9d8e;
  --teal-dark: #0b7d71;
  --amber: #e8a33d;
  --bg: #ffffff;
  --bg-alt: #f5f7fa;
  --bg-navy: var(--navy);
  --border: #e4e8ef;
  --text: #1f2937;
  --text-muted: #5b6579;
  --text-faint: #8b93a5;

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 8px 24px -8px rgba(11, 37, 69, 0.12);
  --shadow-lg: 0 24px 60px -20px rgba(11, 37, 69, 0.25);

  --container: 1200px;
  --font-head: "Plus Jakarta Sans", "Inter", sans-serif;
  --font-body: "Inter", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }

h1, h2, h3, h4, h5 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.18;
  margin: 0 0 0.5em;
  letter-spacing: -0.015em;
  color: var(--navy);
}

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

.section { padding: 100px 0; position: relative; }
.section-tight { padding: 64px 0; }
.bg-alt { background: var(--bg-alt); }
.bg-navy { background: var(--navy); color: #eaf0fb; }
.bg-navy h1, .bg-navy h2, .bg-navy h3, .bg-navy h4 { color: #fff; }

@media (max-width: 992px) {
  .section { padding: 72px 0; }
}
@media (max-width: 576px) {
  .section { padding: 56px 0; }
  .container { padding: 0 18px; }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--teal-dark);
  margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--teal); }
.bg-navy .eyebrow { color: #7fe0d4; }

.lead { font-size: 18px; color: var(--text-muted); }
.muted { color: var(--text-muted); }
.bg-navy .muted, .bg-navy .lead { color: #b9c6e0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 15px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--teal); color: #fff; box-shadow: var(--shadow); }
.btn-primary:hover { background: var(--teal-dark); transform: translateY(-2px); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-2); transform: translateY(-2px); }
.btn-outline { background: transparent; color: var(--navy); border-color: var(--border); }
.btn-outline:hover { border-color: var(--navy); }
.bg-navy .btn-outline { color: #fff; border-color: rgba(255,255,255,0.3); }
.bg-navy .btn-outline:hover { border-color: #fff; }
.btn-sm { padding: 10px 18px; font-size: 14px; }

/* ---------- Navbar ---------- */
.nav {
  position: sticky;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid transparent;
  transition: all 0.3s ease;
}
.nav.scrolled { box-shadow: 0 2px 20px rgba(11,37,69,0.08); border-color: var(--border); }
.nav-top {
  background: var(--navy);
  color: #cfdaf0;
  font-size: 13px;
}
.nav-top .container { display: flex; justify-content: space-between; align-items: center; height: 40px; }
.nav-top-item { display: inline-flex; align-items: center; gap: 6px; margin-right: 22px; }
.nav-top-item i { color: var(--teal); }
@media (max-width: 900px) { .nav-top { display: none; } }

.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 82px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-head); font-size: 21px; font-weight: 800; color: var(--navy); }
.nav-links { display: flex; align-items: center; gap: 2px; }
.nav-links a {
  padding: 10px 15px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--text-muted);
  border-bottom: 2px solid transparent;
  transition: all 0.2s ease;
}
.nav-links a:hover, .nav-links a.active { color: var(--navy); border-color: var(--teal); }

.nav-dropdown { position: relative; }
.nav-dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 15px;
  font-family: var(--font-body);
  font-size: 14.5px;
  font-weight: 600;
  color: var(--text-muted);
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
}
.nav-dropdown-toggle i { font-size: 11px; transition: transform 0.2s ease; }
.nav-dropdown-toggle:hover, .nav-dropdown-toggle.active { color: var(--navy); border-color: var(--teal); }
.nav-dropdown-menu {
  position: absolute;
  top: 100%; left: 0;
  min-width: 240px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: all 0.2s ease;
  z-index: 50;
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.nav-dropdown:hover .nav-dropdown-toggle i { transform: rotate(180deg); }
.nav-dropdown-menu a {
  display: block;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  border-bottom: none !important;
}
.nav-dropdown-menu a:hover, .nav-dropdown-menu a.active { background: var(--bg-alt); color: var(--navy); }

.nav-cta { display: flex; align-items: center; gap: 10px; }
.nav-toggle {
  display: none;
  width: 42px; height: 42px;
  align-items: center; justify-content: center;
  border-radius: var(--radius-sm);
  background: var(--bg-alt);
  border: 1px solid var(--border);
  color: var(--navy);
  font-size: 18px;
  cursor: pointer;
}
.mobile-panel {
  display: none;
  flex-direction: column;
  gap: 2px;
  padding: 10px 0 20px;
  border-top: 1px solid var(--border);
}
.mobile-panel.open { display: flex; }
.mobile-panel a { padding: 12px 6px; color: var(--text-muted); font-weight: 600; border-bottom: 1px solid var(--border); }
.mobile-panel a:hover { color: var(--navy); }
.mobile-panel a.active { color: var(--navy); }
.mobile-nav-group { display: flex; flex-direction: column; border-bottom: 1px solid var(--border); }
.mobile-nav-heading {
  padding: 12px 6px 4px;
  font-weight: 700;
  font-size: 12.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.mobile-nav-sub { padding: 10px 6px 10px 18px !important; border-bottom: none !important; font-weight: 600; }
.mobile-nav-group .mobile-nav-sub:last-child { padding-bottom: 12px !important; }

@media (max-width: 992px) {
  .nav-links, .nav-cta .btn-outline { display: none; }
  .nav-toggle { display: flex; }
}

/* ---------- Hero (split) ---------- */
.hero { padding: 76px 0 0; overflow: hidden; }
.hero-grid-2 { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 50px; align-items: center; padding: 60px 0; }
.hero h1 { font-size: clamp(34px, 4.6vw, 54px); }
.hero-actions { display: flex; gap: 14px; margin-top: 30px; flex-wrap: wrap; }
.hero-badges { display: flex; gap: 24px; margin-top: 44px; flex-wrap: wrap; }
.hero-badge { display: flex; align-items: center; gap: 10px; }
.hero-badge-ic {
  width: 40px; height: 40px; border-radius: 10px;
  background: rgba(15, 157, 142, 0.1); color: var(--teal-dark);
  display: flex; align-items: center; justify-content: center; font-size: 17px;
}
.hero-badge b { display: block; font-size: 14px; color: var(--navy); }
.hero-badge span { font-size: 12.5px; color: var(--text-faint); }

.hero-visual { position: relative; }
.hero-visual-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  position: relative;
}
.hero-visual-frame img { width: 100%; height: 460px; object-fit: cover; }
.hero-float-card {
  position: absolute;
  left: -30px; bottom: -26px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 18px 22px;
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: 260px;
}
.hero-float-card .ic {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--teal); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 18px; flex: none;
}
.hero-float-card b { display: block; font-size: 14.5px; color: var(--navy); }
.hero-float-card span { font-size: 12.5px; color: var(--text-faint); }

@media (max-width: 992px) {
  .hero-grid-2 { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
}
@media (max-width: 576px) {
  .hero-visual-frame img { height: 280px; }
  .hero-float-card { left: 0; right: 0; margin: 0 16px; bottom: -20px; }
}

/* ---------- Stats ---------- */
.stats-strip { background: var(--navy); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat-cell { padding: 44px 24px; text-align: center; border-right: 1px solid rgba(255,255,255,0.1); }
.stat-cell:last-child { border-right: none; }
.stat-num { font-family: var(--font-head); font-size: 36px; font-weight: 800; color: #fff; }
.stat-label { color: #a9b8d6; font-size: 13.5px; margin-top: 6px; }

@media (max-width: 900px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-cell:nth-child(2) { border-right: none; }
}

/* ---------- Grids ---------- */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }

@media (max-width: 992px) {
  .grid-2 { grid-template-columns: 1fr; gap: 40px; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 576px) {
  .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

.section-head { max-width: 640px; margin-bottom: 50px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* ---------- Service rows (left icon) ---------- */
.service-row {
  display: flex;
  gap: 20px;
  padding: 26px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  transition: all 0.25s ease;
  height: 100%;
}
.service-row:hover { box-shadow: var(--shadow-lg); border-color: transparent; transform: translateY(-4px); }
.service-ic {
  flex: none;
  width: 52px; height: 52px;
  border-radius: 12px;
  background: var(--bg-alt);
  color: var(--teal-dark);
  display: flex; align-items: center; justify-content: center;
  font-size: 21px;
}
.service-row h4 { font-size: 18px; margin-bottom: 8px; }
.service-row p { color: var(--text-muted); font-size: 14.5px; margin: 0 0 12px; }
.service-row a { font-size: 13.5px; font-weight: 700; color: var(--teal-dark); display: inline-flex; align-items: center; gap: 6px; }

/* ---------- Card ---------- */
.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow);
}

/* ---------- Split media ---------- */
.split-media { position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); }
.split-media img { width: 100%; height: 460px; object-fit: cover; }
.check-list { display: flex; flex-direction: column; gap: 14px; margin: 26px 0; }
.check-list li { display: flex; align-items: flex-start; gap: 12px; color: var(--text-muted); font-size: 15px; }
.check-list i {
  flex: none;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: rgba(15, 157, 142, 0.12);
  color: var(--teal-dark);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px;
  margin-top: 2px;
}

/* ---------- Process timeline ---------- */
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; position: relative; }
.process-step { padding: 0 22px; position: relative; }
.process-num {
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--navy); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head); font-weight: 700; font-size: 16px;
  margin-bottom: 18px;
  position: relative; z-index: 1;
}
.process-step::after {
  content: "";
  position: absolute; top: 23px; left: 68px; right: -22px;
  height: 2px; background: var(--border);
}
.process-step:last-child::after { display: none; }
.process-step h4 { font-size: 16.5px; margin-bottom: 8px; }
.process-step p { color: var(--text-muted); font-size: 14px; margin: 0; }

@media (max-width: 900px) {
  .process-grid { grid-template-columns: 1fr 1fr; gap: 34px; }
  .process-step::after { display: none; }
}
@media (max-width: 576px) {
  .process-grid { grid-template-columns: 1fr; }
}

.process-grid.process-grid-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) {
  .process-grid.process-grid-3 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 576px) {
  .process-grid.process-grid-3 { grid-template-columns: 1fr; }
}

/* ---------- Contact form ---------- */
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 18px; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 13.5px; font-weight: 600; color: var(--navy); margin-bottom: 8px; }
.form-control {
  width: 100%;
  padding: 13px 16px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  background: var(--bg-alt);
  font-family: var(--font-body);
  font-size: 14.5px;
  color: var(--text);
  transition: border-color 0.2s ease, background 0.2s ease;
}
.form-control:focus { outline: none; border-color: var(--teal); background: #fff; }
textarea.form-control { resize: vertical; min-height: 130px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: 0.65; cursor: not-allowed; }
.form-note-error { color: #c0392b; font-size: 13.5px; margin: -6px 0 16px; }
.form-success { text-align: center; padding: 50px 24px; }
.form-success .ic {
  width: 60px; height: 60px; border-radius: 50%;
  background: rgba(15, 157, 142, 0.12); color: var(--teal-dark);
  display: flex; align-items: center; justify-content: center;
  font-size: 26px; margin: 0 auto 18px;
}

@media (max-width: 576px) {
  .form-row { grid-template-columns: 1fr; }
}

/* ---------- Map embed ---------- */
.map-embed { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); }
.map-embed iframe { width: 100%; height: 212px; border: 0; display: block; }

/* ---------- Tabs (about page) ---------- */
.tabs-head { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 24px; border-bottom: 1px solid var(--border); }
.tab-btn {
  padding: 12px 4px;
  margin-right: 26px;
  border: none;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: var(--text-muted);
  font-weight: 700;
  font-size: 14.5px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.tab-btn.active { color: var(--navy); border-color: var(--teal); }
.tab-panel { color: var(--text-muted); font-size: 15.5px; }

/* ---------- Page header ---------- */
.page-hero { padding: 60px 0 0; }
.page-hero-inner {
  background: var(--navy);
  border-radius: var(--radius-lg);
  padding: 70px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-hero-inner h1 { color: #fff; font-size: clamp(30px, 4.6vw, 46px); }
.page-hero-inner .lead { color: #c3cee5; max-width: 600px; margin: 0 auto; }
.crumbs { display: flex; gap: 8px; justify-content: center; color: #8fa1c7; font-size: 14px; margin-top: 16px; }

/* ---------- Values ---------- */
.value-card { padding: 26px; border-radius: var(--radius); border: 1px solid var(--border); background: #fff; }
.value-card h4 { font-size: 16.5px; margin-bottom: 8px; }
.value-card p { color: var(--text-muted); font-size: 14px; margin: 0; }

/* ---------- CTA banner ---------- */
.cta-banner {
  border-radius: var(--radius-lg);
  padding: 64px 50px;
  background: linear-gradient(120deg, var(--navy) 0%, #133a6c 100%);
  text-align: center;
  color: #fff;
}
.cta-banner h2 { color: #fff; font-size: clamp(26px, 3.6vw, 38px); max-width: 680px; margin: 0 auto 14px; }
.cta-banner .lead { max-width: 560px; margin: 0 auto 30px; color: #c3cee5; }
.cta-banner .btn-outline { color: #fff; border-color: rgba(255, 255, 255, 0.35); }
.cta-banner .btn-outline:hover { border-color: #fff; background: rgba(255, 255, 255, 0.08); }
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- Logo strip ---------- */
.logo-strip { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 28px; }
.logo-strip span { font-family: var(--font-head); font-weight: 700; font-size: 15px; color: var(--text-faint); letter-spacing: 0.02em; }

/* ---------- Tech stack (Power BI / Azure) ---------- */
.tech-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
}
.tech-card-head { display: flex; align-items: center; gap: 16px; margin-bottom: 10px; }
.tech-card-head h4 { font-size: 19px; }
.tech-pill-list { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.tech-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: 999px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--navy);
  transition: all 0.2s ease;
}
.tech-pill i { color: var(--teal-dark); font-size: 14px; }
.tech-pill:hover { border-color: var(--teal); background: #fff; box-shadow: var(--shadow); }

/* ---------- Footer ---------- */
.footer { background: var(--navy); color: #c3cee5; padding: 76px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.1fr; gap: 40px; padding-bottom: 56px; }
.footer h5 { color: #fff; font-size: 14.5px; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 20px; }
.footer-links { display: flex; flex-direction: column; gap: 12px; }
.footer-links a { color: #a9b8d6; font-size: 14.5px; transition: color 0.2s; }
.footer-links a:hover { color: #fff; }
.footer-contact-item { display: flex; gap: 10px; margin-bottom: 12px; color: #a9b8d6; font-size: 14.5px; }
.footer-contact-item i { color: var(--teal); margin-top: 3px; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding: 24px 0; border-top: 1px solid rgba(255,255,255,0.12); color: #8fa1c7; font-size: 13.5px; flex-wrap: wrap; gap: 12px; }
.social-row { display: flex; gap: 10px; }
.social-row a {
  width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.08);
  transition: all 0.2s ease;
}
.social-row a:hover { background: var(--teal); }

@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 576px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }

/* ---------- Back to top ---------- */
.back-top {
  position: fixed; right: 24px; bottom: 24px;
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--navy); color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-lg);
  opacity: 0; pointer-events: none;
  transform: translateY(10px);
  transition: all 0.3s ease;
  z-index: 90;
  border: none;
  cursor: pointer;
}
.back-top.show { opacity: 1; pointer-events: auto; transform: translateY(0); }
