/* ==========================================================================
   TALENCIA HR SOLUTIONS - LIGHT, ELEGANT & ULTRA-READABLE DESIGN SYSTEM
   Theme: Crisp Executive White, Soft Lavender Tint & WhatsApp-Style HR Pattern
   Colors: Deep Purple (#4B2A7E), Radiant Violet (#6E3ABC), Soft Background (#F9F6FF)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Outfit:wght@400;500;600;700;800;900&display=swap');

:root {
  /* High-Contrast Readability Color Palette */
  --primary-purple: #4B2A7E;
  --primary-violet: #6E3ABC;
  --violet-accent: #8E3CE8;
  --primary-dark: #1C102E;
  --text-heading: #1C102E;
  --text-body: #3E344D;
  --text-muted: #5E536E;
  
  /* Surfaces & Backgrounds */
  --bg-white: #FFFFFF;
  --bg-subtle: #F9F6FF;
  --bg-lavender-tint: #F3ECFF;
  --border-color: #E6D8FF;
  --border-subtle: #EFE6FF;
  
  /* Gradients */
  --grad-primary: linear-gradient(135deg, #4B2A7E 0%, #6E3ABC 100%);
  --grad-accent: linear-gradient(135deg, #6E3ABC 0%, #8E3CE8 100%);
  --grad-hero-light: linear-gradient(135deg, #F8F4FE 0%, #EFE5FF 50%, #F5ECFF 100%);
  --grad-card: linear-gradient(135deg, #FFFFFF 0%, #FAF6FF 100%);
  --grad-badge: linear-gradient(135deg, rgba(110, 58, 188, 0.12) 0%, rgba(142, 60, 232, 0.08) 100%);
  
  /* Shadows & Elevation */
  --shadow-sm: 0 4px 14px rgba(75, 42, 126, 0.06);
  --shadow-md: 0 8px 24px rgba(75, 42, 126, 0.1);
  --shadow-lg: 0 16px 40px rgba(75, 42, 126, 0.15);
  
  /* Layout & Spacing */
  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 24px;
  --radius-full: 9999px;
  --container-max: 1240px;
  --transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset & Base Setup */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', sans-serif;
  color: var(--text-body);
  background-color: var(--bg-white);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body.nav-open {
  overflow: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Outfit', sans-serif;
  color: var(--text-heading);
  font-weight: 700;
  line-height: 1.25;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul {
  list-style: none;
}

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

/* WhatsApp-Style Light HR Pattern Background Class */
.bg-hr-pattern {
  background-color: var(--bg-subtle);
  background-image: url('../images/hr_pattern_bg.svg');
  background-repeat: repeat;
  background-size: 260px 260px;
}

/* Typography & Gradient Utilities */
.text-gradient {
  background: var(--grad-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: var(--radius-full);
  background: var(--grad-badge);
  color: var(--primary-violet);
  font-family: 'Outfit', sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  border: 1px solid var(--border-color);
}

.badge-sparkle::before {
  content: '✦';
  color: var(--primary-violet);
}

/* Button System */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 32px;
  font-family: 'Outfit', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: var(--transition);
  border: none;
  outline: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--grad-primary);
  color: var(--bg-white);
  box-shadow: 0 6px 20px rgba(75, 42, 126, 0.25);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(75, 42, 126, 0.35);
}

.btn-secondary {
  background: var(--bg-white);
  color: var(--primary-purple);
  border: 2px solid var(--primary-violet);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  background: var(--bg-subtle);
  transform: translateY(-2px);
  color: var(--violet-accent);
}

.btn-outline-dark {
  background: var(--bg-white);
  color: var(--text-heading);
  border: 2px solid var(--border-color);
}

.btn-outline-dark:hover {
  background: var(--bg-subtle);
  border-color: var(--primary-violet);
  color: var(--primary-violet);
  transform: translateY(-2px);
}

/* Sticky Navigation Bar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
  transition: var(--transition);
}

.navbar .nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.brand-logo img {
  height: 46px;
  width: auto;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  color: var(--text-heading);
  position: relative;
  padding: 8px 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 3px;
  background: var(--grad-primary);
  border-radius: 2px;
  transition: var(--transition);
}

.nav-link:hover, .nav-link.active {
  color: var(--primary-violet);
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

.mobile-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 44px;
  height: 44px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  cursor: pointer;
  padding: 8px;
  z-index: 1100;
}

.mobile-toggle span {
  width: 100%;
  height: 3px;
  background: var(--primary-purple);
  border-radius: 2px;
  transition: var(--transition);
}

.mobile-toggle.active span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

.mobile-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-toggle.active span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

/* Light, Crisp & Readable 90% Hero Slider Section */
.hero {
  position: relative;
  padding: 110px 0 50px;
  background: var(--grad-hero-light);
  overflow: hidden;
}

.hero-slider-wrapper {
  position: relative;
  width: 92%;
  max-width: 1280px;
  margin: 0 auto;
  min-height: 500px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 2px solid var(--border-color);
  background: var(--bg-white);
}

.hero-slider-track {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 500px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s ease-in-out, visibility 0.8s ease-in-out;
  display: flex;
  align-items: center;
  padding: 50px 70px;
}

.hero-slide.active {
  opacity: 1;
  visibility: visible;
}

.hero-slide-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.92);
}

.hero-slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 244, 254, 0.88) 55%, rgba(255, 255, 255, 0.70) 100%);
  pointer-events: none;
}

.hero-slide-body {
  position: relative;
  z-index: 5;
  max-width: 760px;
  transform: translateY(20px);
  opacity: 0;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.2s, opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.2s;
}

.hero-slide.active .hero-slide-body {
  transform: translateY(0);
  opacity: 1;
}

.hero-slide-body h1 {
  font-size: 3.2rem;
  color: var(--text-heading);
  margin: 16px 0;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.hero-slide-body p {
  font-size: 1.2rem;
  color: var(--text-body);
  margin-bottom: 28px;
  line-height: 1.65;
}

.hero-slide-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  color: var(--primary-purple);
  border: 1px solid var(--border-color);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  z-index: 10;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.slider-btn:hover {
  background: var(--primary-violet);
  color: var(--bg-white);
  border-color: var(--primary-violet);
  transform: translateY(-50%) scale(1.08);
}

.slider-prev { left: 20px; }
.slider-next { right: 20px; }

.slider-dots {
  position: absolute;
  bottom: 20px;
  right: 36px;
  display: flex;
  gap: 10px;
  z-index: 10;
}

.slider-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(75, 42, 126, 0.25);
  border: 1px solid var(--border-color);
  cursor: pointer;
  transition: var(--transition);
}

.slider-dot.active {
  background: var(--primary-violet);
  width: 32px;
  border-radius: var(--radius-full);
}

/* Statistics Bar */
.stats-bar {
  background: var(--bg-white);
  margin-top: -36px;
  position: relative;
  z-index: 10;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 32px 48px;
  border: 1px solid var(--border-color);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}

.stat-item h3 {
  font-size: 2.6rem;
  color: var(--primary-purple);
  margin-bottom: 4px;
  font-weight: 800;
}

.stat-item p {
  font-size: 0.95rem;
  color: var(--text-muted);
  font-weight: 600;
}

/* Shared Sections */
.section {
  padding: 85px 0;
}

.bg-subtle {
  background-color: var(--bg-subtle);
}

.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 52px;
}

.section-header h2 {
  font-size: 2.5rem;
  margin: 14px 0;
}

.section-header p {
  font-size: 1.1rem;
  color: var(--text-muted);
}

/* Mission & Vision Cards */
.mv-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.mv-card {
  background: var(--bg-white);
  padding: 40px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}

.mv-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-violet);
}

.mv-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 6px;
  height: 100%;
  background: var(--grad-primary);
}

.mv-icon {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-md);
  background: var(--bg-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: var(--primary-violet);
  margin-bottom: 20px;
  border: 1px solid var(--border-color);
}

.mv-card h3 {
  font-size: 1.75rem;
  margin-bottom: 14px;
}

.mv-card p {
  color: var(--text-body);
  font-size: 1.02rem;
  line-height: 1.7;
}

/* Interactive HR Health Audit Tool */
.diagnostic-box {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
  overflow: hidden;
}

.diagnostic-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
}

.diagnostic-form {
  padding: 44px;
}

.diagnostic-results {
  background: var(--grad-primary);
  color: var(--bg-white);
  padding: 44px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-heading);
}

.form-control {
  width: 100%;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  font-family: inherit;
  font-size: 1rem;
  transition: var(--transition);
  background: var(--bg-subtle);
  color: var(--text-heading);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-violet);
  box-shadow: 0 0 0 3px rgba(110, 58, 188, 0.15);
  background: var(--bg-white);
}

/* Service Cards System */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.service-card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  padding: 36px;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-violet);
}

.service-icon-wrapper {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: var(--bg-subtle);
  color: var(--primary-purple);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 20px;
  border: 1px solid var(--border-color);
}

.service-card h3 {
  font-size: 1.35rem;
  margin-bottom: 12px;
}

.service-card p {
  color: var(--text-body);
  font-size: 0.98rem;
  margin-bottom: 24px;
}

.service-link {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  color: var(--primary-purple);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.service-link:hover {
  color: var(--violet-accent);
  gap: 12px;
}

/* Feature Split */
.split-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.feature-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 28px;
}

.feature-item {
  display: flex;
  gap: 16px;
}

.feature-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--grad-primary);
  color: var(--bg-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  flex-shrink: 0;
}

.feature-content h4 {
  font-size: 1.15rem;
  margin-bottom: 4px;
}

.feature-content p {
  color: var(--text-body);
  font-size: 0.95rem;
}

/* Comparison Table */
.table-responsive {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

.matrix-table {
  width: 100%;
  min-width: 660px;
  border-collapse: collapse;
  background: var(--bg-white);
  text-align: left;
}

.matrix-table th, .matrix-table td {
  padding: 18px 24px;
  border-bottom: 1px solid var(--border-color);
}

.matrix-table th {
  background: var(--bg-subtle);
  font-family: 'Outfit', sans-serif;
  font-size: 1.05rem;
  color: var(--primary-purple);
  font-weight: 700;
}

.matrix-table tr:hover td {
  background: var(--bg-subtle);
}

.check-icon {
  color: #10B981;
  font-weight: 700;
}

/* FAQ Accordion */
.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 860px;
  margin: 0 auto;
}

.faq-item {
  background: var(--bg-white);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  overflow: hidden;
  transition: var(--transition);
}

.faq-question {
  width: 100%;
  padding: 22px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: none;
  border: none;
  text-align: left;
  font-family: 'Outfit', sans-serif;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-heading);
  cursor: pointer;
  gap: 16px;
}

.faq-answer {
  padding: 0 24px 22px;
  color: var(--text-body);
  display: none;
  line-height: 1.7;
  font-size: 1rem;
}

.faq-item.active {
  border-color: var(--primary-violet);
  box-shadow: var(--shadow-sm);
}

.faq-item.active .faq-answer {
  display: block;
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
  color: var(--primary-violet);
}

/* CTA Banner */
.cta-banner {
  background: var(--grad-primary);
  color: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 60px 44px;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.cta-banner h2 {
  color: var(--bg-white);
  font-size: 2.6rem;
  margin-bottom: 14px;
}

.cta-banner p {
  font-size: 1.2rem;
  margin-bottom: 28px;
  opacity: 0.95;
}

/* Footer Section */
.footer {
  background: var(--primary-dark);
  color: rgba(255, 255, 255, 0.85);
  padding: 70px 0 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.2fr 1.5fr;
  gap: 44px;
  margin-bottom: 50px;
}

.footer-brand p {
  margin: 18px 0;
  font-size: 0.95rem;
  line-height: 1.7;
}

.footer-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.1rem;
  color: var(--bg-white);
  margin-bottom: 20px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.95rem;
}

.footer-links a:hover {
  color: #D6BCFF;
  padding-left: 4px;
}

.footer-bottom {
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.9rem;
  flex-wrap: wrap;
  gap: 16px;
}

/* Modal Window */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(28, 16, 46, 0.75);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.modal-content {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  max-width: 580px;
  width: 100%;
  padding: 36px;
  position: relative;
  box-shadow: var(--shadow-lg);
  max-height: 90vh;
  overflow-y: auto;
}

.modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  background: var(--bg-subtle);
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1.3rem;
  cursor: pointer;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Floating WhatsApp Mobile Button */
.floating-contact-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 990;
  background: #25D366;
  color: #FFF;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
  transition: var(--transition);
}

.floating-contact-btn:hover {
  transform: scale(1.1);
}

/* Responsive Media Queries */
@media (max-width: 1024px) {
  .hero-slider-wrapper {
    width: 95%;
    min-height: 460px;
  }
  .hero-slide {
    padding: 40px;
  }
  .hero-slide-body h1 {
    font-size: 2.6rem;
  }
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    top: 80px;
    left: 0;
    width: 100%;
    height: calc(100vh - 80px);
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 36px 24px;
    gap: 20px;
    box-shadow: var(--shadow-lg);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease, visibility 0.4s ease;
    overflow-y: auto;
  }

  .nav-menu.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav-link {
    font-size: 1.2rem;
    width: 100%;
    text-align: center;
    padding: 10px 0;
  }

  .mobile-toggle {
    display: flex;
  }

  .hero {
    padding: 95px 0 36px;
  }

  .hero-slider-wrapper {
    width: 100%;
    border-radius: 0;
    border-left: none;
    border-right: none;
    min-height: 460px;
  }

  .hero-slide {
    padding: 32px 20px;
  }

  .hero-slide-body h1 {
    font-size: 2rem;
  }

  .hero-slide-body p {
    font-size: 1rem;
  }

  .hero-slide-actions {
    flex-direction: column;
    width: 100%;
  }

  .hero-slide-actions .btn {
    width: 100%;
  }

  .slider-btn {
    width: 38px;
    height: 38px;
    font-size: 1.1rem;
  }

  .slider-prev { left: 8px; }
  .slider-next { right: 8px; }

  .slider-dots {
    bottom: 14px;
    right: 50%;
    transform: translateX(50%);
  }

  .stats-bar {
    margin-top: 20px;
    padding: 24px 16px;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .stat-item h3 {
    font-size: 2rem;
  }

  .section {
    padding: 55px 0;
  }

  .section-header h2 {
    font-size: 1.9rem;
  }

  .services-grid, .mv-grid, .split-grid, .diagnostic-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .diagnostic-form, .diagnostic-results {
    padding: 24px 18px;
  }

  .cta-banner {
    padding: 36px 20px;
  }

  .cta-banner h2 {
    font-size: 1.9rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}
