/*
Theme Name: HRMS Software India V6
Theme URI: https://hrmssoftwareinindia.com
Author: HRMS Software India
Author URI: https://hrmssoftwareinindia.com
Description: Custom WordPress theme for HRMS Software India - India's #1 HRMS for Statutory Compliance
Version: 1.0.6
License: Proprietary
Text Domain: hrms-india
*/

/* ═══════════ CSS VARIABLES ═══════════ */
:root {
  --background: #ffffff;
  --foreground: #1E293B;
  --rose: #60D184;
  --rose-dark: #3CB371;
  --cta-primary-bg: #0E3B32;
  --cta-primary-text: #FFFFFF;
  --cta-secondary-bg: #CFF25E;
}

/* ═══════════ BASE ═══════════ */
html { scroll-behavior: smooth; overflow-x: hidden; }

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

body {
  background: #FAF9F5;
  color: #6A7282;
  font-family: "Public Sans", system-ui, -apple-system, sans-serif;
  font-size: 15px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

main {
  background-color: #F8FAFC;
  background-image: repeating-linear-gradient(
    90deg,
    rgba(15, 23, 42, 0.06) 0px,
    rgba(15, 23, 42, 0.06) 1px,
    transparent 1px,
    transparent 84px
  );
}

h1, h2, h3, h4, h5, h6 {
  color: #141413;
  font-family: "Public Sans", system-ui, sans-serif;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
ul, ol { list-style: none; }

*:focus-visible {
  outline: 2px solid #60D184;
  outline-offset: 2px;
  border-radius: 4px;
}

/* ═══════════ HERO GRADIENT ═══════════ */
.hero-gradient {
  background: linear-gradient(180deg, #FFFFFF 0%, #F0FDF4 20%, #DCFCE7 40%, #BBF7D0 60%, #ECFDF5 80%, #FFFFFF 100%);
  position: relative;
}
.hero-gradient::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 12% 14%, rgba(96,209,132,0.14), transparent 46%),
    radial-gradient(circle at 84% 20%, rgba(187,247,208,0.16), transparent 44%),
    radial-gradient(circle at 52% 84%, rgba(220,252,231,0.22), transparent 48%);
  pointer-events: none;
}

.bg-pastel {
  background: linear-gradient(135deg, #F0FDF4, #DCFCE7, #BBF7D0, #ECFDF5);
}

/* ═══════════ DASHBOARD 3D ═══════════ */
.dashboard-3d {
  transform: perspective(1200px) rotateX(2deg);
  transition: transform 0.5s ease;
  box-shadow: 0 20px 60px rgba(0,0,0,0.08), 0 8px 24px rgba(0,0,0,0.04);
}
.dashboard-3d:hover {
  transform: perspective(1200px) rotateX(0deg);
}

/* ═══════════ CTA SYSTEM ═══════════ */
.cta-base {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  gap: 10px;
  white-space: nowrap;
  border-radius: 9999px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  transition: background-color 180ms ease, color 180ms ease, border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}
.cta-base:active { transform: translateY(1px); }

.cta-primary {
  background: var(--cta-primary-bg);
  color: var(--cta-primary-text);
  border: 1.5px solid var(--cta-primary-bg);
  box-shadow: 0 10px 24px rgba(14,59,50,0.22);
}
.cta-primary:hover {
  background: #60D184;
  border-color: #60D184;
  color: #FFFFFF;
  box-shadow: 0 14px 32px rgba(96,209,132,0.35);
}
.cta-primary:active { background: #3CB371; border-color: #3CB371; color: #FFFFFF; }

.cta-secondary {
  background: #FFFFFF;
  color: #0F172A;
  border: 1.5px solid #D1D5DB;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}
.cta-secondary:hover {
  background: #CFF25E;
  border-color: #B8E545;
  color: #112F27;
  box-shadow: 0 14px 32px rgba(207,242,94,0.3);
}
.cta-secondary:active { background: #C2EB45; border-color: #A8D63E; color: #112F27; }

.cta-arrow {
  width: 24px; height: 24px;
  border-radius: 9999px;
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: background-color 180ms ease, color 180ms ease, transform 180ms ease;
}
.cta-primary .cta-arrow { background: #FFFFFF; color: #0E3B32; }
.cta-primary:hover .cta-arrow { background: #FFFFFF; color: #3CB371; transform: translateX(3px); }
.cta-secondary .cta-arrow { background: #0E3B32; color: #FFFFFF; }
.cta-secondary:hover .cta-arrow { background: #112F27; color: #CFF25E; transform: translateX(3px); }

.cta-sm { min-height: 40px; padding: 10px 18px; font-size: 13px; }
.cta-md { min-height: 46px; padding: 12px 26px; font-size: 14px; }
.cta-lg { min-height: 56px; padding: 14px 28px; font-size: 15px; }

/* ═══════════ CARD HOVERS ═══════════ */
.compliance-card { transition: all 0.3s ease; }
.compliance-card:hover {
  border-color: #BBF7D0 !important;
  box-shadow: 0 12px 28px rgba(16,185,129,0.08);
  transform: translateY(-2px);
}

.feature-deep-card { transition: all 0.3s ease; }
.feature-deep-card:hover {
  border-color: #BBF7D0 !important;
  box-shadow: 0 16px 36px rgba(16,185,129,0.10);
  transform: translateY(-3px);
}

.advantage-card { transition: all 0.3s ease; }
.advantage-card:hover {
  background: rgba(255,255,255,0.08) !important;
  border-color: rgba(207,242,94,0.3) !important;
  transform: translateY(-2px);
}

/* ═══════════ FAQ ACCORDION ═══════════ */
details summary { list-style: none; }
details summary::-webkit-details-marker { display: none; }
details[open] .faq-chevron { transform: rotate(180deg); }
.faq-chevron { transition: transform 0.25s ease; }
details[open] .faq-icon {
  background: #0E3B32 !important;
  color: #CFF25E !important;
  border-color: #0E3B32 !important;
}

/* ═══════════ LAYOUT UTILITIES ═══════════ */
.container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.container-sm { max-width: 860px; margin: 0 auto; padding: 0 24px; }
.text-center { text-align: center; }

.grid { display: grid; }
.grid-1 { grid-template-columns: 1fr; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-5 { grid-template-columns: repeat(5, 1fr); }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }
.gap-5 { gap: 20px; }
.gap-6 { gap: 24px; }
.gap-8 { gap: 32px; }

.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }

.w-full { width: 100%; }
.relative { position: relative; }
.overflow-hidden { overflow: hidden; }
.shrink-0 { flex-shrink: 0; }

.space-y-3 > * + * { margin-top: 12px; }
.space-y-4 > * + * { margin-top: 16px; }
.space-y-5 > * + * { margin-top: 20px; }
.space-y-6 > * + * { margin-top: 24px; }

/* ═══════════ NAVBAR ═══════════ */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,0.95); backdrop-filter: blur(12px); border-bottom: 1px solid #E2E8F0; }
.nav-wrap { max-width: 1280px; margin: 0 auto; padding: 0 24px; display: flex; align-items: center; justify-content: space-between; height: 64px; }
.nav-logo img { height: 32px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 8px; }
.nav-link { padding: 8px 14px; font-size: 14px; font-weight: 600; color: #475569; border-radius: 8px; transition: all 200ms; }
.nav-link:hover { color: #0E3B32; background: #F0FDF4; }

.dropdown { position: relative; }
.dropdown-menu {
  position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
  background: #fff; border: 1px solid #E2E8F0; border-radius: 16px;
  padding: 20px; min-width: 560px; box-shadow: 0 20px 50px rgba(0,0,0,0.12);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: all 200ms ease;
}
.dropdown:hover .dropdown-menu,
.dropdown.open .dropdown-menu {
  opacity: 1; visibility: visible; pointer-events: auto;
}

body.mobile-menu-open { overflow: hidden; }
.mobile-menu {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  top: var(--mobile-menu-top, 112px);
  height: calc(100dvh - var(--mobile-menu-top, 112px));
  background: #FFFFFF;
  border-top: 1px solid #E2E8F0;
  box-shadow: 0 20px 48px rgba(15, 23, 42, 0.14);
  z-index: 45;
}
.mobile-menu-panel {
  max-width: 480px;
  margin: 0 auto;
  padding: 22px 18px calc(28px + env(safe-area-inset-bottom));
  overflow-y: auto;
  height: 100%;
  -webkit-overflow-scrolling: touch;
}
.hamburger {
  display: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  border: 1px solid #E2E8F0;
  background: #FFFFFF;
  transition: all 200ms ease;
}
.hamburger:hover { background: #F8FAFC; border-color: #CBD5E1; }

/* ═══════════ TOP BAR ═══════════ */
.top-bar {
  background: #0E3B32; color: #fff; padding: 6px 0; font-size: 12px;
  display: flex; align-items: center; overflow: hidden;
}
.top-bar a { color: #CFF25E; font-weight: 600; }
.top-bar a:hover { text-decoration: underline; }

/* ═══════════ FOOTER ═══════════ */
.site-footer { background: #fff; border-top: 1px solid #E2E8F0; padding: 56px 0 32px; }
.footer-bottom { background: #F8FAFC; padding: 20px 0; border-top: 1px solid #E2E8F0; }

/* ═══════════ MARQUEE SCROLL ═══════════ */
@keyframes scrollLeft {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@keyframes scrollRight {
  from { transform: translateX(-50%); }
  to { transform: translateX(0); }
}
.marquee-left { animation: scrollLeft 40s linear infinite; }
.marquee-right { animation: scrollRight 40s linear infinite; }
.marquee-left:hover, .marquee-right:hover { animation-play-state: paused; }

/* ═══════════ OLD VS NEW ANIMATIONS ═══════════ */
@keyframes fadeSlideIn {
  from { opacity: 0; transform: translateX(8px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes slideInDown {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes slideInUp {
  from { opacity: 0; transform: translateY(-16px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ═══════════ STATS COUNTER ═══════════ */
@keyframes countUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
.stat-animate { animation: countUp 0.6s ease forwards; }

/* ═══════════ RESPONSIVE ═══════════ */
@media (max-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-5 { grid-template-columns: repeat(2, 1fr); }
  .lg-grid-2 { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .grid-2, .grid-3, .grid-4, .grid-5 { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .mobile-menu.active { display: block; }
  .container { padding: 0 16px; }
  .hide-mobile { display: none !important; }
  .flex-col-mobile { flex-direction: column; }
  .site-header { border-bottom: 1px solid #E2E8F0; }
  .nav-wrap { padding: 0 16px; height: 68px; }
  .nav-logo img { height: 46px; }
  .dropdown-menu { display: none !important; }
}

@media (min-width: 640px) {
  .sm\:flex-row { flex-direction: row; }
}

@media (min-width: 768px) {
  .md\:flex-row { flex-direction: row; }
}

@media (min-width: 1024px) {
  .lg\:flex-row { flex-direction: row; }
}

/* TYPOGRAPHY SYSTEM */
.type-hero-title {
  font-size: clamp(38px, 5.5vw, 64px);
  font-weight: 800;
  color: #1E293B;
  line-height: 1.1;
  letter-spacing: -2.5px;
  margin-bottom: 20px;
}

.type-hero-subtitle {
  font-family: "Public Sans", system-ui, -apple-system, sans-serif;
  font-size: clamp(16px, 1.8vw, 18px);
  font-weight: 400;
  letter-spacing: 0;
  color: #64748B;
  line-height: 1.7;
  margin-bottom: 32px;
}

.type-section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.type-section-title {
  font-size: clamp(30px, 3.8vw, 44px);
  font-weight: 800;
  color: #0F172A;
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin-bottom: 14px;
}

.type-section-subtitle {
  font-size: 16px;
  color: #64748B;
  line-height: 1.7;
}

.type-section-subtitle-lg {
  font-size: 17px;
  color: #64748B;
  line-height: 1.75;
}

.type-card-title {
  font-size: 17px;
  font-weight: 700;
  color: #0F172A;
}

.type-card-title-lg {
  font-size: 18px;
  font-weight: 700;
  color: #0F172A;
  line-height: 1.3;
}

.type-card-body {
  font-size: 14px;
  color: #64748B;
  line-height: 1.65;
}

.type-card-body-sm {
  font-size: 13px;
  color: #64748B;
  line-height: 1.7;
}

.type-caption {
  font-size: 13px;
  color: #94A3B8;
  font-weight: 500;
}

.type-note {
  font-size: 15px;
  color: #64748B;
}

@media (max-width: 480px) {
  .cta-lg { min-height: 52px; padding: 12px 22px; font-size: 14px; }
  .mobile-menu-panel { padding-left: 16px; padding-right: 16px; }
}
