/* =========================================================
   Tondak Group — Public site stylesheet
   Corporate · Teal brand · Open Sans
   Shared by index.html and grievance.php
   ========================================================= */

:root {
  --brand: #056283;
  --brand-600: #044e69;
  --brand-700: #033b50;
  --brand-100: #d6eaf1;
  --brand-50: #eef6f9;
  --navy: #0a2233;
  --navy-2: #0f2f45;

  /* Legacy aliases used by grievance.css */
  --accent: var(--brand);
  --accent-hover: var(--brand-600);
  --text: #0b1f2e;
  --muted: #526273;
  --border: #e1e8ee;
  --bg: #ffffff;
  --bg-soft: #f5f8fa;

  --success: #0d8a5a;
  --danger: #c62828;
  --radius: 14px;
  --radius-sm: 10px;
  --nav-h: 72px;
  --container: 1200px;
  --shadow-sm: 0 1px 2px rgba(11, 31, 46, 0.06), 0 1px 3px rgba(11, 31, 46, 0.04);
  --shadow-md: 0 8px 24px rgba(11, 31, 46, 0.08);
  --shadow-lg: 0 24px 60px rgba(10, 34, 51, 0.16);
  --font: 'Open Sans', system-ui, 'Segoe UI', -apple-system, 'Helvetica Neue', Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
}

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
ul, ol { list-style: none; }

h1, h2, h3, h4 {
  font-family: var(--font);
  font-weight: 700;
  line-height: 1.18;
  color: var(--text);
  letter-spacing: -0.022em;
}

h1, h2 {
  font-family: "Fraunces", "Iowan Old Style", "Palatino Linotype", Palatino, serif;
  font-weight: 560;
  letter-spacing: -0.03em;
}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 300;
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--brand);
  color: #fff;
}
.skip-link:focus { top: 16px; }

.container {
  width: min(var(--container), calc(100% - 48px));
  margin-inline: auto;
}
.container.narrow { width: min(780px, calc(100% - 48px)); }

/* ---------- Loader ---------- */
.loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  background: #fff;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}
.loader.is-done { opacity: 0; visibility: hidden; pointer-events: none; }
.loader-inner { text-align: center; display: grid; gap: 14px; justify-items: center; }
.loader-logo { width: auto; height: 56px; object-fit: contain; }
.loader-bar { width: 120px; height: 3px; border-radius: 999px; background: var(--brand-100); overflow: hidden; }
.loader-bar span { display: block; height: 100%; width: 40%; background: var(--brand); animation: load 0.9s ease-in-out infinite; }
.loader-inner p { font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
@keyframes load { 0% { transform: translateX(-120%); } 100% { transform: translateX(280%); } }

.cursor-glow, .blob { display: none !important; }

/* ---------- Top utility bar ---------- */
.topbar {
  background: var(--navy);
  color: #c5d4de;
  font-size: 0.8125rem;
}
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 40px;
}
.topbar-list { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.topbar-list li { display: inline-flex; align-items: center; gap: 7px; }
.topbar svg { width: 14px; height: 14px; color: #7fc4dc; flex: none; }
.topbar a { color: #e6eef3; transition: color 0.15s ease; }
.topbar a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.topbar-links { display: flex; align-items: center; gap: 18px; }

/* ---------- Navbar ---------- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.94);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.2s ease;
}
.navbar.scrolled { box-shadow: 0 6px 24px rgba(11, 31, 46, 0.07); }

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand { display: inline-flex; align-items: center; flex: none; }
.brand-logo { display: block; width: auto; height: 46px; object-fit: contain; }
.brand-logo-footer { height: 44px; }

.nav-links { display: flex; align-items: center; gap: 0; }
.nav-links a {
  position: relative;
  padding: 8px 9px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  color: #31485a;
  transition: color 0.15s ease, background 0.15s ease;
}
.nav-links a:hover,
.nav-links a:focus-visible { color: var(--brand); background: var(--brand-50); }

.nav-actions { display: flex; align-items: center; gap: 10px; flex: none; }
.nav-login-mobile { display: none; }

.login-menu { position: relative; }
.login-menu-trigger { list-style: none; cursor: pointer; user-select: none; }
.login-menu-trigger::-webkit-details-marker { display: none; }
.login-menu-trigger::after {
  content: "";
  width: 6px;
  height: 6px;
  margin-left: 2px;
  border-right: 1.75px solid currentColor;
  border-bottom: 1.75px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
}
.login-menu-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 280px;
  padding: 8px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #fff;
  box-shadow: var(--shadow-lg);
  display: grid;
  gap: 2px;
  z-index: 40;
}
.login-menu-panel a {
  display: block;
  padding: 11px 12px;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
}
.login-menu-panel a:hover,
.login-menu-panel a:focus-visible { background: var(--brand-50); color: var(--brand); }

.icon-btn {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text);
  display: grid;
  place-items: center;
  cursor: pointer;
}
.icon-btn:hover { background: var(--bg-soft); }
.menu-btn { display: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 10px;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.2;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}
.btn-sm { padding: 10px 16px; font-size: 0.875rem; border-radius: 9px; }
.btn-block { width: 100%; }

.btn-primary {
  color: #fff;
  background: var(--brand);
  box-shadow: 0 1px 2px rgba(5, 98, 131, 0.3), 0 6px 16px rgba(5, 98, 131, 0.22);
}
.btn-primary:hover { background: var(--brand-600); transform: translateY(-1px); }

.btn-ghost {
  color: var(--text);
  background: #fff;
  border-color: #cdd9e2;
}
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); background: #fff; }

.btn-light { color: var(--navy); background: #fff; }
.btn-light:hover { background: var(--brand-50); transform: translateY(-1px); }
.btn-outline-light { color: #fff; background: transparent; border-color: rgba(255, 255, 255, 0.35); }
.btn-outline-light:hover { background: rgba(255, 255, 255, 0.1); border-color: #fff; }

/* ---------- Typography helpers ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 14px;
}

.lead,
.section-desc {
  color: var(--muted);
  font-size: 1.0625rem;
  max-width: 58ch;
  margin-top: 16px;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 80px 0 96px;
  background:
    radial-gradient(820px 380px at 8% -20%, rgba(28, 143, 181, 0.38), transparent 62%),
    linear-gradient(165deg, #071821 0%, #0a2233 52%, #0d3348 100%);
  color: #e8f1f6;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(48vw, 700px);
  background: linear-gradient(180deg, #f7f1e6 0%, #efe6d6 100%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px 6px 8px;
  border-radius: 999px;
  line-height: 1.3;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 0.8125rem;
  font-weight: 600;
  color: #d6eaf1;
  margin-bottom: 22px;
}
.hero-badge i {
  font-style: normal;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.hero h1 { font-size: clamp(2.4rem, 4.6vw, 3.6rem); letter-spacing: -0.032em; line-height: 1.08; }
.brand-lockup {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: #7fc4dc;
  margin-bottom: 14px;
}
.hero-line { display: block; color: #fff; }
.hero-line em {
  font-style: normal;
  background: linear-gradient(120deg, #7fd0ea 0%, #ffffff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-copy .lead { max-width: 56ch; font-size: 1.125rem; margin-top: 22px; color: #c5d4de; }
.hero .btn-ghost {
  color: #fff;
  background: transparent;
  border-color: rgba(255, 255, 255, 0.38);
}
.hero .btn-ghost:hover { color: var(--navy); background: #fff; border-color: #fff; }

.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin: 32px 0 28px; }

.hero-points { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-bottom: 26px; }
.hero-points li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #d5e4ec;
}
.hero-points svg { width: 18px; height: 18px; padding: 3px; border-radius: 50%; color: #fff; background: var(--brand); flex: none; }

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  max-width: 560px;
}
.hero-meta-label { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: #8eafc0; margin-right: 4px; }
.hero-meta a {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
  font-size: 0.8125rem;
  font-weight: 600;
  color: #e8f1f6;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}
.hero-meta a:hover,
.hero-meta a:focus-visible { border-color: #fff; color: var(--navy); background: #fff; }

/* Hero product preview */
.hero-visual { position: relative; width: 100%; padding: 0 0 48px 28px; }
.dash {
  position: relative;
  border-radius: 18px;
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.dash-top {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: var(--navy);
  color: #e6eef3;
  font-size: 0.8125rem;
  font-weight: 600;
}
.dash-dots { display: inline-flex; gap: 6px; }
.dash-dots i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255, 255, 255, 0.25); }
.dash-title { flex: 1; letter-spacing: 0.01em; }
.dash-live { display: inline-flex; align-items: center; gap: 7px; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.1em; color: #8ee0b0; }
.dash-live b { width: 8px; height: 8px; border-radius: 50%; background: #34d27b; animation: livePulse 1.8s ease-out infinite; }
@keyframes livePulse {
  0% { box-shadow: 0 0 0 0 rgba(52, 210, 123, 0.55); }
  70% { box-shadow: 0 0 0 10px rgba(52, 210, 123, 0); }
  100% { box-shadow: 0 0 0 0 rgba(52, 210, 123, 0); }
}

.dash-body { padding: 20px 20px 22px; display: grid; gap: 18px; }
.dash-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.dash-kpi { padding: 12px 14px; border-radius: 12px; background: var(--bg-soft); border: 1px solid var(--border); }
.dash-kpi strong { display: block; font-size: 1.35rem; line-height: 1.1; letter-spacing: -0.02em; color: var(--navy); }
.dash-kpi span { display: block; margin-top: 4px; font-size: 0.72rem; font-weight: 600; color: var(--muted); }

.dash-chart-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; font-size: 0.78rem; font-weight: 700; color: var(--navy); }
.dash-chart-head span { font-weight: 600; color: var(--muted); }
.dash-chart {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 118px;
  padding: 10px 10px 0;
  border-radius: 12px;
  border: 1px solid var(--border);
  background:
    repeating-linear-gradient(to top, transparent 0 28px, rgba(11, 31, 46, 0.05) 28px 29px),
    #fff;
}
.dash-chart span {
  flex: 1;
  height: var(--h);
  border-radius: 6px 6px 0 0;
  background: linear-gradient(180deg, #2a9cc4 0%, var(--brand) 100%);
  transform-origin: bottom;
  animation: barGrow 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both;
  animation-delay: calc(var(--d, 0) * 70ms + 300ms);
}
.dash-chart span:nth-child(even) { background: linear-gradient(180deg, #7fc4dc 0%, #3d9dbe 100%); }
@keyframes barGrow { from { transform: scaleY(0); } to { transform: scaleY(1); } }

.dash-list { display: grid; gap: 8px; }
.dash-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  font-size: 0.8125rem;
  font-weight: 600;
  color: #31485a;
}
.dash-list svg { width: 18px; height: 18px; padding: 3px; border-radius: 50%; background: #e3f6ec; color: #0d8a5a; flex: none; }
.dash-list em { margin-left: auto; font-style: normal; font-size: 0.72rem; font-weight: 700; color: #0d8a5a; }

.hero-float {
  position: absolute;
  left: 0;
  bottom: 4px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  animation: floatY 6s ease-in-out infinite;
}
.hero-float-icon { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: var(--brand-50); color: var(--brand); }
.hero-float strong { display: block; font-size: 0.95rem; line-height: 1.2; color: var(--navy); }
.hero-float span { display: block; font-size: 0.75rem; color: var(--muted); }
@keyframes floatY { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* ---------- Product band ---------- */
.product-band { position: relative; z-index: 2; margin-top: -36px; }
.product-band-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.product-card {
  display: grid;
  gap: 6px;
  padding: 22px 22px 20px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: #fff;
  box-shadow: var(--shadow-md);
  transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}
.product-card:hover,
.product-card:focus-visible {
  border-color: var(--brand);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}
.product-card small {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand);
}
.product-card strong {
  font-family: "Fraunces", "Iowan Old Style", Palatino, serif;
  font-size: 1.45rem;
  font-weight: 560;
  letter-spacing: -0.02em;
  color: var(--navy);
}
.product-card span { color: var(--muted); font-size: 0.92rem; }

/* ---------- Stats ---------- */
.stats-strip { position: relative; z-index: 2; margin-top: 28px; padding-bottom: 8px; }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.stat-card,
.stat-card.glass {
  padding: 30px 24px;
  text-align: center;
  background: transparent;
  border: 0;
  border-radius: 0;
  border-right: 1px solid var(--border);
}
.stat-card:last-child,
.stat-card.glass:last-child { border-right: 0; }
.stat-card strong {
  display: block;
  font-size: clamp(1.9rem, 3vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--brand);
  margin-bottom: 6px;
}
.stat-card > span { color: var(--muted); font-size: 0.9rem; font-weight: 500; }

/* ---------- Surfaces ---------- */
.glass,
.service-card,
.compliance-card,
.why-card,
.erp-feature,
.timeline-item,
.apply-form,
.contact-form,
.faq-item,
.logo-chip {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
.section-tight { padding-top: 56px; padding-bottom: 40px; }
.section-alt { background: var(--bg-soft); }

.section-head { margin-bottom: 48px; max-width: 680px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .section-desc { margin-inline: auto; }

.section-head h2,
.erp-copy h2,
.careers-copy h2,
.contact-info h2 {
  font-size: clamp(1.75rem, 3.2vw, 2.5rem);
  letter-spacing: -0.028em;
  margin-bottom: 4px;
}

/* About */
.about-grid { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: 64px; align-items: start; }
.about-grid .section-head { margin-bottom: 0; position: sticky; top: calc(var(--nav-h) + 32px); }
.about-content p { color: var(--muted); font-size: 1.0625rem; }
.about-content p + p { margin-top: 16px; }
.about-content strong { color: var(--text); font-weight: 600; }

.about-pills { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 28px; }
.about-pills span {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #fff;
  box-shadow: var(--shadow-sm);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--navy);
}
.about-pills span::before {
  content: "";
  flex: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--brand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 13px no-repeat;
}

/* Timeline */
.timeline { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; position: relative; }
.timeline-item { padding: 28px 26px; box-shadow: var(--shadow-sm); position: relative; overflow: hidden; }
.timeline-item::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, var(--brand), #3d9dbe);
}
.timeline-year { display: block; font-size: 2rem; font-weight: 800; letter-spacing: -0.03em; color: var(--brand); margin-bottom: 8px; }
.timeline-item h3 { font-size: 1.1rem; margin-bottom: 6px; }
.timeline-item p { color: var(--muted); font-size: 0.95rem; }

/* Card grids */
.services-grid,
.compliance-grid,
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

.service-card,
.compliance-card,
.why-card,
.erp-feature {
  padding: 28px 26px;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s ease, box-shadow 0.25s ease, transform 0.25s ease;
}
.service-card:hover,
.compliance-card:hover,
.why-card:hover {
  border-color: var(--brand-100);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.card-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  color: var(--brand);
  background: var(--brand-50);
  border: 1px solid var(--brand-100);
  flex: none;
}
.service-card:hover .card-icon,
.compliance-card:hover .card-icon { background: var(--brand); color: #fff; border-color: var(--brand); }
.card-icon { transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease; }

.service-card h3,
.compliance-card h3,
.why-card h3,
.erp-feature h3 { font-size: 1.05rem; margin-bottom: 8px; letter-spacing: -0.015em; }
.service-card p,
.compliance-card p,
.why-card p,
.erp-feature p { color: var(--muted); font-size: 0.93rem; line-height: 1.6; }

.why-num {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  margin-bottom: 16px;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--brand);
  background: var(--brand-50);
  font-weight: 800;
}
.why-grid { grid-template-columns: repeat(4, 1fr); }

/* ---------- Clients ---------- */
.logo-marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.marquee-track { display: flex; gap: 16px; width: max-content; animation: marquee 36s linear infinite; padding: 6px 0; }
.logo-marquee:hover .marquee-track { animation-play-state: paused; }
.logo-chip {
  flex: 0 0 auto;
  min-width: 210px;
  padding: 22px 28px;
  text-align: center;
  font-weight: 700;
  font-size: 0.98rem;
  color: #31485a;
  box-shadow: var(--shadow-sm);
}
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- ERP / Everest ---------- */
.everest-section {
  position: relative;
  overflow: hidden;
  color: #e6eef3;
  background:
    radial-gradient(800px 420px at 90% 0%, rgba(42, 156, 196, 0.28), transparent 60%),
    radial-gradient(600px 360px at 0% 100%, rgba(5, 98, 131, 0.35), transparent 60%),
    linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 100%);
}
.everest-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: linear-gradient(180deg, #000, transparent 85%);
  mask-image: linear-gradient(180deg, #000, transparent 85%);
  pointer-events: none;
}
.everest-section .container { position: relative; z-index: 1; }
.everest-section .eyebrow { color: #7fd0ec; }
.everest-section .erp-copy h2 { color: #fff; }
.everest-section .section-desc { color: #b4c6d3; }
.erp-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 56px; align-items: start; }
.erp-copy { position: sticky; top: calc(var(--nav-h) + 32px); }
.erp-copy .btn { margin-top: 28px; }
.erp-features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.everest-section .erp-feature {
  padding: 22px 20px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: none;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  animation: cardIn 0.7s ease both;
  animation-delay: calc(var(--i, 0) * 70ms);
}
.everest-section .erp-feature:hover { background: rgba(255, 255, 255, 0.11); border-color: rgba(127, 208, 236, 0.5); transform: translateY(-3px); }
.everest-section .erp-feature h3 { color: #fff; font-size: 0.98rem; }
.everest-section .erp-feature p { color: #aebfcc; font-size: 0.875rem; }
.everest-section .everest-card {
  background: linear-gradient(150deg, #1c8fb5, var(--brand) 70%);
  border-color: rgba(255, 255, 255, 0.25);
}
.everest-section .everest-card h3,
.everest-section .everest-card p { color: #fff; }
.everest-section .everest-card:hover { background: linear-gradient(150deg, #2399c0, #07709a 70%); }
@keyframes cardIn { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }

/* ---------- TMS Books / Mail panels ---------- */
.books-panel { padding: 36px; box-shadow: var(--shadow-md); border-radius: 20px; }
.books-panel-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 28px;
  flex-wrap: wrap;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border);
}
.books-identity { display: flex; gap: 18px; align-items: flex-start; max-width: 640px; }
.books-identity .card-icon { width: 56px; height: 56px; margin-bottom: 0; background: var(--brand); color: #fff; border-color: var(--brand); }
.books-kicker { font-size: 0.74rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--brand); }
.books-identity h3 { font-size: 1.6rem; margin: 4px 0 6px; }
.books-identity p { color: var(--muted); }
.books-identity p.books-kicker { color: var(--brand); }
.books-url { display: inline-block; margin-top: 8px; font-weight: 600; color: var(--brand); border-bottom: 1px solid var(--brand-100); }
.books-url:hover { border-color: var(--brand); }
.books-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.books-meta { display: flex; flex-wrap: wrap; gap: 8px; padding: 22px 0; }
.books-meta li {
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--brand-50);
  border: 1px solid var(--brand-100);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--brand-600);
}

.books-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border: 1px solid var(--border); border-radius: 14px; overflow: hidden; }
.books-item { padding: 22px 24px; border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); background: #fff; transition: background 0.15s ease; }
.books-item:hover { background: var(--bg-soft); }
.books-item:nth-child(3n) { border-right: 0; }
.books-item:nth-last-child(-n + 3) { border-bottom: 0; }
.books-item h4 { font-size: 0.98rem; margin-bottom: 6px; letter-spacing: -0.01em; }
.books-item p { color: var(--muted); font-size: 0.9rem; line-height: 1.55; }

.books-steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; margin-top: 28px; counter-reset: s; }
.books-steps article { position: relative; padding: 18px 16px; border-radius: 12px; background: var(--bg-soft); border: 1px solid var(--border); }
.books-steps span { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--brand); color: #fff; font-size: 0.75rem; font-weight: 700; margin-bottom: 10px; }
.books-steps h4 { font-size: 0.95rem; margin-bottom: 4px; }
.books-steps p { color: var(--muted); font-size: 0.85rem; line-height: 1.5; }

.section-desc a { color: var(--brand); font-weight: 600; border-bottom: 1px solid var(--brand-100); }
.section-desc a:hover { border-color: var(--brand); }

/* ---------- Careers / Contact / Forms ---------- */
.careers-grid,
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 64px; align-items: start; }

.careers-points { margin-top: 28px; display: grid; gap: 14px; }
.careers-points li { position: relative; padding-left: 36px; color: #31485a; font-weight: 500; }
.careers-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--brand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 14px no-repeat;
}

.apply-form,
.contact-form { padding: 32px; display: grid; gap: 16px; box-shadow: var(--shadow-md); border-radius: 18px; }

.form-row { display: grid; gap: 7px; }
.form-row.two { grid-template-columns: 1fr 1fr; gap: 16px; }
.form-row.two > div { display: grid; gap: 7px; }

label { font-size: 0.8125rem; font-weight: 600; color: #31485a; }

input,
textarea,
.grv-form select {
  width: 100%;
  border-radius: 10px;
  border: 1px solid #cdd9e2;
  background: #fff;
  color: var(--text);
  padding: 12px 14px;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
input::placeholder, textarea::placeholder { color: #8b9aa8; }
input:focus,
textarea:focus,
.grv-form select:focus { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(5, 98, 131, 0.12); }
input.is-invalid,
textarea.is-invalid { border-color: var(--danger); box-shadow: 0 0 0 4px rgba(198, 40, 40, 0.08); }
textarea { resize: vertical; min-height: 110px; }

.field-error { min-height: 1em; font-size: 0.78rem; color: var(--danger); }

.upload-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-radius: 10px;
  border: 1.5px dashed #9db3c2;
  background: var(--bg-soft);
  color: #31485a;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.upload-btn:hover { border-color: var(--brand); background: var(--brand-50); }
.upload-btn svg { color: var(--brand); }

.form-success { color: var(--success); font-size: 0.9rem; font-weight: 600; text-align: center; }

/* ---------- FAQ ---------- */
.faq-list { display: grid; gap: 12px; }
.faq-item { box-shadow: var(--shadow-sm); overflow: hidden; transition: border-color 0.15s ease; }
.faq-item.is-open { border-color: var(--brand-100); box-shadow: var(--shadow-md); }
.faq-q {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  background: transparent;
  border: 0;
  color: var(--text);
  font-weight: 600;
  font-size: 1rem;
  text-align: left;
  cursor: pointer;
}
.faq-q:hover { color: var(--brand); }
.faq-q span {
  flex: none;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--brand-50);
  color: var(--brand);
  font-size: 1.2rem;
  line-height: 1;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}
.faq-item.is-open .faq-q span { transform: rotate(45deg); background: var(--brand); color: #fff; }
.faq-a { padding: 0 24px 22px; color: var(--muted); font-size: 0.97rem; }
.faq-a[hidden] { display: none; }
.faq-a a { color: var(--brand); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Contact ---------- */
.contact-list { display: grid; gap: 18px; margin: 32px 0; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; }
.contact-list .card-icon { width: 44px; height: 44px; margin-bottom: 0; border-radius: 12px; }
.contact-list strong { display: block; font-size: 0.9rem; margin-bottom: 2px; }
.contact-list a,
.contact-list span { color: var(--muted); font-size: 0.97rem; }
.contact-list a:hover { color: var(--brand); }

.socials { display: flex; gap: 8px; }
.socials a {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 0.85rem;
  background: #fff;
  transition: all 0.15s ease;
}
.socials a:hover { border-color: var(--brand); background: var(--brand); color: #fff; }
.contact-panel { display: grid; gap: 12px; }

/* ---------- Footer ---------- */
.footer { padding: 72px 0 24px; background: var(--navy); color: #aebfcc; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.1fr; gap: 40px; margin-bottom: 48px; }
.footer-brand .brand { padding: 8px 12px; border-radius: 10px; background: #fff; }
.footer-brand p { margin-top: 18px; color: #aebfcc; font-size: 0.92rem; max-width: 38ch; }
.footer h3 { font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; color: #fff; margin-bottom: 16px; }
.footer ul { display: grid; gap: 10px; }
.footer a { color: #aebfcc; font-size: 0.92rem; transition: color 0.15s ease; }
.footer a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  color: #8ea3b3;
  font-size: 0.85rem;
}

/* ---------- Back to top ---------- */
.back-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 90;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  border: 0;
  background: var(--brand);
  color: #fff;
  box-shadow: var(--shadow-md);
  display: grid;
  place-items: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease, background 0.15s ease;
}
.back-top:hover { background: var(--brand-600); }
.back-top.is-visible { opacity: 1; visibility: visible; transform: none; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
.hero .reveal,
.product-band,
.stats-strip .reveal { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .nav-links a { padding: 8px 9px; font-size: 0.86rem; }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .books-steps { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 1040px) {
  .hero { padding: 56px 0 112px; }
  .hero-grid,
  .about-grid,
  .erp-grid,
  .careers-grid,
  .contact-grid,
  .footer-grid { grid-template-columns: 1fr; gap: 40px; }

  .about-grid .section-head,
  .erp-copy { position: static; }
  .about-grid { gap: 28px; }

  .hero-visual { max-width: 560px; }
  .services-grid,
  .compliance-grid,
  .erp-features { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-card:nth-child(2) { border-right: 0; }
  .stat-card:nth-child(-n + 2) { border-bottom: 1px solid var(--border); }
  .books-grid { grid-template-columns: repeat(2, 1fr); }
  .books-item:nth-child(3n) { border-right: 1px solid var(--border); }
  .books-item:nth-child(2n) { border-right: 0; }
  .books-item:nth-last-child(-n + 3) { border-bottom: 1px solid var(--border); }
  .books-item:nth-last-child(-n + 2) { border-bottom: 0; }
}

@media (max-width: 900px) {
  .menu-btn { display: grid; }

  .nav-links {
    position: fixed;
    inset: var(--nav-h) 16px auto;
    display: grid;
    gap: 2px;
    padding: 12px;
    border-radius: 14px;
    border: 1px solid var(--border);
    background: #fff;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
    max-height: calc(100vh - var(--nav-h) - 24px);
    overflow-y: auto;
  }
  .nav-links.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav-links a { padding: 12px 14px; font-size: 0.95rem; color: var(--text); }
  .nav-actions .login-menu { display: none; }
  .nav-login-mobile { display: block; font-weight: 600; color: var(--brand) !important; }

  .topbar-list li:nth-child(n + 2) { display: none; }
}

@media (max-width: 768px) {
  .section { padding: 72px 0; }
  .timeline,
  .why-grid { grid-template-columns: 1fr; }
  .books-panel { padding: 24px 20px; }
  .books-steps { grid-template-columns: repeat(2, 1fr); }
  .topbar-links a:not(:first-child) { display: none; }
}

@media (max-width: 640px) {
  .hero-badge { border-radius: 14px; font-size: 0.78rem; }
  .container,
  .container.narrow { width: calc(100% - 32px); }
  .nav-actions .btn-sm { display: none; }

  .hero { padding: 40px 0 96px; }
  .hero-ctas .btn { width: 100%; }
  .hero-visual { padding: 0 0 52px 0; }
  .hero-float { left: 12px; }
  .dash-kpis { gap: 8px; }
  .dash-kpi { padding: 10px; }
  .dash-kpi strong { font-size: 1.1rem; }

  .stats-strip { margin-top: 20px; }
  .product-band-grid { grid-template-columns: 1fr; }
  .stat-card { padding: 22px 12px; }
  .services-grid,
  .compliance-grid,
  .erp-features,
  .about-pills,
  .books-grid,
  .form-row.two { grid-template-columns: 1fr; }
  .books-item,
  .books-item:nth-child(n) { border-right: 0; border-bottom: 1px solid var(--border); }
  .books-item:last-child { border-bottom: 0; }
  .books-identity { flex-direction: column; }
  .books-actions { width: 100%; }
  .books-actions .btn { flex: 1; }
  .apply-form,
  .contact-form { padding: 22px 18px; }
  .footer-bottom { flex-direction: column; }
}

/* ---------- Paper stack in the hero ---------- */
.paper-stack {
  position: relative;
  height: 420px;
  max-width: 440px;
  margin-left: auto;
}
.sheet {
  position: absolute;
  width: 78%;
  padding: 18px 18px 16px;
  border-radius: 4px 14px 12px 12px;
  background: #fffdf8;
  color: var(--navy);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
}
.sheet header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 14px;
  font-size: 0.95rem;
}
.sheet header span {
  font-family: var(--font);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand);
}
.sheet-line {
  height: 7px;
  margin: 8px 0;
  border-radius: 99px;
  background: #e7e0d4;
}
.sheet-line.w90 { width: 90%; }
.sheet-line.w80 { width: 80%; }
.sheet-line.w70 { width: 70%; }
.sheet-line.w60 { width: 60%; }
.sheet-line.w50 { width: 50%; }
.sheet-table { display: grid; gap: 7px; margin-top: 14px; }
.sheet-table i { display: block; height: 8px; border-radius: 99px; background: #f0ebe3; }
.sheet-kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.sheet-kpis span { display: grid; gap: 2px; padding: 8px 10px; background: #f6f1e8; border-radius: 8px; }
.sheet-kpis small { font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; color: #7a6d5d; }
.sheet-kpis strong { font-family: "Fraunces", serif; font-size: 1.15rem; }
.sheet-sign { width: 72px; height: 28px; margin-top: 18px; border-bottom: 1.5px solid #c9bfb0; }
.sheet-back { top: 18px; left: 0; transform: rotate(-7deg); opacity: 0.92; }
.sheet-mid { top: 78px; left: 34px; transform: rotate(3deg); }
.sheet-front { top: 150px; right: 0; left: auto; width: 84%; transform: rotate(-1.5deg); }

/* ---------- Template gallery ---------- */
.tpl-toolbar {
  display: grid;
  justify-items: center;
  gap: 14px;
  margin: 28px 0 22px;
}
.tpl-search { width: min(460px, 100%); }
.tpl-search input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #fff;
}
.tpl-search input:focus { outline: 2px solid var(--brand); outline-offset: 2px; }
.tpl-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 0;
}
.tpl-count {
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 600;
}
.tpl-empty {
  text-align: center;
  color: var(--muted);
  margin-bottom: 8px;
}
.tpl-filter {
  border: 1px solid var(--border);
  background: #fff;
  color: #31485a;
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
}
.tpl-filter.is-active,
.tpl-filter:hover { background: var(--navy); color: #fff; border-color: var(--navy); }
.tpl-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.tpl-card {
  display: grid;
  gap: 10px;
  padding: 14px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
}
.tpl-card[hidden] { display: none !important; }
.tpl-card h3 { font-family: var(--font); font-size: 1rem; letter-spacing: 0; }
.tpl-card p { color: var(--muted); font-size: 0.875rem; }
.mini {
  height: 132px;
  padding: 12px;
  border-radius: 8px;
  background: #f7f3ec;
  color: var(--navy);
  overflow: hidden;
}
.mini b { display: block; margin-bottom: 10px; font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; }
.mini span, .mini i, .mini em {
  display: block;
  height: 7px;
  margin: 6px 0;
  border-radius: 99px;
  background: #e4ddd0;
  font-style: normal;
}
.mini-split { width: 55%; background: var(--brand) !important; height: 8px !important; margin-top: 12px !important; }
.mini-reg i { width: 100%; }
.mini-reg i:nth-child(odd) { width: 82%; }
.mini-bank em { width: 100%; height: 10px; background: #fff; border: 1px solid #e4ddd0; }
.mini-letter span { width: 92%; }
.mini-letter u { display: block; width: 48px; height: 16px; margin-top: 12px; border-bottom: 1.5px solid #b7ab9a; }
.mini-stat span { height: 28px; border-radius: 6px; background: #fff; }

@media (max-width: 1040px) {
  .hero::before { display: none; }
  .hero { background: linear-gradient(180deg, #071821 0%, #0a2233 70%, #12384c 100%); }
  .paper-stack { margin: 0 auto; }
  .product-band { margin-top: 0; padding-top: 28px; }
  .tpl-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .paper-stack { height: 360px; }
  .tpl-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .marquee-track { animation: none; flex-wrap: wrap; width: 100%; justify-content: center; }
  .dash-chart span,
  .dash-live b,
  .hero-float,
  .everest-section .erp-feature { animation: none; }
  .service-card:hover,
  .compliance-card:hover,
  .why-card:hover,
  .everest-section .erp-feature:hover { transform: none; }
}
