/* Custom styles for SJLA Consulting - Premium Edition */

/* Base styles and smooth scrolling */
:root {
  --primary: #1a365d;
  --primary-light: #2d4a7e;
  --secondary: #c59d5f;
  --secondary-light: #d4b77c;
  --dark: #1a202c;
  --light: #f8fafc;
  --gray-100: #f7fafc;
  --gray-200: #edf2f7;
  --gray-300: #e2e8f0;
  --gray-400: #cbd5e0;
  --gray-500: #a0aec0;
  --gray-600: #718096;
  --gray-700: #4a5568;
  --gray-800: #2d3748;
  --gray-900: #1a202c;
  --transition-fast: 0.3s ease;
  --transition-medium: 0.5s ease;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  
  /* Z-index hierarchy */
  --z-background: -1;
  --z-default: 1;
  --z-content: 10;
  --z-overlay: 20;
  --z-dropdown: 30;
  --z-sticky: 40;
  --z-fixed: 50;
  --z-modal: 60;
  --z-popover: 70;
  --z-tooltip: 80;
  --z-nav: 90;
  --z-max: 100;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: hidden;
  width: 100%;
}

body {
  font-family: 'Inter', 'Segoe UI', Roboto, -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.6;
  color: var(--gray-800);
  background-color: var(--light);
  overflow-x: hidden;
  width: 100%;
  position: relative;
  max-width: 100vw;
}

/* Typography enhancements */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', 'Segoe UI', Roboto, sans-serif;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.025em;
}

h1 {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
}

/* Hero section specific typography */
header h1 {
  font-size: 3.5rem;
  font-weight: 800;
  color: white;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  margin-bottom: 1.5rem;
}

h2 {
  font-size: 2.5rem;
  margin-bottom: 1.25rem;
}

h3 {
  font-size: 1.75rem;
  margin-bottom: 1rem;
}

p {
  margin-bottom: 1.5rem;
}

/* Layout and containers */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

section {
  padding: 5rem 0;
  position: relative;
  overflow: hidden;
}

/* Navigation styling */
nav {
  background-color: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
  transition: all var(--transition-fast);
  position: sticky;
  top: 0;
  z-index: var(--z-nav);
  width: 100%;
}

nav.scrolled {
  box-shadow: var(--shadow-md);
}

nav a {
  position: relative;
  font-weight: 500;
  transition: color var(--transition-fast);
}

nav a:after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 0;
  background-color: var(--secondary);
  transition: width var(--transition-fast);
}

nav a:hover:after {
  width: 100%;
}

/* Mobile menu animation */
#mobile-menu {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.5s cubic-bezier(0, 1, 0, 1),
              opacity 0.3s ease;
  visibility: hidden;
  position: relative;
  z-index: var(--z-dropdown);
}

#mobile-menu.open {
  max-height: 300px;
  opacity: 1;
  visibility: visible;
  transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1),
              opacity 0.3s ease;
}

#mobile-menu a {
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  transition-delay: calc(var(--item-index) * 0.05s);
  display: block;
}

#mobile-menu.open a {
  opacity: 1;
  transform: translateY(0);
}

/* Hero section styling */
header {
  min-height: 100vh;
  width: 100%;
  display: flex;
  align-items: center;
  color: white;
  position: relative;
  padding: 0;
  margin: 0;
  overflow: hidden;
  max-width: 100vw;
}

.video-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: var(--z-background);
}

@media (max-width: 768px) {
  header {
    min-height: 100vh;
    height: 100vh; /* Fixed height on mobile */
    width: 100%;
    overflow: hidden;
    max-width: 100vw;
  }
  
  .video-background {
    height: 100vh;
    width: 100%;
    object-position: center;
  }
  
  .container {
    width: 100%;
    max-width: 100%;
  }
}

header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(26, 54, 93, 0.4) 0%, rgba(26, 32, 44, 0.5) 100%);
  z-index: var(--z-default);
}

header .container {
  position: relative;
  z-index: var(--z-content);
}

/* Button styling */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  text-align: center;
  border-radius: 0.375rem;
  transition: all var(--transition-fast);
  cursor: pointer;
  box-shadow: var(--shadow);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.875rem;
}

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

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

.btn-outline {
  background-color: transparent;
  color: white;
  border: 2px solid white;
}

.btn-outline:hover {
  background-color: white;
  color: var(--primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* Card styling */
.card {
  background-color: white;
  border-radius: 0.5rem;
  overflow: hidden;
  transition: all var(--transition-fast);
  box-shadow: var(--shadow);
  height: 100%;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.card-body {
  padding: 1.5rem;
}

/* Section styling */
.section-title {
  position: relative;
  display: inline-block;
  margin-bottom: 3rem;
  color: var(--primary);
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.2;
}

.section-title::after {
  content: '';
  position: absolute;
  width: 60px;
  height: 3px;
  background-color: var(--secondary);
  bottom: -10px;
  left: 0;
}

.section-title.centered {
  text-align: center;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.section-title.centered::after {
  left: 50%;
  transform: translateX(-50%);
}

.bg-light {
  background-color: var(--gray-100);
}

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

/* Modern Testimonial styling */
.testimonial-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

/* Testimonial Grid */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.testimonial-card {
  background-color: white;
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
  position: relative;
  transition: all 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
  border-color: var(--secondary);
}

.testimonial-quote {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  color: var(--secondary);
  opacity: 0.2;
  font-size: 1.5rem;
  transition: all 0.3s ease;
}

.testimonial-card:hover .testimonial-quote {
  opacity: 0.4;
  transform: scale(1.1);
}

.testimonial-rating {
  color: var(--secondary);
  margin-bottom: 1rem;
  display: flex;
  gap: 0.25rem;
}

.testimonial-text {
  color: var(--gray-700);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.testimonial-author {
  display: flex;
  align-items: center;
  margin-top: auto;
}

.testimonial-avatar {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 1rem;
  color: white;
  font-weight: 600;
  font-size: 1rem;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.testimonial-info h4 {
  color: var(--primary);
  font-weight: 600;
  font-size: 1rem;
  margin: 0;
}

.testimonial-info p {
  color: var(--gray-600);
  font-size: 0.85rem;
  margin: 0;
}

/* Featured Testimonials */
.featured-testimonials {
  margin-top: 4rem;
}

.featured-testimonial-tabs {
  display: flex;
  justify-content: center;
  margin-bottom: 2rem;
  gap: 1rem;
}

.featured-tab {
  padding: 0.75rem 1.5rem;
  background-color: transparent;
  border: none;
  border-bottom: 2px solid var(--gray-300);
  color: var(--gray-600);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.featured-tab.active {
  color: var(--primary);
  border-color: var(--secondary);
}

.featured-tab:hover {
  color: var(--primary);
}

.featured-testimonial-content {
  position: relative;
}

.featured-testimonial-panel {
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.featured-testimonial-panel.active {
  display: block;
  opacity: 1;
}

.featured-testimonial-card {
  background-color: white;
  border-radius: 1rem;
  padding: 2.5rem;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.05);
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.featured-testimonial-header {
  display: flex;
  align-items: center;
  margin-bottom: 2rem;
}

.featured-testimonial-avatar {
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 1.5rem;
  color: white;
  font-weight: 600;
  font-size: 1.25rem;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.featured-testimonial-header h4 {
  color: var(--primary);
  font-weight: 700;
  font-size: 1.25rem;
  margin: 0 0 0.25rem 0;
}

.featured-testimonial-header p {
  color: var(--gray-600);
  font-size: 0.9rem;
  margin: 0;
}

.featured-testimonial-body {
  position: relative;
  color: var(--gray-700);
  font-size: 1.05rem;
  line-height: 1.7;
}

.featured-testimonial-body p {
  margin-bottom: 1rem;
}

.featured-testimonial-body p:last-child {
  margin-bottom: 0;
}

.featured-quote-icon {
  position: absolute;
  top: -1.5rem;
  left: -0.5rem;
  color: var(--secondary);
  opacity: 0.1;
  font-size: 3rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .testimonial-grid {
    grid-template-columns: 1fr;
  }
  
  .featured-testimonial-card {
    padding: 1.5rem;
  }
  
  .featured-testimonial-header {
    flex-direction: column;
    text-align: center;
  }
  
  .featured-testimonial-avatar {
    margin-right: 0;
    margin-bottom: 1rem;
  }
  
  .featured-testimonial-tabs {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .featured-tab {
    width: 100%;
  }
}

/* Form styling */
.form-group {
  margin-bottom: 1.5rem;
}

.form-control {
  display: block;
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--gray-800);
  background-color: white;
  background-clip: padding-box;
  border: 1px solid var(--gray-300);
  border-radius: 0.375rem;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-control:focus {
  border-color: var(--secondary);
  outline: 0;
  box-shadow: 0 0 0 3px rgba(197, 157, 95, 0.25);
}

/* Custom animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.animate-fadeIn {
  animation: fadeIn 0.8s ease forwards;
}

.animate-slideInLeft {
  animation: slideInLeft 0.8s ease forwards;
}

.animate-slideInRight {
  animation: slideInRight 0.8s ease forwards;
}

.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }
.delay-400 { animation-delay: 0.4s; }
.delay-500 { animation-delay: 0.5s; }

/* Icon styling */
.icon-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: var(--gray-100);
  color: var(--primary);
  margin-bottom: 1rem;
  transition: all var(--transition-fast);
}

.card:hover .icon-circle {
  background-color: var(--secondary);
  color: white;
  transform: scale(1.1);
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--gray-100);
}

::-webkit-scrollbar-thumb {
  background: var(--gray-400);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--gray-500);
}

/* Footer styling */
footer {
  background-color: var(--dark);
  color: white;
  padding: 4rem 0 2rem;
}

footer a {
  color: var(--gray-400);
  transition: color var(--transition-fast);
}

footer a:hover {
  color: white;
}

footer .social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  color: white;
  transition: all var(--transition-fast);
}

footer .social-icon:hover {
  background-color: var(--secondary);
  transform: translateY(-3px);
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  html {
    font-size: 15px;
  }
}

@media (max-width: 768px) {
  html {
    font-size: 14px;
  }
  
  h1 {
    font-size: 2.75rem;
  }
  
  h2 {
    font-size: 2rem;
  }
  
  section {
    padding: 4rem 0;
  }
  
  .container {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }
}

@media (max-width: 640px) {
  h1 {
    font-size: 2.25rem;
  }
  
  h2 {
    font-size: 1.75rem;
  }
  
  section {
    padding: 3rem 0;
  }
  
  .testimonial-prev,
  .testimonial-next {
    width: 36px;
    height: 36px;
  }
  
  .btn {
    width: 100%;
    margin-bottom: 0.5rem;
  }
}

/* CTA Section */
.cta-section {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  padding: 4rem 0;
  color: white;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?ixlib=rb-1.2.1&auto=format&fit=crop&w=2000&q=80') center/cover no-repeat;
  opacity: 0.1;
  z-index: var(--z-background);
}

.cta-content {
  position: relative;
  z-index: var(--z-content);
}

.cta-secondary {
  background: var(--gray-100);
  padding: 3rem 0;
  border-top: 1px solid var(--gray-200);
  border-bottom: 1px solid var(--gray-200);
}

/* Utility classes */
.text-primary { color: var(--primary); }
.text-secondary { color: var(--secondary); }
.bg-primary { background-color: var(--primary); }
.bg-secondary { background-color: var(--secondary); }
.border-top { border-top: 1px solid var(--gray-200); }
.border-bottom { border-bottom: 1px solid var(--gray-200); }
