/* ==========================================================================
   TALENCIA HR SOLUTIONS - MASTER DESIGN SYSTEM & STYLESHEET
   Brand Colors Derived from Logo: Deep Purple (#4B2A7E), Violet (#6E3ABC), Radiant (#7C4DFF)
   ========================================================================== */

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

:root {
  /* Core Color Palette */
  --primary-purple: #4B2A7E;
  --primary-violet: #583196;
  --primary-dark: #1A1228;
  --primary-light: #F7F4FD;
  --violet-accent: #7C4DFF;
  --violet-glow: rgba(124, 77, 255, 0.25);
  --diamond-sparkle: #A87BFF;
  --text-dark: #221B30;
  --text-muted: #5F586E;
  --text-light: #F9F8FD;
  --bg-white: #FFFFFF;
  --bg-subtle: #FAF8FF;
  --border-color: #E8E1F5;
  --border-glow: rgba(124, 77, 255, 0.4);
  
  /* Gradients */
  --grad-primary: linear-gradient(135deg, #4B2A7E 0%, #6E3ABC 100%);
  --grad-accent: linear-gradient(135deg, #7C4DFF 0%, #A26BFF 100%);
  --grad-dark: linear-gradient(135deg, #1A1228 0%, #2D1A48 100%);
  --grad-glass: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(247, 244, 253, 0.7) 100%);
  
  /* Shadows & Elevation */
  --shadow-sm: 0 4px 12px rgba(75, 42, 126, 0.06);
  --shadow-md: 0 8px 24px rgba(75, 42, 126, 0.12);
  --shadow-lg: 0 16px 40px rgba(75, 42, 126, 0.18);
  --shadow-glow: 0 0 30px rgba(124, 77, 255, 0.35);

  /* Layout & Spacing */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;
  --container-max: 1240px;
  --transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset & Base Styles */
*, *::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-dark);
  background-color: var(--bg-white);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Outfit', sans-serif;
  color: var(--primary-dark);
  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;
}

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

.text-accent {
  color: var(--violet-accent);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  background: var(--primary-light);
  color: var(--primary-purple);
  font-family: 'Outfit', sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  border: 1px solid var(--border-color);
}

.badge-sparkle::before {
  content: '◆';
  color: var(--violet-accent);
  font-size: 0.8rem;
}

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

.btn-primary {
  background: var(--grad-primary);
  color: var(--bg-white);
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
}

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

.btn-secondary:hover {
  background: var(--primary-light);
  transform: translateY(-2px);
}

.btn-outline-white {
  background: transparent;
  color: var(--bg-white);
  border: 2px solid rgba(255, 255, 255, 0.4);
}

.btn-outline-white:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--bg-white);
}

/* Header & Sticky Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.92);
  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 {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 48px;
}

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

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

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

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

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

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

.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
}

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

/* Hero Section & Full-Width 90% Slider System */
.hero {
  position: relative;
  padding: 110px 0 60px;
  background: var(--grad-dark);
  color: var(--bg-white);
  overflow: hidden;
}

.hero-bg-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 30%, rgba(124, 77, 255, 0.25) 0%, transparent 70%);
  pointer-events: none;
}

/* 90% Wide Centered Slider Box */
.hero-slider-wrapper {
  position: relative;
  width: 90%;
  max-width: 1280px;
  margin: 0 auto;
  min-height: 520px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: var(--primary-dark);
}

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

.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: 60px 80px;
}

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

/* Background image inside slide */
.hero-slide-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.42);
  transform: scale(1.05);
  transition: transform 6s ease-out;
}

.hero-slide.active .hero-slide-bg {
  transform: scale(1);
}

.hero-slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(26, 18, 40, 0.88) 0%, rgba(75, 42, 126, 0.65) 60%, rgba(26, 18, 40, 0.40) 100%);
  pointer-events: none;
}

/* Inline Text Content Inside Slide */
.hero-slide-body {
  position: relative;
  z-index: 5;
  max-width: 780px;
  transform: translateY(24px);
  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.4rem;
  color: var(--bg-white);
  margin: 18px 0;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.hero-slide-body p {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 32px;
  line-height: 1.6;
}

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

/* Slider Controls & Navigation */
.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(26, 18, 40, 0.75);
  backdrop-filter: blur(10px);
  color: #FFF;
  border: 1px solid rgba(255, 255, 255, 0.3);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  z-index: 10;
  transition: var(--transition);
}

.slider-btn:hover {
  background: var(--violet-accent);
  border-color: var(--violet-accent);
  box-shadow: 0 0 20px rgba(124, 77, 255, 0.7);
  transform: translateY(-50%) scale(1.08);
}

.slider-prev {
  left: 24px;
}

.slider-next {
  right: 24px;
}

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

.slider-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.6);
  cursor: pointer;
  transition: var(--transition);
}

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


/* Stats Counter Bar */
.stats-bar {
  background: var(--bg-white);
  margin-top: -40px;
  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.5rem;
  color: var(--primary-purple);
  margin-bottom: 4px;
}

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

/* Section Header Shared */
.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 60px;
}

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

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

/* Section Container Spacing */
.section {
  padding: 100px 0;
}

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

.bg-dark {
  background: var(--grad-dark);
  color: var(--bg-white);
}

.bg-dark h2, .bg-dark h3 {
  color: var(--bg-white);
}

/* Mission & Vision Section */
.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(--diamond-sparkle);
}

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

.mv-icon {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-md);
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: var(--primary-purple);
  margin-bottom: 24px;
}

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

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

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

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

.diagnostic-form {
  padding: 48px;
}

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

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

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

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

.form-control:focus {
  outline: none;
  border-color: var(--violet-accent);
  box-shadow: 0 0 0 4px var(--violet-glow);
  background: var(--bg-white);
}

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

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

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--violet-accent);
}

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

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

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

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

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

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

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

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

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary-purple);
  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-muted);
  font-size: 0.95rem;
}

/* Comparison Matrix 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%;
  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(--primary-light);
  font-family: 'Outfit', sans-serif;
  font-size: 1.05rem;
  color: var(--primary-purple);
}

.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: 840px;
  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: 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(--primary-dark);
  cursor: pointer;
}

.faq-answer {
  padding: 0 24px 24px;
  color: var(--text-muted);
  display: none;
  line-height: 1.7;
}

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

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

/* Contact Modal & Banner */
.cta-banner {
  background: var(--grad-primary);
  color: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 64px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

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

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

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

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

.footer-brand p {
  margin: 20px 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: 24px;
  position: relative;
}

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

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

.footer-links a:hover {
  color: var(--diamond-sparkle);
  padding-left: 4px;
}

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

/* Modal Window */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(26, 18, 40, 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: 600px;
  width: 100%;
  padding: 40px;
  position: relative;
  box-shadow: var(--shadow-lg);
  animation: modalSlide 0.3s ease-out;
}

@keyframes modalSlide {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-muted);
}

/* Responsive Media Queries */
@media (max-width: 992px) {
  .hero-grid, .split-grid, .diagnostic-grid {
    grid-template-columns: 1fr;
  }
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .stats-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%;
    background: var(--bg-white);
    flex-direction: column;
    padding: 32px;
    box-shadow: var(--shadow-md);
    display: none;
  }
  .nav-menu.active {
    display: flex;
  }
  .mobile-toggle {
    display: flex;
  }
  .hero-content h1 {
    font-size: 2.5rem;
  }
  .services-grid, .mv-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
}
