/* styles.css - Kanooni Salaha Premium CSS Design System */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;0,700;1,400&family=Montserrat:wght@300;400;500;600;700&display=swap');

:root {
  /* Color Palette - HSL values for flexibility */
  --primary-navy-raw: 224, 60%, 11%;
  --primary-navy: hsl(var(--primary-navy-raw));
  --primary-navy-dark: hsl(224, 65%, 6%);
  --primary-navy-light: hsl(224, 45%, 18%);
  
  --secondary-burgundy-raw: 348, 60%, 25%;
  --secondary-burgundy: hsl(var(--secondary-burgundy-raw));
  --secondary-burgundy-dark: hsl(348, 65%, 18%);
  
  --accent-gold-raw: 43, 60%, 55%;
  --accent-gold: hsl(var(--accent-gold-raw));
  --accent-gold-light: hsl(43, 70%, 65%);
  --accent-gold-dark: hsl(43, 65%, 42%);
  
  --text-light: #f8f9fa;
  --text-dark: #212529;
  --text-gray: #6c757d;
  --text-muted: #adb5bd;
  
  --bg-light: #f4f6f9;
  --bg-white: #ffffff;
  --border-light: rgba(197, 160, 89, 0.15);
  --border-gold-solid: #c5a059;
  
  /* Fonts */
  --font-heading: 'Cormorant Garamond', serif;
  --font-body: 'Montserrat', sans-serif;
  
  /* Layout */
  --header-height: 80px;
  --sidebar-width: 260px;
  --border-radius-sm: 4px;
  --border-radius-md: 8px;
  --border-radius-lg: 16px;
  --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.15);
  --shadow-gold: 0 4px 20px rgba(197, 160, 89, 0.2);
  
  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-light);
  color: var(--text-dark);
  line-height: 1.6;
  font-size: 15px;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--primary-navy);
  font-weight: 600;
  line-height: 1.25;
}

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

/* Glassmorphism Styles */
.glass-panel {
  background: rgba(10, 17, 40, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(197, 160, 89, 0.2);
  color: var(--text-light);
}

.glass-panel-light {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(197, 160, 89, 0.15);
  box-shadow: var(--shadow-md);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 14px 28px;
  border-radius: var(--border-radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background-color: var(--accent-gold);
  color: var(--primary-navy-dark);
  box-shadow: var(--shadow-gold);
}

.btn-primary:hover {
  background-color: var(--accent-gold-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(197, 160, 89, 0.35);
}

.btn-secondary {
  background-color: transparent;
  border-color: var(--accent-gold);
  color: var(--accent-gold);
}

.btn-secondary:hover {
  background-color: var(--accent-gold);
  color: var(--primary-navy-dark);
  transform: translateY(-2px);
}

.btn-burgundy {
  background-color: var(--secondary-burgundy);
  color: var(--text-light);
}

.btn-burgundy:hover {
  background-color: var(--secondary-burgundy-dark);
  transform: translateY(-2px);
}

.btn-outline-white {
  background: transparent;
  border-color: rgba(255,255,255,0.4);
  color: var(--text-light);
}

.btn-outline-white:hover {
  border-color: var(--accent-gold);
  color: var(--accent-gold);
  background: rgba(255,255,255,0.05);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.75rem;
}

/* Disclaimer Popup */
.disclaimer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(5, 10, 24, 0.95);
  z-index: 10000;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
  transition: opacity var(--transition-slow);
}

.disclaimer-modal {
  max-width: 650px;
  width: 100%;
  border-radius: var(--border-radius-md);
  padding: 40px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--accent-gold);
  text-align: center;
  animation: modalFadeIn var(--transition-slow) forwards;
}

.disclaimer-modal h2 {
  font-size: 2.2rem;
  color: var(--accent-gold);
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.disclaimer-content {
  text-align: justify;
  margin-bottom: 30px;
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
  max-height: 250px;
  overflow-y: auto;
  padding-right: 15px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.disclaimer-content::-webkit-scrollbar {
  width: 4px;
}
.disclaimer-content::-webkit-scrollbar-thumb {
  background: var(--accent-gold);
  border-radius: 2px;
}

/* Header & Nav */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 4%;
  z-index: 999;
  transition: var(--transition-normal);
}

.header.scrolled {
  background: var(--primary-navy-dark);
  box-shadow: var(--shadow-md);
  border-bottom: 1px solid var(--border-light);
  height: 70px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-icon {
  font-size: 2rem;
  color: var(--accent-gold);
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-title {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text-light);
  letter-spacing: 1px;
  line-height: 1.1;
}

.logo-subtitle {
  font-size: 0.65rem;
  letter-spacing: 2px;
  color: var(--accent-gold);
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 25px;
  list-style: none;
}

.nav-item a {
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  padding: 6px 0;
  position: relative;
}

.nav-item a:hover, .nav-item.active a {
  color: var(--text-light);
}

.nav-item a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1.5px;
  background-color: var(--accent-gold);
  transition: var(--transition-normal);
}

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

.nav-controls {
  display: flex;
  align-items: center;
  gap: 15px;
}

.lang-selector {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-light);
  border: 1px solid rgba(255,255,255,0.15);
  padding: 6px 12px;
  border-radius: var(--border-radius-sm);
  font-size: 0.75rem;
  cursor: pointer;
  outline: none;
  font-weight: 600;
  transition: var(--transition-fast);
}

.lang-selector:hover {
  border-color: var(--accent-gold);
}

.lang-selector option {
  background: var(--primary-navy-dark);
  color: var(--text-light);
}

.mobile-menu-toggle {
  display: none;
  font-size: 1.5rem;
  color: var(--text-light);
  cursor: pointer;
}

/* Page Containers */
.page {
  display: none;
  min-height: 100vh;
  padding-top: calc(var(--header-height) + 20px);
  animation: pageFadeIn var(--transition-normal) forwards;
}

.page.active {
  display: block;
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--primary-navy-dark) 0%, var(--primary-navy) 100%);
  overflow: hidden;
  padding: 0 4%;
}

/* Court visuals background */
.hero-bg-graphic {
  position: absolute;
  top: 0;
  right: -10%;
  width: 60%;
  height: 100%;
  opacity: 0.08;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23c5a059'%3E%3Cpath d='M12 2A10 10 0 0 0 2 12a10 10 0 0 0 10 10 10 10 0 0 0 10-10A10 10 0 0 0 12 2zm1 17.93V19h-2v-.07A8.006 8.006 0 0 1 4.07 13H5v-2h-.93A8.006 8.006 0 0 1 11 4.07V5h2v-.93A8.006 8.006 0 0 1 19.93 11H19v2h.93A8.006 8.006 0 0 1 13 19.93zM12 6a6 6 0 1 0 0 12 6 6 0 0 0 0-12zm0 10a4 4 0 1 1 0-8 4 4 0 0 1 0 8z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center right;
  pointer-events: none;
}

.hero-container {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero-content {
  color: var(--text-light);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(197, 160, 89, 0.1);
  border: 1px solid rgba(197, 160, 89, 0.3);
  padding: 6px 16px;
  border-radius: 30px;
  color: var(--accent-gold-light);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 25px;
}

.hero-title {
  font-size: 3.5rem;
  color: var(--text-light);
  margin-bottom: 20px;
  line-height: 1.15;
}

.hero-title span {
  color: var(--accent-gold);
}

.hero-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-bottom: 35px;
  max-width: 600px;
  font-weight: 300;
}

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

.hero-image-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-image-card {
  width: 100%;
  border-radius: var(--border-radius-md);
  padding: 25px;
  border: 1px solid rgba(197, 160, 89, 0.25);
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.hero-image-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(90deg, var(--accent-gold), var(--secondary-burgundy));
}

.hero-card-stat {
  font-size: 3.2rem;
  font-family: var(--font-heading);
  color: var(--accent-gold);
  line-height: 1;
  font-weight: 700;
  margin-bottom: 5px;
}

.hero-card-label {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 1px;
  color: var(--text-light);
  text-transform: uppercase;
  margin-bottom: 15px;
}

.hero-card-text {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.emergency-strip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  background: rgba(107, 20, 38, 0.2);
  border-left: 3px solid var(--secondary-burgundy);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-light);
}

.emergency-strip span {
  color: #ff4757;
}

/* Home Section Layouts */
.section {
  padding: 80px 4%;
  position: relative;
}

.section-dark {
  background: var(--primary-navy-dark);
  color: var(--text-light);
}

.section-dark h2 {
  color: var(--text-light);
}

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

.section-badge {
  font-size: 0.75rem;
  color: var(--accent-gold);
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  display: block;
  margin-bottom: 10px;
}

.section-title {
  font-size: 2.8rem;
  margin-bottom: 15px;
}

.section-title span {
  color: var(--accent-gold);
}

.section-desc {
  font-size: 1rem;
  color: var(--text-gray);
}

.section-dark .section-desc {
  color: var(--text-muted);
}

/* Metrics Section */
.metrics-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
  text-align: center;
}

.metric-card {
  padding: 30px;
  border-radius: var(--border-radius-sm);
  background: var(--bg-white);
  box-shadow: var(--shadow-sm);
  border-top: 3px solid var(--accent-gold);
  transition: var(--transition-normal);
}

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

.metric-number {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 700;
  color: var(--primary-navy);
  margin-bottom: 5px;
}

.metric-label {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-gray);
}

/* Core Values / Why Choose Us */
.features-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.feature-card {
  background: var(--bg-white);
  padding: 40px;
  border-radius: var(--border-radius-md);
  border: 1px solid rgba(0,0,0,0.05);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-normal);
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: rgba(197, 160, 89, 0.3);
}

.feature-icon {
  width: 60px;
  height: 60px;
  background: rgba(10, 17, 40, 0.05);
  border-radius: var(--border-radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--accent-gold-dark);
  margin-bottom: 25px;
}

.feature-card h3 {
  font-size: 1.4rem;
  margin-bottom: 15px;
}

.feature-card p {
  color: var(--text-gray);
  font-size: 0.9rem;
}

/* Practice Areas Grid */
.practice-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.practice-card {
  background: var(--bg-white);
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: var(--border-radius-md);
  padding: 35px;
  position: relative;
  transition: var(--transition-normal);
}

.practice-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 4px;
  background: var(--accent-gold);
  transition: var(--transition-normal);
}

.practice-card:hover::before {
  width: 100%;
}

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

.practice-icon {
  font-size: 2rem;
  color: var(--accent-gold-dark);
  margin-bottom: 20px;
}

.practice-card h3 {
  font-size: 1.4rem;
  margin-bottom: 12px;
}

.practice-card p {
  font-size: 0.88rem;
  color: var(--text-gray);
  margin-bottom: 20px;
}

.practice-link {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent-gold-dark);
  display: flex;
  align-items: center;
  gap: 5px;
}

.practice-link:hover {
  color: var(--primary-navy);
}

/* Court Chambers Grid */
.courts-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.court-card {
  padding: 25px;
  border-radius: var(--border-radius-sm);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
  transition: var(--transition-normal);
}

.court-card:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--accent-gold);
  transform: translateY(-3px);
}

.court-icon {
  font-size: 1.8rem;
  color: var(--accent-gold);
  margin-bottom: 15px;
}

.court-card h3 {
  color: var(--text-light);
  font-size: 1.25rem;
  margin-bottom: 10px;
}

.court-card p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Workflow steps */
.workflow-timeline {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  position: relative;
}

.workflow-timeline::before {
  content: '';
  position: absolute;
  top: 40px;
  left: 5%;
  width: 90%;
  height: 2px;
  background: rgba(197, 160, 89, 0.2);
  z-index: 1;
}

.workflow-step {
  width: 22%;
  text-align: center;
  position: relative;
  z-index: 2;
}

.step-num {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--primary-navy-dark);
  border: 2px solid var(--accent-gold);
  color: var(--accent-gold);
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-normal);
}

.workflow-step:hover .step-num {
  background: var(--accent-gold);
  color: var(--primary-navy-dark);
  transform: scale(1.05);
}

.workflow-step h3 {
  font-size: 1.2rem;
  margin-bottom: 8px;
  color: var(--text-light);
}

.workflow-step p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* About Us Page Specific Layout */
.about-split {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.about-graphics {
  position: relative;
}

.about-img-frame {
  border: 2px solid var(--accent-gold);
  padding: 15px;
  border-radius: var(--border-radius-md);
  background: var(--bg-white);
  box-shadow: var(--shadow-lg);
  position: relative;
}

.about-badge-tag {
  position: absolute;
  bottom: -20px;
  right: -20px;
  background: var(--secondary-burgundy);
  color: var(--text-light);
  padding: 15px 25px;
  border-radius: var(--border-radius-sm);
  box-shadow: var(--shadow-md);
}

.about-badge-tag h4 {
  font-family: var(--font-body);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-light);
}

.about-badge-tag p {
  font-size: 0.75rem;
  opacity: 0.8;
}

.about-philosophy-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 30px;
}

.philosophy-item {
  border-left: 3px solid var(--accent-gold);
  padding-left: 15px;
}

.philosophy-item h4 {
  font-size: 1.15rem;
  margin-bottom: 5px;
}

.philosophy-item p {
  font-size: 0.8rem;
  color: var(--text-gray);
}

/* Detailed Services / Practice Areas Subpage */
.practice-selector-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 40px;
}

.practice-menu {
  list-style: none;
  background: var(--bg-white);
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: var(--border-radius-md);
  padding: 15px;
  align-self: start;
  box-shadow: var(--shadow-sm);
}

.practice-menu-item {
  padding: 12px 20px;
  border-radius: var(--border-radius-sm);
  cursor: pointer;
  font-weight: 600;
  font-size: 0.85rem;
  transition: var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-left: 3px solid transparent;
  color: var(--text-gray);
}

.practice-menu-item:hover {
  background: var(--bg-light);
  color: var(--primary-navy);
}

.practice-menu-item.active {
  background: rgba(197, 160, 89, 0.08);
  border-left-color: var(--accent-gold);
  color: var(--primary-navy);
}

.practice-menu-item i {
  font-size: 1rem;
}

.practice-details-content {
  background: var(--bg-white);
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: var(--border-radius-md);
  padding: 40px;
  box-shadow: var(--shadow-sm);
  animation: fadeIn var(--transition-normal);
}

.practice-details-header {
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 25px;
  margin-bottom: 30px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.practice-details-title-icon {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: rgba(197, 160, 89, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--accent-gold-dark);
}

.practice-details-header h2 {
  font-size: 2.2rem;
  margin-bottom: 5px;
}

.practice-details-header p {
  color: var(--text-gray);
  font-size: 0.9rem;
}

.subservices-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 30px;
}

.subservice-tag {
  background: var(--bg-light);
  padding: 8px 16px;
  border-radius: 30px;
  font-size: 0.8rem;
  font-weight: 500;
  border: 1px solid rgba(0,0,0,0.05);
}

.practice-details-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 30px;
}

.p-details-left h3 {
  font-size: 1.4rem;
  margin: 25px 0 12px;
}

.p-details-left ul {
  list-style: none;
  margin-bottom: 25px;
}

.p-details-left li {
  position: relative;
  padding-left: 25px;
  margin-bottom: 10px;
  font-size: 0.9rem;
}

.p-details-left li::before {
  content: '\f058';
  font-family: 'Font Awesome 5 Free';
  font-weight: 900;
  position: absolute;
  left: 0;
  top: 1px;
  color: var(--accent-gold-dark);
}

.p-details-sidebar {
  background: var(--bg-light);
  padding: 25px;
  border-radius: var(--border-radius-md);
  border-top: 4px solid var(--accent-gold);
}

.p-details-sidebar h4 {
  font-size: 1.15rem;
  margin-bottom: 15px;
}

.doc-list-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.8rem;
  margin-bottom: 10px;
  color: var(--text-gray);
}

.doc-list-item i {
  color: var(--secondary-burgundy);
}

/* Document Automation Tool */
.doc-auto-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 400px 1fr;
  gap: 40px;
}

.doc-auto-form-panel {
  background: var(--bg-white);
  border-radius: var(--border-radius-md);
  padding: 30px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0,0,0,0.06);
}

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

.form-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--primary-navy);
}

.form-group input, .form-group textarea, .form-group select {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ced4da;
  border-radius: var(--border-radius-sm);
  font-family: var(--font-body);
  font-size: 0.88rem;
  outline: none;
  transition: var(--transition-fast);
}

.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
  border-color: var(--accent-gold);
  box-shadow: 0 0 0 3px rgba(197, 160, 89, 0.15);
}

.doc-auto-preview-panel {
  background: #525659;
  border-radius: var(--border-radius-md);
  padding: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 600px;
}

.doc-action-bar {
  width: 100%;
  max-width: 800px;
  background: var(--primary-navy-dark);
  padding: 12px 25px;
  border-radius: var(--border-radius-sm) var(--border-radius-sm) 0 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--text-light);
}

.doc-action-title {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.doc-paper-wrapper {
  width: 100%;
  max-width: 800px;
  background: var(--bg-white);
  box-shadow: var(--shadow-lg);
  padding: 80px 60px;
  font-family: 'Times New Roman', Times, serif;
  color: #000;
  line-height: 1.8;
  font-size: 14px;
  position: relative;
  min-height: 800px;
  overflow-y: auto;
}

/* Legal paper details */
.legal-stamp-area {
  border: 2px dashed #ddd;
  width: 100%;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  color: #999;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 40px;
}

.legal-doc-title {
  text-align: center;
  font-size: 1.6rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 40px;
  text-decoration: underline;
  color: #000;
}

.legal-doc-body {
  text-align: justify;
  white-space: pre-line;
}

.legal-signatures {
  margin-top: 80px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
}

.signature-line {
  border-top: 1px solid #000;
  padding-top: 5px;
  text-align: center;
  font-weight: 700;
  font-size: 0.85rem;
}

/* Print media query specifically for generated legal templates */
@media print {
  body * {
    visibility: hidden;
  }
  .doc-paper-wrapper, .doc-paper-wrapper * {
    visibility: visible;
  }
  .doc-paper-wrapper {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    box-shadow: none;
    padding: 20px;
  }
}

/* Calendar & Appointment Modal / Elements */
.calendar-widget {
  background: var(--bg-white);
  border-radius: var(--border-radius-md);
  padding: 20px;
  border: 1px solid rgba(0,0,0,0.06);
  box-shadow: var(--shadow-sm);
}

.calendar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.calendar-month {
  font-weight: 700;
  font-size: 1.1rem;
}

.calendar-nav-btn {
  background: none;
  border: none;
  color: var(--primary-navy);
  cursor: pointer;
  font-size: 1.1rem;
  padding: 5px;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.calendar-nav-btn:hover {
  background: var(--bg-light);
}

.calendar-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  font-weight: 600;
  font-size: 0.72rem;
  color: var(--text-gray);
  margin-bottom: 10px;
}

.calendar-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 5px;
}

.calendar-day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 500;
  border-radius: var(--border-radius-sm);
  cursor: pointer;
  transition: var(--transition-fast);
  color: var(--text-dark);
}

.calendar-day.empty {
  cursor: default;
  opacity: 0;
}

.calendar-day:hover:not(.empty):not(.disabled) {
  background: var(--bg-light);
  color: var(--accent-gold-dark);
}

.calendar-day.active {
  background: var(--primary-navy) !important;
  color: var(--text-light) !important;
  font-weight: 700;
}

.calendar-day.disabled {
  opacity: 0.25;
  cursor: not-allowed;
}

.slots-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 15px;
}

.slot-btn {
  padding: 10px;
  border: 1px solid #ced4da;
  border-radius: var(--border-radius-sm);
  font-size: 0.78rem;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  background: var(--bg-white);
  transition: var(--transition-fast);
}

.slot-btn:hover:not(.disabled) {
  border-color: var(--accent-gold);
  color: var(--accent-gold-dark);
  background: rgba(197, 160, 89, 0.05);
}

.slot-btn.active {
  background: var(--accent-gold);
  border-color: var(--accent-gold);
  color: var(--primary-navy-dark);
}

.slot-btn.disabled {
  background: var(--bg-light);
  color: var(--text-muted);
  cursor: not-allowed;
  opacity: 0.5;
}

/* Modals */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(5, 10, 24, 0.85);
  backdrop-filter: blur(5px);
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-normal);
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.modal-box {
  background: var(--bg-white);
  border-radius: var(--border-radius-md);
  max-width: 600px;
  width: 100%;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-light);
  overflow: hidden;
  transform: translateY(20px);
  transition: transform var(--transition-normal);
}

.modal-overlay.active .modal-box {
  transform: translateY(0);
}

.modal-header {
  background: var(--primary-navy);
  color: var(--text-light);
  padding: 20px 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h3 {
  color: var(--text-light);
  font-size: 1.35rem;
}

.modal-close-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.2rem;
  cursor: pointer;
  transition: var(--transition-fast);
}

.modal-close-btn:hover {
  color: var(--text-light);
}

.modal-body {
  padding: 25px;
  max-height: 75vh;
  overflow-y: auto;
}

/* Payment Gateway Simulation */
.payment-simulator {
  text-align: center;
  padding: 20px 0;
}

.payment-method-selector {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 25px;
}

.pay-opt-card {
  border: 2px solid #ddd;
  border-radius: var(--border-radius-md);
  padding: 15px 25px;
  cursor: pointer;
  transition: var(--transition-fast);
  flex: 1;
  max-width: 150px;
}

.pay-opt-card.active {
  border-color: var(--accent-gold);
  background: rgba(197, 160, 89, 0.05);
}

.pay-opt-card i {
  font-size: 1.8rem;
  color: var(--primary-navy);
  margin-bottom: 10px;
}

.pay-opt-card div {
  font-size: 0.78rem;
  font-weight: 600;
}

.upi-scan-panel {
  display: none;
  flex-direction: column;
  align-items: center;
  margin-bottom: 20px;
}

.upi-qr-mock {
  width: 150px;
  height: 150px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M2 2h6v6H2V2zm2 2v2h2V4H4zm0 12v4h4v-4H4zm14-14h4v4h-4V2zm0 14h4v4h-4v-4zm-8-4h4v4h-4v-4zm4 4h4v4h-4v-4zm-8 4v2h2v-2H4zm8-10h2v2h-2v-2zm-2 2h2v2h-2v-2zm4-4h2v2h-2V6zm2 2h2v2h-2V8zm-6 2h2v2h-2v-2z'/%3E%3C/svg%3E") no-repeat center;
  background-size: contain;
  margin: 15px 0;
  border: 1px solid #ddd;
  padding: 10px;
  border-radius: var(--border-radius-sm);
}

.card-inputs-panel {
  display: block;
}

/* Secure Client Portal & Case Dashboard */
.portal-layout {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: var(--sidebar-width) 1fr;
  gap: 30px;
}

.portal-sidebar {
  background: var(--primary-navy);
  color: var(--text-light);
  border-radius: var(--border-radius-md);
  padding: 20px;
  min-height: 500px;
  border: 1px solid var(--border-light);
}

.portal-user-profile {
  text-align: center;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  margin-bottom: 20px;
}

.user-avatar {
  width: 70px;
  height: 70px;
  background: var(--accent-gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--primary-navy-dark);
  margin: 0 auto 12px;
  font-weight: 700;
}

.user-name {
  font-size: 1rem;
  font-weight: 600;
}

.user-id {
  font-size: 0.72rem;
  color: var(--accent-gold);
}

.portal-sidebar-menu {
  list-style: none;
}

.portal-menu-item {
  padding: 12px 15px;
  border-radius: var(--border-radius-sm);
  cursor: pointer;
  font-weight: 500;
  font-size: 0.82rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 5px;
  transition: var(--transition-fast);
}

.portal-menu-item:hover, .portal-menu-item.active {
  background: rgba(255,255,255,0.06);
  color: var(--text-light);
}

.portal-menu-item.active {
  border-left: 3px solid var(--accent-gold);
  background: rgba(197, 160, 89, 0.1);
  font-weight: 600;
}

.portal-main-area {
  background: var(--bg-white);
  border-radius: var(--border-radius-md);
  padding: 35px;
  border: 1px solid rgba(0,0,0,0.06);
  box-shadow: var(--shadow-sm);
  min-height: 500px;
}

.portal-view {
  display: none;
  animation: fadeIn var(--transition-normal);
}

.portal-view.active {
  display: block;
}

.portal-view-header {
  border-bottom: 1px solid #eee;
  padding-bottom: 15px;
  margin-bottom: 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.portal-view-title {
  font-size: 1.6rem;
}

/* Case Timeline details in Portal */
.case-progress-bar {
  height: 6px;
  background: #eee;
  border-radius: 3px;
  margin: 15px 0 25px;
  position: relative;
}

.case-progress-indicator {
  height: 100%;
  background: var(--accent-gold);
  border-radius: 3px;
  width: 50%;
  transition: width var(--transition-slow);
}

.timeline-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  position: relative;
}

.timeline-node {
  text-align: center;
  position: relative;
}

.node-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #eee;
  border: 2px solid #ddd;
  margin: 0 auto 10px;
  z-index: 2;
  position: relative;
  transition: var(--transition-fast);
}

.timeline-node.active .node-dot {
  background: var(--accent-gold);
  border-color: var(--accent-gold-dark);
  box-shadow: 0 0 8px rgba(197, 160, 89, 0.6);
}

.node-label {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-gray);
}

.timeline-node.active .node-label {
  color: var(--primary-navy);
}

/* Upload styles inside client portal */
.drag-drop-area {
  border: 2px dashed #ccc;
  border-radius: var(--border-radius-md);
  padding: 40px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition-fast);
  background: var(--bg-light);
}

.drag-drop-area:hover {
  border-color: var(--accent-gold);
  background: rgba(197, 160, 89, 0.03);
}

.upload-icon {
  font-size: 2.5rem;
  color: var(--text-gray);
  margin-bottom: 15px;
}

/* Table Style for Invoices/Consultations */
.portal-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 15px;
}

.portal-table th, .portal-table td {
  padding: 12px 15px;
  text-align: left;
  border-bottom: 1px solid #eee;
  font-size: 0.85rem;
}

.portal-table th {
  background: var(--bg-light);
  font-weight: 600;
  color: var(--primary-navy);
}

.portal-table tr:hover td {
  background: var(--bg-light);
}

.badge-status {
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
}

.badge-status.success {
  background: #d4edda;
  color: #155724;
}

.badge-status.warning {
  background: #fff3cd;
  color: #856404;
}

.badge-status.info {
  background: #d1ecf1;
  color: #0c5460;
}

/* Admin / CRM Panel */
.crm-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 30px;
}

.crm-card-stat {
  background: var(--bg-light);
  border-radius: var(--border-radius-sm);
  padding: 20px;
  border-left: 4px solid var(--primary-navy);
}

.crm-card-stat.blue { border-left-color: #007bff; }
.crm-card-stat.gold { border-left-color: var(--accent-gold); }
.crm-card-stat.burgundy { border-left-color: var(--secondary-burgundy); }
.crm-card-stat.green { border-left-color: #28a745; }

.crm-card-val {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.2;
}

.crm-card-lbl {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--text-gray);
  font-weight: 600;
}

/* Chatbot Floating Widget & Window */
.chatbot-floater {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--primary-navy);
  color: var(--accent-gold);
  border: 1px solid var(--accent-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  cursor: pointer;
  z-index: 998;
  box-shadow: var(--shadow-lg), var(--shadow-gold);
  transition: var(--transition-normal);
}

.chatbot-floater:hover {
  transform: scale(1.08) rotate(5deg);
  background: var(--primary-navy-light);
}

.chatbot-floater .badge {
  position: absolute;
  top: -2px;
  right: -2px;
  background: var(--secondary-burgundy);
  color: white;
  font-size: 0.65rem;
  padding: 3px 6px;
  border-radius: 10px;
  font-weight: 700;
}

.chatbot-window {
  position: fixed;
  bottom: 105px;
  right: 30px;
  width: 380px;
  height: 520px;
  background: var(--bg-white);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(197, 160, 89, 0.2);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  z-index: 998;
  transform: scale(0.9) translateY(20px);
  opacity: 0;
  pointer-events: none;
  transition: transform var(--transition-normal), opacity var(--transition-normal);
}

.chatbot-window.active {
  transform: scale(1) translateY(0);
  opacity: 1;
  pointer-events: all;
}

.chat-header {
  background: var(--primary-navy);
  color: var(--text-light);
  padding: 15px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 2px solid var(--accent-gold);
}

.chat-title-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.chat-title-icon {
  font-size: 1.4rem;
  color: var(--accent-gold);
}

.chat-title {
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.2;
}

.chat-status {
  font-size: 0.68rem;
  color: #2ed573;
}

.chat-close-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 1.1rem;
}

.chat-close-btn:hover {
  color: var(--text-light);
}

.chat-messages {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 15px;
  background: #f8f9fa;
}

.chat-msg {
  max-width: 80%;
  padding: 12px 16px;
  border-radius: var(--border-radius-md);
  font-size: 0.82rem;
  line-height: 1.5;
}

.chat-msg.bot {
  background: var(--bg-white);
  border: 1px solid #e9ecef;
  color: var(--text-dark);
  align-self: flex-start;
  border-bottom-left-radius: 0;
}

.chat-msg.user {
  background: var(--primary-navy);
  color: var(--text-light);
  align-self: flex-end;
  border-bottom-right-radius: 0;
}

.chat-quick-replies {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px 20px;
  background: #f8f9fa;
  border-top: 1px solid #e9ecef;
}

.quick-reply-btn {
  padding: 6px 12px;
  background: var(--bg-white);
  border: 1px solid #dee2e6;
  border-radius: 20px;
  font-size: 0.72rem;
  font-family: var(--font-body);
  cursor: pointer;
  transition: var(--transition-fast);
  color: var(--primary-navy);
}

.quick-reply-btn:hover {
  border-color: var(--accent-gold);
  background: rgba(197, 160, 89, 0.05);
}

.chat-input-area {
  padding: 15px 20px;
  display: flex;
  gap: 10px;
  border-top: 1px solid #e9ecef;
  background: var(--bg-white);
}

.chat-input {
  flex: 1;
  border: 1px solid #ced4da;
  padding: 10px 15px;
  border-radius: 20px;
  font-family: var(--font-body);
  font-size: 0.8rem;
  outline: none;
}

.chat-input:focus {
  border-color: var(--accent-gold);
}

.chat-send-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--primary-navy);
  color: var(--accent-gold);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  transition: var(--transition-fast);
}

.chat-send-btn:hover {
  background: var(--primary-navy-light);
}

/* Floating WhatsApp Widget */
.whatsapp-widget {
  position: fixed;
  bottom: 105px;
  right: 30px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #25d366;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  cursor: pointer;
  z-index: 997;
  box-shadow: var(--shadow-lg), 0 4px 15px rgba(37, 211, 102, 0.3);
  transition: var(--transition-normal);
}

.whatsapp-widget:hover {
  transform: scale(1.08) translateY(-3px);
}

/* Blog Section Layout */
.blog-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.blog-card {
  background: var(--bg-white);
  border-radius: var(--border-radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0,0,0,0.05);
  transition: var(--transition-normal);
}

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

.blog-thumb {
  height: 200px;
  background: linear-gradient(135deg, var(--primary-navy) 0%, var(--secondary-burgundy) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.15);
  font-size: 5rem;
  position: relative;
}

.blog-badge {
  position: absolute;
  top: 15px;
  left: 15px;
  background: var(--accent-gold);
  color: var(--primary-navy-dark);
  font-size: 0.68rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 4px;
  text-transform: uppercase;
}

.blog-body {
  padding: 25px;
}

.blog-date {
  font-size: 0.72rem;
  color: var(--text-gray);
  font-weight: 600;
  margin-bottom: 10px;
  display: block;
}

.blog-body h3 {
  font-size: 1.3rem;
  margin-bottom: 12px;
  line-height: 1.3;
}

.blog-body p {
  font-size: 0.85rem;
  color: var(--text-gray);
  margin-bottom: 20px;
}

/* Contact Page Split */
.contact-split {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 50px;
}

.contact-card-info {
  background: var(--primary-navy);
  color: var(--text-light);
  border-radius: var(--border-radius-md);
  padding: 45px;
  border: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.contact-detail-item {
  display: flex;
  gap: 20px;
}

.contact-detail-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--border-radius-sm);
  background: rgba(197, 160, 89, 0.15);
  color: var(--accent-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.contact-detail-text h4 {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-light);
  margin-bottom: 5px;
}

.contact-detail-text p {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.contact-map-mock {
  height: 200px;
  background: #e5e5e5;
  border-radius: var(--border-radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-gray);
  font-weight: 600;
  font-size: 0.85rem;
  border: 1px solid rgba(0,0,0,0.1);
  text-align: center;
  padding: 20px;
}

/* Footer styling */
.footer {
  background: var(--primary-navy-dark);
  color: var(--text-muted);
  border-top: 1px solid rgba(197, 160, 89, 0.2);
  padding: 60px 4% 30px;
}

.footer-top {
  max-width: 1200px;
  margin: 0 auto 50px;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 40px;
}

.footer-column h4 {
  color: var(--text-light);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 25px;
  position: relative;
}

.footer-column h4::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 30px;
  height: 2px;
  background: var(--accent-gold);
}

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

.footer-links a {
  font-size: 0.82rem;
}

.footer-links a:hover {
  color: var(--accent-gold);
  padding-left: 5px;
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
}

.footer-bci-note {
  max-width: 700px;
  font-size: 0.7rem;
  line-height: 1.5;
  text-align: justify;
}

/* Animations */
@keyframes modalFadeIn {
  from { opacity: 0; transform: translateY(-30px); }
  to { opacity: 1; transform: translateY(0); }
}

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

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Responsive queries */
@media (max-width: 1024px) {
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-actions {
    justify-content: center;
  }
  .hero-desc {
    margin-left: auto;
    margin-right: auto;
  }
  .metrics-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .features-grid, .practice-grid, .courts-grid, .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .about-split, .contact-split {
    grid-template-columns: 1fr;
  }
  .practice-selector-container, .doc-auto-container, .portal-layout {
    grid-template-columns: 1fr;
  }
  .portal-sidebar {
    min-height: auto;
  }
  .workflow-timeline {
    flex-direction: column;
    gap: 30px;
  }
  .workflow-timeline::before {
    display: none;
  }
  .workflow-step {
    width: 100%;
  }
}

@media (max-width: 768px) {
  .header {
    padding: 0 20px;
  }
  .nav-links {
    display: none; /* Hide for mobile toggle implementation */
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 100%;
    background: var(--primary-navy-dark);
    flex-direction: column;
    padding: 30px;
    border-top: 1px solid var(--border-light);
  }
  .nav-links.active {
    display: flex;
  }
  .mobile-menu-toggle {
    display: block;
  }
  .hero-title {
    font-size: 2.5rem;
  }
  .metrics-grid, .features-grid, .practice-grid, .courts-grid, .blog-grid {
    grid-template-columns: 1fr;
  }
  .footer-top {
    grid-template-columns: 1fr;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }
  .chatbot-window {
    width: calc(100% - 40px);
    right: 20px;
    left: 20px;
    bottom: 90px;
  }
  .whatsapp-widget, .chatbot-floater {
    bottom: 20px;
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
  }
  .whatsapp-widget {
    right: 80px;
    font-size: 1.8rem;
    bottom: 20px;
  }
  .chatbot-floater {
    right: 20px;
  }
}
