/* ── HRISH GLOBAL STYLES ── */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,700;0,800;0,900;1,700;1,800&family=Instrument+Sans:ital,wght@0,400;0,500;0,600;0,700;1,400&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  --green: #4CAF78;
  --green-dark: #2d8a55;
  --green-light: #e8f5ee;
  --green-mid: #c5e8d3;
  --black: #0d0d0d;
  --off-black: #1a1a1a;
  --gray: #6b7280;
  --light: #f8faf8;
  --white: #ffffff;
  --border: #e4ede8;
  --dark-bg: #0f1f14;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Instrument Sans', sans-serif;
  background: var(--white);
  color: var(--off-black);
  overflow-x: hidden;
}

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 5vw; height: 60px;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.3s;
}
nav.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,0.06); }

.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;
}

.logo-link {
  display: inline-flex; align-items: center; text-decoration: none; flex-shrink: 0;
  background: var(--white);
  border: 1px solid rgba(228, 237, 232, 0.95);
  border-radius: 10px;
  padding: 0.28rem 0.55rem;
  box-shadow: 0 8px 24px rgba(15, 31, 20, 0.06);
}
.logo-img {
  height: 28px; width: auto; display: block; object-fit: contain;
}
.logo-link-footer {
  background: var(--white);
  border-color: rgba(255, 255, 255, 0.12);
  color: var(--black);
  font-family: 'Instrument Sans', sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  box-shadow: none;
}
.logo-link-footer span { color: var(--green); }
.logo-img-footer {
  height: 26px;
  filter: none;
}
/* Legacy text logo */
.logo {
  font-family: 'Instrument Sans', sans-serif;
  font-size: 1.55rem; font-weight: 700;
  letter-spacing: -0.04em; text-decoration: none; color: var(--black);
}
.logo span { color: var(--green); }

.nav-links {
  list-style: none; display: flex; align-items: center; gap: 0.25rem;
}
.nav-links li a {
  text-decoration: none; font-size: 0.88rem; font-weight: 500;
  color: var(--gray); padding: 0.4rem 0.85rem; border-radius: 6px;
  transition: color 0.2s, background 0.2s;
}
.nav-links li a:hover { color: var(--black); background: var(--light); }
.nav-links li a.active { color: var(--black); font-weight: 600; }

.nav-product {
  position: relative;
  padding: 0.85rem 0;
  margin: -0.85rem 0;
  z-index: 260;
}
.nav-product-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}
.nav-product-trigger::after {
  content: "⌄";
  color: var(--green-dark);
  font-size: 0.78rem;
}
.nav-product-menu {
  position: absolute;
  top: calc(100% - 0.12rem);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  width: min(720px, 92vw);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.2rem;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: 0 24px 70px rgba(15, 31, 20, 0.14);
  padding: 0.55rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
  z-index: 280;
}
.nav-product:hover .nav-product-menu,
.nav-product:focus-within .nav-product-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.nav-product-menu::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -0.9rem;
  height: 0.9rem;
}
.nav-product-menu a {
  display: flex;
  align-items: center;
  gap: 0.42rem;
  padding: 0.48rem 0.55rem !important;
  border-radius: 10px !important;
  color: var(--black) !important;
  font-size: 0.76rem !important;
  font-weight: 760 !important;
}
.product-mark {
  width: 1.28rem;
  height: 1.28rem;
  border-radius: 0.4rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  color: var(--green-dark);
  font-size: 0.8rem;
  font-weight: 900;
  background: var(--green-light);
}
.product-mark svg {
  width: 0.78rem;
  height: 0.78rem;
  display: block;
  stroke: currentColor;
  fill: none;
  stroke-width: 2.35;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.product-core { background: #e8f5ee; color: #2d8a55; }
.product-docs { background: #dbeafe; color: #2563eb; }
.product-payroll { background: #ccfbf1; color: #0f766e; }
.product-fbp { background: #ffedd5; color: #b45309; }
.product-fnf { background: #ede9fe; color: #7c3aed; }
.product-time { background: #e0f2fe; color: #0369a1; }
.product-leave { background: #dcfce7; color: #16a34a; }
.product-workforce { background: #ffe4e6; color: #be123c; }
.product-performance { background: #ffedd5; color: #c2410c; }
.product-analytics { background: #e0e7ff; color: #4338ca; }
.product-reports { background: #f1f5f9; color: #475569; }
.product-engagement { background: #fce7f3; color: #db2777; }
.product-expense { background: #fef3c7; color: #a16207; }
.product-recruitment { background: #cffafe; color: #0891b2; }
.product-helpdesk { background: #e0e7ff; color: #4f46e5; }
.product-asset { background: #ecfccb; color: #365314; }
.nav-product-menu a:hover {
  background: var(--green-light) !important;
  color: var(--green-dark) !important;
}

.nav-cta {
  background: var(--green) !important; color: var(--white) !important;
  padding: 0.5rem 1.2rem !important; border-radius: 7px !important;
  font-weight: 600 !important;
}
.nav-cta:hover { background: var(--green-dark) !important; }

.nav-login {
  color: var(--black) !important;
  border: 1px solid var(--border);
}
.nav-login:hover {
  border-color: var(--green-mid);
  color: var(--green-dark) !important;
}

.nav-mobile-btn {
  display: none; background: none; border: none; cursor: pointer; padding: 0.25rem;
}
.nav-mobile-btn span {
  display: block; width: 22px; height: 2px; background: var(--black);
  margin: 4px 0; border-radius: 2px; transition: all 0.3s;
}

/* ── BUTTONS ── */
.btn-primary {
  background: var(--green); color: var(--white); border: none;
  padding: 0.85rem 1.8rem; border-radius: 8px; font-size: 0.92rem;
  font-weight: 600; cursor: pointer; text-decoration: none;
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: 'Instrument Sans', sans-serif;
  transition: background 0.2s, transform 0.15s;
}
.btn-primary:hover { background: var(--green-dark); transform: translateY(-1px); }

.btn-ghost {
  background: transparent; color: var(--off-black);
  border: 1.5px solid var(--border); padding: 0.85rem 1.8rem;
  border-radius: 8px; font-size: 0.92rem; font-weight: 500;
  cursor: pointer; text-decoration: none;
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: 'Instrument Sans', sans-serif;
  transition: border-color 0.2s, color 0.2s;
}
.btn-ghost:hover { border-color: var(--green); color: var(--green); }

/* ── SECTION SHARED ── */
.section-label {
  display: inline-block; background: var(--green-light);
  color: var(--green-dark); font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  padding: 0.3rem 0.9rem; border-radius: 100px; margin-bottom: 1rem;
}
.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 3.5vw, 2.8rem); font-weight: 800;
  letter-spacing: -0.02em; line-height: 1.12; color: var(--black);
  max-width: 600px; margin-bottom: 1rem;
}
.section-title em { font-style: italic; color: var(--green); }
.section-desc {
  font-size: 1rem; color: var(--gray); line-height: 1.75;
  max-width: 520px; margin-bottom: 3rem;
}

/* ── REVEAL ANIMATION ── */
.reveal {
  opacity: 0; transform: translateY(22px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

.product-scene {
  min-height: 390px;
  overflow: hidden;
  position: relative;
}
.product-scene::before,
.product-scene::after {
  border-radius: 999px;
  content: "";
  position: absolute;
}
.product-scene::before {
  background: rgba(76, 175, 120, 0.18);
  height: 220px;
  right: -80px;
  top: -80px;
  width: 220px;
}
.product-scene::after {
  background: rgba(255, 255, 255, 0.08);
  bottom: -70px;
  height: 170px;
  left: -55px;
  width: 170px;
}
.scene-card,
.scene-side {
  position: relative;
  z-index: 1;
}
.scene-card {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 22px;
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.18);
  color: #102016;
  padding: 1rem;
}
.scene-top {
  display: flex;
  gap: 0.35rem;
  margin-bottom: 1rem;
}
.scene-top span {
  background: #cbd5d0;
  border-radius: 999px;
  display: block;
  height: 0.5rem;
  width: 0.5rem;
}
.scene-head {
  align-items: flex-start;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  margin-bottom: 1rem;
}
.scene-head strong {
  font-family: 'Instrument Sans', sans-serif;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}
.scene-head small {
  background: var(--green-light);
  border-radius: 999px;
  color: var(--green-dark);
  font-size: 0.68rem;
  font-weight: 850;
  padding: 0.28rem 0.55rem;
  text-transform: uppercase;
}
.scene-row {
  align-items: center;
  background: #f4f8f5;
  border: 1px solid #e4ede8;
  border-radius: 14px;
  display: grid;
  gap: 0.8rem;
  grid-template-columns: 2rem minmax(0, 1fr) auto;
  margin-top: 0.55rem;
  padding: 0.65rem;
}
.scene-icon {
  align-items: center;
  background: var(--green);
  border-radius: 10px;
  color: white;
  display: inline-flex;
  font-size: 0.78rem;
  font-weight: 900;
  height: 2rem;
  justify-content: center;
  width: 2rem;
}
.scene-row strong {
  display: block;
  font-size: 0.82rem;
}
.scene-row span:not(.scene-icon) {
  color: #68736c;
  display: block;
  font-size: 0.72rem;
  margin-top: 0.08rem;
}
.scene-status {
  background: #102016;
  border-radius: 999px;
  color: white;
  font-size: 0.68rem;
  font-weight: 850;
  padding: 0.28rem 0.5rem;
  white-space: nowrap;
}
.scene-side {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 0.9rem;
}
.scene-tile {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  padding: 0.85rem;
}
.scene-tile strong {
  color: white;
  display: block;
  font-size: 0.9rem;
}
.scene-tile span {
  color: #b8c9be;
  display: block;
  font-size: 0.74rem;
  line-height: 1.45;
  margin-top: 0.25rem;
}
.product-scene-payroll .scene-icon,
.product-scene-expense .scene-icon,
.product-scene-fbp-loans .scene-icon { background: #0f766e; }
.product-scene-time-office .scene-icon,
.product-scene-leave-management .scene-icon { background: #0369a1; }
.product-scene-recruitment-ats .scene-icon,
.product-scene-performance-management .scene-icon { background: #7c3aed; }
.product-scene-hr-analytics .scene-icon,
.product-scene-reports-dashboards .scene-icon { background: #4338ca; }
.product-scene-employee-engagement .scene-icon,
.product-scene-hr-helpdesk .scene-icon { background: #db2777; }
.product-scene-asset-management .scene-icon,
.product-scene-core-hr .scene-icon { background: #2d8a55; }
.product-scene-letters-digital-documents .scene-icon,
.product-scene-full-and-final-settlement .scene-icon,
.product-scene-workforce-management .scene-icon { background: #2563eb; }

.leave-hero-art {
  min-height: 410px;
  padding: 1.2rem;
}
.leave-art-shell {
  background: linear-gradient(145deg, #ffffff, #eff8f3);
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 26px;
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.18);
  color: #102016;
  overflow: hidden;
  position: relative;
  z-index: 1;
}
.leave-art-head {
  align-items: center;
  background: #ffffff;
  border-bottom: 1px solid #e4ede8;
  display: flex;
  justify-content: space-between;
  padding: 0.95rem 1rem;
}
.leave-art-head strong {
  font-family: 'Instrument Sans', sans-serif;
  font-size: 0.98rem;
  letter-spacing: -0.02em;
}
.leave-art-head span {
  background: #e0f2fe;
  border-radius: 999px;
  color: #0369a1;
  font-size: 0.68rem;
  font-weight: 900;
  padding: 0.32rem 0.6rem;
  text-transform: uppercase;
}
.leave-calendar {
  display: grid;
  gap: 0.45rem;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  padding: 1rem;
}
.leave-calendar span {
  align-items: center;
  background: #f7faf7;
  border: 1px solid #e4ede8;
  border-radius: 12px;
  color: #68736c;
  display: flex;
  font-size: 0.72rem;
  font-weight: 850;
  height: 2.15rem;
  justify-content: center;
}
.leave-calendar .leave-day-name {
  background: transparent;
  border-color: transparent;
  color: #94a39a;
  font-size: 0.62rem;
  height: auto;
  text-transform: uppercase;
}
.leave-calendar .is-leave {
  background: #dbeafe;
  border-color: #93c5fd;
  color: #1d4ed8;
}
.leave-calendar .is-approved {
  background: var(--green-light);
  border-color: rgba(76, 175, 120, 0.45);
  color: var(--green-dark);
}
.leave-art-footer {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: 1fr 1fr;
  padding: 0 1rem 1rem;
}
.leave-balance-card,
.leave-approval-card {
  background: #102016;
  border-radius: 18px;
  color: white;
  padding: 0.9rem;
}
.leave-balance-card strong,
.leave-approval-card strong {
  display: block;
  font-size: 1.45rem;
  line-height: 1;
}
.leave-balance-card span,
.leave-approval-card span {
  color: #b8c9be;
  display: block;
  font-size: 0.74rem;
  line-height: 1.45;
  margin-top: 0.35rem;
}
.leave-approval-card {
  background: var(--green);
}
.leave-floating-note {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid #e4ede8;
  border-radius: 16px;
  bottom: 1rem;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.16);
  color: #102016;
  font-size: 0.82rem;
  font-weight: 850;
  padding: 0.72rem 0.85rem;
  position: absolute;
  right: 0.8rem;
  z-index: 2;
}
@media (max-width: 560px) {
  .leave-art-footer { grid-template-columns: 1fr; }
}

/* ── FOOTER ── */
.site-footer {
  background: var(--off-black);
  padding: 3.5rem 5vw 2.5rem;
  display: grid; grid-template-columns: 2fr 1fr 2fr 1fr; gap: 2.5rem;
}
.seo-footer {
  grid-template-columns: 1.5fr 0.85fr 1.8fr 0.8fr;
  gap: 2rem;
}
.footer-brand .logo-link { margin-bottom: 0.9rem; }
.footer-brand p,
.footer-brand-copy {
  font-size: 0.85rem;
  color: #8b958f;
  line-height: 1.65;
  max-width: 300px;
}
.footer-meta {
  display: grid;
  gap: 0.7rem;
  margin-top: 1rem;
  max-width: 330px;
}
.footer-pill {
  align-items: center;
  background: rgba(76, 175, 120, 0.12);
  border: 1px solid rgba(76, 175, 120, 0.22);
  border-radius: 999px;
  color: #9ee0b8;
  display: inline-flex;
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.06em;
  padding: 0.36rem 0.7rem;
  text-transform: uppercase;
  width: fit-content;
}
.footer-address {
  border-left: 2px solid rgba(76, 175, 120, 0.75);
  color: #9ca3af;
  display: grid;
  font-style: normal;
  gap: 0.18rem;
  line-height: 1.55;
  padding-left: 0.8rem;
}
.footer-address strong {
  color: #d7ded9;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.footer-address span {
  font-size: 0.82rem;
}
.footer-col h4 {
  font-family: 'Instrument Sans', sans-serif;
  font-size: 0.72rem; font-weight: 700; color: #9ca3af;
  text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 1.1rem;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.55rem; }
.footer-col ul li a {
  text-decoration: none; font-size: 0.85rem; color: #6b7280;
  transition: color 0.2s;
}
.footer-col ul li a:hover { color: white; }
.footer-products ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(120px, 1fr));
  gap: 0.5rem 0.85rem;
}
.footer-bottom {
  background: var(--off-black); border-top: 1px solid #2a2a2a;
  padding: 1.5rem 5vw; margin-top: 0;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 0.5rem;
}
.footer-bottom p { font-size: 0.78rem; color: #4b5563; }
.footer-bottom a { color: var(--green); text-decoration: none; }

/* ── MOBILE ── */
@media (max-width: 900px) {
  .nav-links { display: none; flex-direction: column; position: absolute; top: 60px; left: 0; right: 0; background: white; border-bottom: 1px solid var(--border); padding: 1rem 5vw; gap: 0.25rem; }
  .nav-links.open { display: flex; }
  .nav-product { width: 100%; }
  .nav-product-trigger { width: 100%; justify-content: space-between; }
  .nav-product-menu {
    position: static;
    transform: none;
    width: 100%;
    grid-template-columns: 1fr 1fr;
    box-shadow: none;
    opacity: 1;
    pointer-events: auto;
    margin-top: 0.35rem;
    display: grid;
  }
  .nav-product:hover .nav-product-menu,
  .nav-product:focus-within .nav-product-menu {
    transform: none;
  }
  .nav-mobile-btn { display: block; }
  .site-footer,
  .seo-footer { grid-template-columns: 1fr 1fr; }
  .footer-products ul { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .site-footer { grid-template-columns: 1fr; }
}

/* ── CITIES FOOTER ── */
.footer-cities {
  background: #111;
  border-top: 1px solid #222;
  padding: 2.5rem 5vw;
}
.footer-cities-inner {
  display: grid;
  grid-template-columns: auto 1fr 1fr;
  gap: 2rem 4rem;
  align-items: start;
}
.footer-cities-label {
  font-family: 'Instrument Sans', sans-serif;
  font-size: 0.72rem; font-weight: 700; color: #6b7280;
  text-transform: uppercase; letter-spacing: 0.1em;
  white-space: nowrap; padding-top: 0.15rem;
}
.cities-group { display: flex; flex-direction: column; gap: 0.25rem; }
.cities-group-title {
  font-family: 'Instrument Sans', sans-serif;
  font-size: 0.72rem; font-weight: 700; color: #4b5563;
  text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 0.4rem;
}
.cities-links {
  display: flex; flex-wrap: wrap; gap: 0.3rem 0.5rem;
}
.cities-links a {
  font-size: 0.78rem; color: #6b7280; text-decoration: none;
  padding: 0.2rem 0.55rem; border: 1px solid #2a2a2a;
  border-radius: 5px; white-space: nowrap;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}
.cities-links a:hover {
  color: var(--green); border-color: rgba(76,175,120,0.3);
  background: rgba(76,175,120,0.06);
}

/* Tier 2 cities strip */
.footer-tier2 {
  background: #0d0d0d;
  border-top: 1px solid #1a1a1a;
  padding: 1.5rem 5vw;
}
.footer-tier2-inner {
  display: flex; gap: 2rem; align-items: flex-start; flex-wrap: wrap;
}
.tier2-label {
  font-family: 'Instrument Sans', sans-serif;
  font-size: 0.68rem; font-weight: 700; color: #374151;
  text-transform: uppercase; letter-spacing: 0.1em;
  white-space: nowrap; padding-top: 0.2rem; flex-shrink: 0;
}
.tier2-links {
  display: flex; flex-wrap: wrap; gap: 0.25rem 0.4rem;
}
.tier2-links a {
  font-size: 0.72rem; color: #374151; text-decoration: none;
  transition: color 0.15s;
}
.tier2-links a:hover { color: #6b7280; }
.tier2-links a:not(:last-child)::after {
  content: '·'; margin-left: 0.4rem; color: #1f2937;
}

@media (max-width: 900px) {
  .footer-cities-inner { grid-template-columns: 1fr 1fr; }
  .footer-cities-label { display: none; }
}
@media (max-width: 600px) {
  .footer-cities-inner { grid-template-columns: 1fr; }
}

/* Module metric hover cards */
.module-metric.has-feature-popover {
  cursor: default;
  position: relative;
}

.feature-popover {
  background: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 16px;
  box-shadow: 0 18px 45px rgba(7, 20, 11, 0.26);
  color: #213328;
  left: 0;
  min-width: min(280px, 78vw);
  opacity: 0;
  padding: 0.9rem;
  pointer-events: none;
  position: absolute;
  top: calc(100% + 0.6rem);
  transform: translateY(-6px);
  transition: opacity 0.18s ease, transform 0.18s ease;
  visibility: hidden;
  z-index: 25;
}

.feature-popover strong {
  color: #102016;
  display: block;
  font-size: 0.82rem;
  margin-bottom: 0.55rem;
}

.feature-popover ul {
  display: grid;
  gap: 0.4rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.feature-popover li {
  background: #f4f8f5;
  border-radius: 10px;
  color: #26362c;
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.35;
  padding: 0.48rem 0.55rem;
}

.module-metric.has-feature-popover:hover .feature-popover,
.module-metric.has-feature-popover:focus .feature-popover,
.module-metric.has-feature-popover:focus-within .feature-popover {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
  visibility: visible;
}
