/* ============================================================
   BHARTIYA LAW ASSOCIATES - PROFESSIONAL LEGAL THEME
   Complete Rewrite | Production-Ready
   ============================================================ */

/* ROOT VARIABLES - IMPROVED COLOR SCHEME */
:root {
  /* Primary Colors */
  --primary-color: #1a3a52;
  --primary-dark: #0f1f2e;
  --primary-light: #2a5a7a;
  
  /* Secondary/Accent Colors */
  --secondary-color: #c9a961;
  --accent-color: #d4a574;
  --accent-light: #dfb589;
  
  /* Background Colors */
  --dark-bg: #0f1419;
  --light-bg: #f5f7fa;
  --white-bg: #ffffff;
  --card-bg: #ffffff;
  
  /* Text Colors */
  --light-text: #ffffff;
  --dark-text: #1a3a52;
  --gray-text: #5a6b7a;
  --muted-text: #8a9aaa;
  
  /* Borders & Dividers */
  --border-color: #d5dce5;
  --border-light: #e8ecf1;
  
  /* Transitions */
  --transition: all 0.3s ease;
  
  /* Fonts */
  --font-heading: 'Lora', serif;
  --font-body: 'Inter', sans-serif;
}

/* DARK MODE VARIABLES */
[data-theme="dark"] {
  /* Primary stays as brand navy — never override to white */
  --primary-color: #1a3a52;
  --primary-dark: #0f1f2e;
  --primary-light: #2a5a7a;
  
  /* Secondary/Accent Colors */
  --secondary-color: #d4a574;
  --accent-color: #dfb589;
  --accent-light: #e8c59d;
  
  /* Backgrounds */
  --dark-bg: #080e18;
  --light-bg: #0f1824;
  --white-bg: #172030;
  --card-bg: #1a2538;

  /* Text */
  --light-text: #f0f2f5;
  --dark-text:  #f0f2f5;
  --gray-text:  #a5b5c5;
  --muted-text: #7a8a9a;

  /* Borders */
  --border-color: #243040;
  --border-light: #1c2a3a;
}

/* GLOBAL STYLES */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--light-bg);
  color: var(--dark-text);
  line-height: 1.6;
  transition: background-color 0.4s ease, color 0.4s ease;
}

[data-theme="dark"] body {
  background-color: var(--dark-bg);
  color: var(--light-text);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* TYPOGRAPHY */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  line-height: 1.3;
  margin-bottom: 1rem;
  color: var(--dark-text);
}

h1 {
  font-size: 3rem;
  font-weight: 700;
}

h2 {
  font-size: 2.2rem;
  font-weight: 700;
}

h3 {
  font-size: 1.8rem;
  font-weight: 600;
}

h4 {
  font-size: 1.3rem;
  font-weight: 600;
}

p {
  margin-bottom: 1rem;
  color: var(--gray-text);
  line-height: 1.8;
}

a {
  color: var(--secondary-color);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--accent-color);
}

/* BUTTONS */
.btn {
  display: inline-block;
  padding: 12px 30px;
  border: 2px solid var(--secondary-color);
  background-color: transparent;
  color: var(--secondary-color);
  font-weight: 600;
  border-radius: 4px;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  font-size: 0.95rem;
}

.btn:hover {
  background-color: var(--secondary-color);
  color: white;
  transform: translateY(-2px);
}

.btn-primary {
  background-color: var(--secondary-color);
  color: white;
  border-color: var(--secondary-color);
}

.btn-primary:hover {
  background-color: var(--accent-color);
  border-color: var(--accent-color);
  box-shadow: 0 6px 20px rgba(201, 169, 97, 0.3);
}

.btn-secondary {
  border-color: var(--primary-color);
  color: var(--primary-color);
}

[data-theme="dark"] .btn-secondary {
  border-color: var(--light-text);
  color: var(--light-text);
}

.btn-secondary:hover {
  background-color: var(--primary-color);
  color: white;
}

[data-theme="dark"] .btn-secondary:hover {
  background-color: var(--light-text);
  color: var(--dark-bg);
}

.btn-large {
  padding: 15px 40px;
  font-size: 1.1rem;
}

/* NAVIGATION */
.navbar {
  background-color: var(--white-bg);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: var(--transition);
}

[data-theme="dark"] .navbar {
  background-color: var(--light-bg);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.navbar-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

.navbar-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--primary-color);
}

.logo-image {
  height: 50px;
  width: auto;
  transition: var(--transition);
}

/* Logo Switching for Dark Mode */
.navbar-logo img {
  display: block;
  transition: opacity 0.3s ease;
}

.navbar-logo .dark-logo {
  display: none;
}

[data-theme="dark"] .navbar-logo .light-logo {
  display: none;
}

[data-theme="dark"] .navbar-logo .dark-logo {
  display: block;
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.firm-name {
  font-weight: 700;
  font-size: 1.1rem;
  font-family: var(--font-heading);
  color: var(--primary-color);
}

.firm-tagline {
  font-size: 0.7rem;
  color: var(--secondary-color);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 30px;
  margin: 0;
}

.nav-link {
  color: var(--dark-text);
  font-weight: 500;
  position: relative;
  transition: var(--transition);
}

[data-theme="dark"] .nav-link {
  color: var(--light-text);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--secondary-color);
  transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.navbar-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.theme-toggle {
  background: none;
  border: 2px solid var(--border-light);
  cursor: pointer;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  transition: var(--transition);
}

[data-theme="dark"] .theme-toggle {
  border-color: var(--border-color);
}

.theme-toggle:hover {
  border-color: var(--secondary-color);
  background-color: rgba(201, 169, 97, 0.1);
}

.theme-toggle svg {
  width: 24px;
  height: 24px;
  color: var(--dark-text);
  transition: var(--transition);
}

[data-theme="dark"] .theme-toggle svg {
  color: var(--light-text);
}

.sun-icon {
  display: none;
}

[data-theme="dark"] .sun-icon {
  display: block;
}

[data-theme="dark"] .moon-icon {
  display: none;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  flex-direction: column;
  gap: 5px;
}

.menu-toggle span {
  width: 25px;
  height: 3px;
  background-color: var(--dark-text);
  transition: var(--transition);
}

[data-theme="dark"] .menu-toggle span {
  background-color: var(--light-text);
}

/* HERO SECTION - FIXED FOR DARK MODE */
.hero {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 50%, #0a1620 100%);
  color: white;
  padding: 100px 20px;
  text-align: center;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

[data-theme="dark"] .hero {
  background: linear-gradient(135deg, #1a3a52 0%, #0f1f2e 50%, #0a0f15 100%);
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 20% 50%, rgba(201, 169, 97, 0.1) 0%, transparent 50%),
              radial-gradient(circle at 80% 80%, rgba(201, 169, 97, 0.05) 0%, transparent 50%);
  pointer-events: none;
}

.hero-content {
  max-width: 800px;
  position: relative;
  z-index: 2;
}

.hero-title {
  font-size: 3.5rem;
  margin-bottom: 20px;
  line-height: 1.2;
  color: white;
}

[data-theme="dark"] .hero-title {
  color: #ffffff;
}

.hero-subtitle {
  font-size: 1.3rem;
  margin-bottom: 40px;
  opacity: 0.95;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
}

[data-theme="dark"] .hero-subtitle {
  color: rgba(255, 255, 255, 0.9);
}

.hero-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero .btn {
  padding: 15px 35px;
  font-size: 1rem;
}

.hero .btn-secondary {
  background-color: transparent;
  border-color: white;
  color: white;
}

[data-theme="dark"] .hero .btn-secondary {
  background-color: transparent;
  border-color: white;
  color: white;
}

.hero .btn-secondary:hover {
  background-color: white;
  color: var(--primary-color);
}

[data-theme="dark"] .hero .btn-secondary:hover {
  background-color: white;
  color: #1a3a52;
}

/* PAGE HERO - FIXED FOR DARK MODE */
.page-hero {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 50%, #0a1620 100%);
  color: white;
  padding: 60px 20px;
  text-align: center;
}

[data-theme="dark"] .page-hero {
  background: linear-gradient(135deg, #1a3a52 0%, #0f1f2e 50%, #0a0f15 100%);
}

.page-hero h1 {
  font-size: 2.8rem;
  margin-bottom: 10px;
  color: white;
}

[data-theme="dark"] .page-hero h1 {
  color: #ffffff;
}

.page-hero p {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.9);
}

[data-theme="dark"] .page-hero p {
  color: rgba(255, 255, 255, 0.9);
}

/* MAIN CONTENT */
.main-content {
  padding: 60px 20px;
  background-color: var(--light-bg);
}

[data-theme="dark"] .main-content {
  background-color: var(--dark-bg);
}

.section-header {
  text-align: center;
  margin-bottom: 50px;
}

.section-header h2 {
  margin-bottom: 15px;
  color: var(--primary-color);
}

[data-theme="dark"] .section-header h2 {
  color: var(--light-text);
}

.section-header p {
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
  color: var(--gray-text);
}

/* SERVICES SECTION */
.services-section {
  padding: 60px 20px;
  background-color: var(--light-bg);
}

[data-theme="dark"] .services-section {
  background-color: var(--dark-bg);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

.service-card {
  background: var(--white-bg);
  padding: 40px 30px;
  border-radius: 8px;
  text-align: center;
  transition: var(--transition);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  border: 1px solid var(--border-light);
}

[data-theme="dark"] .service-card {
  background: var(--card-bg);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  border-color: var(--border-color);
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  border-top: 4px solid var(--secondary-color);
}

[data-theme="dark"] .service-card:hover {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.service-icon {
  font-size: 3rem;
  margin-bottom: 20px;
}

.service-card h3 {
  color: var(--primary-color);
  margin-bottom: 15px;
}

[data-theme="dark"] .service-card h3 {
  color: var(--light-text);
}

.service-card p {
  margin-bottom: 0;
  font-size: 0.95rem;
  color: var(--gray-text);
}

[data-theme="dark"] .service-card p {
  color: var(--muted-text);
}

.services-cta {
  text-align: center;
}

/* ABOUT SECTION */
.about-preview-section {
  padding: 60px 20px;
  background-color: var(--light-bg);
}

[data-theme="dark"] .about-preview-section {
  background-color: var(--dark-bg);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
  margin-bottom: 50px;
}

.about-content h2 {
  margin-bottom: 20px;
  color: var(--primary-color);
}

[data-theme="dark"] .about-content h2 {
  color: var(--light-text);
}

.about-list {
  list-style: none;
  margin-bottom: 30px;
}

.about-list li {
  padding: 10px 0;
  border-bottom: 1px solid var(--border-light);
  color: var(--gray-text);
}

[data-theme="dark"] .about-list li {
  border-bottom-color: var(--border-color);
  color: var(--muted-text);
}

.about-list strong {
  color: var(--primary-color);
}

[data-theme="dark"] .about-list strong {
  color: var(--light-text);
}

.about-card {
  background: var(--white-bg);
  padding: 40px;
  border-radius: 8px;
  border-left: 4px solid var(--secondary-color);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

[data-theme="dark"] .about-card {
  background: var(--card-bg);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.about-card p {
  font-size: 1.1rem;
  font-style: italic;
  margin-bottom: 15px;
  color: var(--gray-text);
}

[data-theme="dark"] .about-card p {
  color: var(--muted-text);
}

.about-card cite {
  font-style: normal;
  color: var(--secondary-color);
  font-weight: 600;
}

/* STATS GRID */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  margin: 50px 0;
}

.stat {
  text-align: center;
  padding: 30px;
  background: var(--white-bg);
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  border: 1px solid var(--border-light);
}

[data-theme="dark"] .stat {
  background: var(--card-bg);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  border-color: var(--border-color);
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--secondary-color);
  display: block;
  margin-bottom: 10px;
}

.stat-label {
  color: var(--gray-text);
  font-weight: 600;
}

[data-theme="dark"] .stat-label {
  color: var(--muted-text);
}

/* WHY CHOOSE US */
.why-choose-us {
  margin-top: 50px;
}

.why-choose-us h2 {
  margin-bottom: 30px;
  text-align: center;
  color: var(--primary-color);
}

[data-theme="dark"] .why-choose-us h2 {
  color: var(--light-text);
}

.reasons-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.reason {
  background: var(--white-bg);
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  border: 1px solid var(--border-light);
}

[data-theme="dark"] .reason {
  background: var(--card-bg);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  border-color: var(--border-color);
}

.reason h4 {
  color: var(--primary-color);
  margin-bottom: 15px;
}

[data-theme="dark"] .reason h4 {
  color: var(--light-text);
}

.reason p {
  margin-bottom: 0;
  font-size: 0.95rem;
  color: var(--gray-text);
}

[data-theme="dark"] .reason p {
  color: var(--muted-text);
}

/* TEAM SECTION */
.team-preview-section {
  padding: 60px 20px;
  background-color: var(--light-bg);
}

[data-theme="dark"] .team-preview-section {
  background-color: var(--dark-bg);
}

.team-grid-preview {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

.team-member-preview {
  background: var(--white-bg);
  border-radius: 8px;
  overflow: hidden;
  text-align: center;
  transition: var(--transition);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  border: 1px solid var(--border-light);
}

[data-theme="dark"] .team-member-preview {
  background: var(--card-bg);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  border-color: var(--border-color);
}

.team-member-preview:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

[data-theme="dark"] .team-member-preview:hover {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.team-member-preview img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.team-member-preview h4 {
  margin: 15px 0 5px;
  color: var(--primary-color);
}

[data-theme="dark"] .team-member-preview h4 {
  color: var(--light-text);
}

.team-member-preview p {
  padding: 0 15px 15px;
  color: var(--secondary-color);
  margin: 0;
}

.team-cta {
  text-align: center;
}

/* TEAM FULL GRID */
.team-full-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  margin-bottom: 40px;
}

.team-full-card {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 30px;
  background: var(--white-bg);
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  border: 1px solid var(--border-light);
}

[data-theme="dark"] .team-full-card {
  background: var(--card-bg);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  border-color: var(--border-color);
}

.team-full-image img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: 8px;
}

.team-full-details h3 {
  color: var(--primary-color);
  margin-bottom: 5px;
}

[data-theme="dark"] .team-full-details h3 {
  color: var(--light-text);
}

.team-title {
  color: var(--secondary-color);
  font-weight: 600;
  margin-bottom: 5px;
}

.team-experience {
  font-size: 0.9rem;
  color: var(--gray-text);
  margin-bottom: 15px;
}

[data-theme="dark"] .team-experience {
  color: var(--muted-text);
}

.team-description {
  margin-bottom: 20px;
  line-height: 1.8;
  color: var(--gray-text);
}

[data-theme="dark"] .team-description {
  color: var(--muted-text);
}

.team-expertise h4 {
  margin: 20px 0 10px;
  color: var(--primary-color);
}

[data-theme="dark"] .team-expertise h4 {
  color: var(--light-text);
}

.expertise-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.expertise-tags span {
  background-color: rgba(201, 169, 97, 0.1);
  color: var(--secondary-color);
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: 600;
}

[data-theme="dark"] .expertise-tags span {
  background-color: rgba(201, 169, 97, 0.2);
}

/* PRACTICE CARDS */
.practice-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-bottom: 50px;
}

.practice-card {
  background: var(--white-bg);
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: var(--transition);
  border-top: 4px solid transparent;
  border: 1px solid var(--border-light);
}

[data-theme="dark"] .practice-card {
  background: var(--card-bg);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  border-color: var(--border-color);
}

.practice-card:hover {
  border-top-color: var(--secondary-color);
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

[data-theme="dark"] .practice-card:hover {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.practice-icon {
  font-size: 2.5rem;
  margin-bottom: 15px;
}

.practice-card h3 {
  color: var(--primary-color);
  margin-bottom: 15px;
}

[data-theme="dark"] .practice-card h3 {
  color: var(--light-text);
}

.practice-card p {
  margin-bottom: 20px;
  color: var(--gray-text);
}

[data-theme="dark"] .practice-card p {
  color: var(--muted-text);
}

.practice-card ul {
  list-style: none;
  padding: 0;
}

.practice-card li {
  padding: 8px 0;
  padding-left: 20px;
  position: relative;
  color: var(--gray-text);
}

[data-theme="dark"] .practice-card li {
  color: var(--muted-text);
}

.practice-card li:before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--secondary-color);
  font-weight: bold;
}

/* CONTACT SECTION */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
}

.contact-info h2 {
  margin-bottom: 30px;
  color: var(--primary-color);
}

[data-theme="dark"] .contact-info h2 {
  color: var(--light-text);
}

.contact-item {
  margin-bottom: 30px;
}

.contact-item h4 {
  color: var(--secondary-color);
  margin-bottom: 10px;
}

.contact-item p {
  margin-bottom: 0;
  line-height: 1.8;
  color: var(--gray-text);
}

[data-theme="dark"] .contact-item p {
  color: var(--muted-text);
}

/* CONTACT FORM */
.contact-form h2 {
  margin-bottom: 30px;
  color: var(--primary-color);
}

[data-theme="dark"] .contact-form h2 {
  color: var(--light-text);
}

.form {
  background: var(--white-bg);
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  border: 1px solid var(--border-light);
}

[data-theme="dark"] .form {
  background: var(--card-bg);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  border-color: var(--border-color);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--dark-text);
}

[data-theme="dark"] .form-group label {
  color: var(--light-text);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--border-light);
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  background-color: var(--white-bg);
  color: var(--dark-text);
  transition: var(--transition);
}

[data-theme="dark"] .form-group input,
[data-theme="dark"] .form-group textarea,
[data-theme="dark"] .form-group select {
  background-color: var(--dark-bg);
  color: var(--light-text);
  border-color: var(--border-color);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--secondary-color);
  box-shadow: 0 0 0 3px rgba(201, 169, 97, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-group input[type="checkbox"] {
  width: auto;
  margin-right: 8px;
}

/* BLOG GRID */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
  margin-bottom: 50px;
}

.blog-card {
  background: var(--white-bg);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: var(--transition);
  border: 1px solid var(--border-light);
}

[data-theme="dark"] .blog-card {
  background: var(--card-bg);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  border-color: var(--border-color);
}

.blog-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

[data-theme="dark"] .blog-card:hover {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.blog-image {
  height: 200px;
  overflow: hidden;
}

.blog-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.blog-card:hover .blog-image img {
  transform: scale(1.05);
}

.blog-content {
  padding: 25px;
}

.blog-tag {
  display: inline-block;
  background-color: rgba(201, 169, 97, 0.1);
  color: var(--secondary-color);
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 10px;
}

[data-theme="dark"] .blog-tag {
  background-color: rgba(201, 169, 97, 0.2);
}

.blog-date {
  display: block;
  color: var(--gray-text);
  font-size: 0.85rem;
  margin-bottom: 10px;
}

[data-theme="dark"] .blog-date {
  color: var(--muted-text);
}

.blog-card h3 {
  color: var(--primary-color);
  margin-bottom: 12px;
  font-size: 1.3rem;
}

[data-theme="dark"] .blog-card h3 {
  color: var(--light-text);
}

.blog-card p {
  font-size: 0.95rem;
  margin-bottom: 15px;
  color: var(--gray-text);
}

[data-theme="dark"] .blog-card p {
  color: var(--muted-text);
}

.read-more {
  color: var(--secondary-color);
  font-weight: 600;
  font-size: 0.9rem;
  display: inline-block;
  position: relative;
}

.read-more::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--secondary-color);
  transition: var(--transition);
}

.read-more:hover::after {
  width: 100%;
}

/* CTA SECTION - FIXED FOR DARK MODE */
.cta-section {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 50%, #0a1620 100%);
  color: white;
  padding: 80px 20px;
  text-align: center;
}

[data-theme="dark"] .cta-section {
  background: linear-gradient(135deg, #1a3a52 0%, #0f1f2e 50%, #0a0f15 100%);
}

.cta-section h2 {
  font-size: 2.5rem;
  margin-bottom: 15px;
  color: white;
}

[data-theme="dark"] .cta-section h2 {
  color: #ffffff;
}

.cta-section p {
  font-size: 1.2rem;
  margin-bottom: 40px;
  color: rgba(255, 255, 255, 0.9);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

[data-theme="dark"] .cta-section p {
  color: rgba(255, 255, 255, 0.9);
}

.cta-section .btn {
  border-color: white;
  color: white;
  padding: 15px 40px;
}

[data-theme="dark"] .cta-section .btn {
  border-color: white;
  color: white;
}

.cta-section .btn-primary {
  background-color: var(--secondary-color);
  border-color: var(--secondary-color);
  color: white;
}

[data-theme="dark"] .cta-section .btn-primary {
  background-color: var(--secondary-color);
  border-color: var(--secondary-color);
  color: white;
}

.cta-section .btn-primary:hover {
  background-color: var(--accent-color);
  border-color: var(--accent-color);
}

[data-theme="dark"] .cta-section .btn-primary:hover {
  background-color: var(--accent-color);
  border-color: var(--accent-color);
}

/* FOOTER - always dark, works in both light and dark mode */
.footer {
  background: linear-gradient(180deg, #0d1c2e 0%, #060c14 100%);
  color: rgba(255, 255, 255, 0.75);
  padding: 50px 20px 20px;
}

[data-theme="dark"] .footer {
  background: linear-gradient(180deg, #070d18 0%, #030710 100%);
  border-top: 1px solid rgba(201, 169, 97, 0.2);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 30px;
}

.footer-column h4 {
  color: var(--secondary-color);
  margin-bottom: 15px;
  font-size: 1.1rem;
}

[data-theme="dark"] .footer-column h4 {
  color: #dfb589;
  font-weight: 700;
}

.footer-column p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
  margin-bottom: 10px;
  line-height: 1.6;
}

[data-theme="dark"] .footer-column p {
  color: #c0d0e0;
}

.footer-column ul {
  list-style: none;
  padding: 0;
}

.footer-column li {
  margin-bottom: 8px;
}

.footer-column a {
  color: rgba(255, 255, 255, 0.8);
  transition: var(--transition);
  font-size: 0.9rem;
}

[data-theme="dark"] .footer-column a {
  color: #c0d0e0;
}

.footer-column a:hover {
  color: var(--secondary-color);
}

[data-theme="dark"] .footer-column a:hover {
  color: #dfb589;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
  text-align: center;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.85rem;
}

[data-theme="dark"] .footer-bottom {
  border-top-color: rgba(212, 175, 55, 0.3);
  color: #8a9aaa;
}

[data-theme="dark"] .footer-bottom p {
  color: #8a9aaa;
  margin-bottom: 8px;
}

[data-theme="dark"] .footer-bottom p:last-child {
  margin-bottom: 0;
}

[data-theme="dark"] .footer-bottom small {
  color: #7a8a9a;
}

/* DISCLAIMER BANNER */
.disclaimer-banner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background-color: #f0f4ff;
  border-bottom: 2px solid var(--secondary-color);
  padding: 12px 0;
}

[data-theme="dark"] .disclaimer-banner {
  background-color: rgba(26, 35, 50, 0.9);
  border-bottom-color: var(--secondary-color);
}

.disclaimer-banner p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--dark-text);
  line-height: 1.5;
}

[data-theme="dark"] .disclaimer-banner p {
  color: var(--light-text);
}

.disclaimer-banner.is-hidden {
  transform: translateY(-110%);
  opacity: 0;
  pointer-events: none;
}

.disclaimer-banner {
  transform: translateY(0);
  opacity: 1;
  transition: transform 250ms ease, opacity 250ms ease;
}

.disclaimer-inner {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
}

.disclaimer-accept {
  white-space: nowrap;
  border: 1px solid rgba(0,0,0,0.18);
  background: transparent;
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.2s ease;
}

[data-theme="dark"] .disclaimer-accept {
  border-color: rgba(255,255,255,0.22);
}

.disclaimer-accept:hover {
  transform: translateY(-1px);
  border-color: rgba(0,0,0,0.35);
}

[data-theme="dark"] .disclaimer-accept:hover {
  border-color: rgba(255,255,255,0.40);
}

/* ===================================================
   DISCLAIMER POPUP MODAL - ATTRACTIVE WITH ANIMATIONS
   =================================================== */

.disclaimer-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 20px;
  transition: opacity 0.3s ease;
  animation: disclaimerBackdropFadeIn 0.4s ease-out;
}

.disclaimer-modal.hidden {
  display: none;
}

.disclaimer-modal-content {
  width: min(650px, 95vw);
  max-height: 85vh;
  overflow-y: auto;
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  color: #1a3a52;
  border-radius: 16px;
  padding: 45px;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.35),
              0 0 60px rgba(201, 169, 97, 0.15);
  animation: disclaimerModalSlideUp 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  border: 2px solid #e0e0e0;
  position: relative;
  overflow: hidden;
}

.disclaimer-modal-content::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #c9a961 0%, #d4a574 50%, #c9a961 100%);
  animation: disclaimerTopBarSlide 0.6s ease-out;
}

html[data-theme="dark"] .disclaimer-modal-content {
  background: linear-gradient(135deg, #1a2332 0%, #0f1419 100%);
  color: #f8f9fa;
  border-color: #2a3a4a;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.5),
              0 0 60px rgba(201, 169, 97, 0.1);
}

.disclaimer-logo {
  display: flex;
  justify-content: center;
  margin-bottom: 25px;
  animation: disclaimerLogoPop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 0.1s backwards;
}

.disclaimer-logo img {
  height: 50px;
  width: auto;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.1));
  transition: transform 0.3s ease;
}

.disclaimer-logo img:hover {
  transform: scale(1.05);
}

html[data-theme="dark"] .disclaimer-logo img {
  filter: brightness(1.3) drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
}

.disclaimer-modal-content h2 {
  margin: 0 0 24px 0;
  font-size: 28px;
  font-weight: 700;
  color: #1a3a52;
  font-family: 'Lora', serif;
  text-align: center;
  background: linear-gradient(135deg, #1a3a52 0%, #c9a961 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: disclaimerTitleFade 0.7s ease-out 0.15s backwards;
}

html[data-theme="dark"] .disclaimer-modal-content h2 {
  background: linear-gradient(135deg, #ffffff 0%, #d4a574 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.disclaimer-divider {
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, transparent, #c9a961, transparent);
  margin: 0 auto 24px;
  border-radius: 2px;
  animation: disclaimerDividerExpand 0.6s ease-out 0.2s backwards;
}

.disclaimer-modal-content p {
  font-size: 15px;
  line-height: 1.9;
  margin-bottom: 18px;
  color: #4a5568;
  animation: disclaimerTextFade 0.7s ease-out 0.25s backwards;
}

html[data-theme="dark"] .disclaimer-modal-content p {
  color: #b0b0b0;
}

.disclaimer-modal-content p strong {
  color: #c9a961;
  font-weight: 700;
  display: inline-block;
  animation: disclaimerBoldPulse 0.8s ease-out 0.35s backwards;
}

html[data-theme="dark"] .disclaimer-modal-content p strong {
  color: #d4a574;
}

.disclaimer-buttons {
  display: flex;
  gap: 14px;
  margin-top: 32px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-disclaimer-decline,
.btn-disclaimer-accept {
  border: none;
  border-radius: 8px;
  padding: 14px 32px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
  overflow: hidden;
  animation: disclaimerButtonsSlideUp 0.7s ease-out 0.4s backwards;
}

.btn-disclaimer-decline::before,
.btn-disclaimer-accept::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.2);
  transition: left 0.4s ease;
  z-index: -1;
}

.btn-disclaimer-decline:hover::before,
.btn-disclaimer-accept:hover::before {
  left: 100%;
}

/* Decline Button */
.btn-disclaimer-decline {
  background: linear-gradient(135deg, #e8e8e8 0%, #d0d0d0 100%);
  color: #1a3a52;
  border: 2px solid #c0c0c0;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.btn-disclaimer-decline:hover {
  background: linear-gradient(135deg, #d0d0d0 0%, #c0c0c0 100%);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.btn-disclaimer-decline:active {
  transform: translateY(-1px);
}

html[data-theme="dark"] .btn-disclaimer-decline {
  background: linear-gradient(135deg, #3a4a5a 0%, #2a3a4a 100%);
  color: #f8f9fa;
  border-color: #4a5a6a;
}

html[data-theme="dark"] .btn-disclaimer-decline:hover {
  background: linear-gradient(135deg, #4a5a6a 0%, #3a4a5a 100%);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

/* Accept Button - HIGHLIGHTED */
.btn-disclaimer-accept {
  background: linear-gradient(135deg, #c9a961 0%, #d4a574 50%, #c9a961 100%);
  color: #ffffff;
  border: 2px solid #b8934d;
  box-shadow: 0 6px 20px rgba(201, 169, 97, 0.35);
  font-weight: 800;
}

.btn-disclaimer-accept:hover {
  background: linear-gradient(135deg, #d4a574 0%, #dfb589 50%, #d4a574 100%);
  transform: translateY(-4px);
  box-shadow: 0 12px 35px rgba(201, 169, 97, 0.5);
}

.btn-disclaimer-accept:active {
  transform: translateY(-2px);
}

html[data-theme="dark"] .btn-disclaimer-accept {
  background: linear-gradient(135deg, #b8934d 0%, #c9a961 50%, #b8934d 100%);
  border-color: #d4a574;
  box-shadow: 0 6px 20px rgba(201, 169, 97, 0.25);
}

html[data-theme="dark"] .btn-disclaimer-accept:hover {
  background: linear-gradient(135deg, #c9a961 0%, #d4a574 50%, #c9a961 100%);
  box-shadow: 0 12px 35px rgba(201, 169, 97, 0.4);
}

/* Scrollbar styling */
.disclaimer-modal-content::-webkit-scrollbar {
  width: 8px;
}

.disclaimer-modal-content::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.05);
  border-radius: 4px;
}

.disclaimer-modal-content::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #c9a961, #d4a574);
  border-radius: 4px;
  transition: background 0.3s ease;
}

.disclaimer-modal-content::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #d4a574, #dfb589);
}

html[data-theme="dark"] .disclaimer-modal-content::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
}

html[data-theme="dark"] .disclaimer-modal-content::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #666, #888);
}

/* ===================================================
   ANIMATIONS
   =================================================== */

@keyframes disclaimerBackdropFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes disclaimerModalSlideUp {
  from {
    opacity: 0;
    transform: translateY(40px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes disclaimerTopBarSlide {
  from {
    width: 0;
    opacity: 0;
  }
  to {
    width: 100%;
    opacity: 1;
  }
}

@keyframes disclaimerLogoPop {
  from {
    opacity: 0;
    transform: scale(0.3);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes disclaimerTitleFade {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes disclaimerDividerExpand {
  from {
    width: 0;
    opacity: 0;
  }
  to {
    width: 60px;
    opacity: 1;
  }
}

@keyframes disclaimerTextFade {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes disclaimerBoldPulse {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes disclaimerButtonsSlideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* RESPONSIVE */
@media (max-width: 768px) {
  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  .navbar-container {
    height: 60px;
  }

  .navbar-logo {
    gap: 8px;
    flex: 1;
  }

  .logo-text {
    display: flex;
    flex-direction: column;
    white-space: nowrap;
  }

  .firm-name {
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1;
  }

  .firm-tagline {
    font-size: 0.55rem;
    color: var(--secondary-color);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
    line-height: 1;
  }

  .logo-image {
    height: 40px;
    width: auto;
  }

  .nav-menu {
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    background: var(--white-bg);
    flex-direction: column;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  [data-theme="dark"] .nav-menu {
    background: var(--light-bg);
  }

  .nav-menu.active {
    max-height: 400px;
  }

  .nav-menu li {
    border-bottom: 1px solid var(--border-light);
  }

  [data-theme="dark"] .nav-menu li {
    border-bottom-color: var(--border-color);
  }

  .nav-menu a {
    display: block;
    padding: 12px 20px;
  }

  .menu-toggle {
    display: flex;
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .hero .btn {
    width: 100%;
  }

  .about-grid,
  .contact-grid,
  .team-full-card {
    grid-template-columns: 1fr;
  }

  .team-full-card {
    gap: 20px;
  }

  .team-full-image img {
    height: 300px;
  }

  .services-grid,
  .team-grid-preview,
  .practice-grid,
  .blog-grid,
  .reasons-grid {
    grid-template-columns: 1fr;
  }

  .page-hero h1 {
    font-size: 1.8rem;
  }

  .disclaimer-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .disclaimer-accept {
    width: 100%;
  }

  .disclaimer-modal-content {
    padding: 35px 25px;
    border-radius: 14px;
  }

  .disclaimer-modal-content h2 {
    font-size: 24px;
    margin-bottom: 18px;
  }

  .disclaimer-modal-content p {
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 14px;
  }

  .disclaimer-buttons {
    flex-direction: column;
    gap: 12px;
  }

  .btn-disclaimer-decline,
  .btn-disclaimer-accept {
    width: 100%;
    padding: 16px 24px;
    font-size: 13px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 15px;
  }

  .navbar-container {
    height: 55px;
    gap: 10px;
  }

  .navbar-logo {
    gap: 6px;
    min-width: 0;
  }

  .logo-text {
    display: flex;
    flex-direction: column;
    white-space: nowrap;
    min-width: 0;
  }

  .firm-name {
    font-size: 0.85rem;
    font-weight: 700;
    line-height: 0.95;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .firm-tagline {
    font-size: 0.5rem;
    color: var(--secondary-color);
    text-transform: uppercase;
    letter-spacing: 0.3px;
    font-weight: 600;
    line-height: 0.9;
  }

  .logo-image {
    height: 35px;
    width: auto;
    flex-shrink: 0;
  }

  h1 {
    font-size: 1.5rem;
    line-height: 1.2;
  }

  h2 {
    font-size: 1.3rem;
    line-height: 1.2;
  }

  .hero {
    padding: 60px 15px 80px;
    min-height: auto;
  }

  .hero-title {
    font-size: 1.8rem;
    line-height: 1.2;
  }

  .hero-subtitle {
    font-size: 0.95rem;
    line-height: 1.5;
  }

  .hero-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .hero .btn {
    width: 100%;
    padding: 14px 20px;
    font-size: 0.9rem;
  }

  .main-content {
    padding: 40px 15px;
  }

  .btn {
    padding: 12px 20px;
    font-size: 0.85rem;
  }

  .section-header h2 {
    font-size: 1.4rem;
    margin-bottom: 10px;
  }

  .section-header p {
    font-size: 0.95rem;
  }

  .about-grid,
  .contact-grid {
    gap: 30px;
  }

  .services-grid,
  .team-grid-preview,
  .practice-grid,
  .blog-grid,
  .reasons-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .service-card,
  .practice-card,
  .blog-card {
    padding: 25px 20px;
  }

  .page-hero h1 {
    font-size: 1.5rem;
    line-height: 1.3;
  }

  .page-hero p {
    font-size: 1rem;
  }

  .disclaimer-modal-content {
    padding: 30px 20px;
    border-radius: 12px;
  }

  .disclaimer-modal-content h2 {
    font-size: 20px;
    line-height: 1.2;
    margin-bottom: 16px;
  }

  .disclaimer-modal-content p {
    font-size: 13px;
    line-height: 1.6;
    margin-bottom: 12px;
  }

  .disclaimer-buttons {
    flex-direction: column;
    gap: 10px;
    margin-top: 24px;
  }

  .btn-disclaimer-decline,
  .btn-disclaimer-accept {
    width: 100%;
    padding: 14px 20px;
    font-size: 12px;
    letter-spacing: 0.5px;
  }

  .disclaimer-logo img {
    height: 35px;
  }
}

@media (max-width: 360px) {
  .navbar-container {
    height: 50px;
    gap: 8px;
  }

  .firm-name {
    font-size: 0.75rem;
  }

  .firm-tagline {
    font-size: 0.45rem;
    letter-spacing: 0.2px;
  }

  .logo-image {
    height: 32px;
  }

  .hero-title {
    font-size: 1.5rem;
  }

  .hero-subtitle {
    font-size: 0.9rem;
  }

  h1 {
    font-size: 1.3rem;
  }

  h2 {
    font-size: 1.1rem;
  }
}

.testimonial-card {
  background: linear-gradient(135deg, rgba(201, 169, 97, 0.05) 0%, rgba(201, 169, 97, 0.02) 100%);
  border-left: 5px solid var(--secondary-color);
  position: relative;
  padding: 45px;
  border-radius: 10px;
}

[data-theme="dark"] .testimonial-card {
  background: linear-gradient(135deg, rgba(201, 169, 97, 0.08) 0%, rgba(201, 169, 97, 0.03) 100%);
}

.quote-mark {
  position: absolute;
  top: 10px;
  left: 15px;
  font-size: 4.5rem;
  color: var(--secondary-color);
  opacity: 0.15;
  font-family: Georgia, serif;
  line-height: 1;
}

.about-quote {
  margin: 0;
  padding: 0;
}

.about-quote p {
  font-size: 1.15rem;
  font-style: italic;
  color: var(--dark-text);
  line-height: 1.95;
  margin: 0 0 25px 0;
  font-weight: 500;
  letter-spacing: 0.3px;
}

[data-theme="dark"] .about-quote p {
  color: var(--light-text);
}

.about-quote footer {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 2px solid rgba(201, 169, 97, 0.2);
}

.about-quote cite {
  display: block;
  font-style: normal;
  color: var(--secondary-color);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 1px;
  text-transform: uppercase;
}

[data-theme="dark"] .about-quote cite {
  color: var(--accent-color);
}
/* ============================================================
   SW UPDATE TOAST – Live cache update notification
   ============================================================ */

.sw-update-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(120px);
  z-index: 99998;
  transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.35s ease;
  opacity: 0;
  pointer-events: none;
}

.sw-update-toast.visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.sw-update-toast-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--white-bg, #fff);
  color: var(--dark-text, #1a3a52);
  border: 1.5px solid var(--border-light, #e8ecf1);
  border-radius: 14px;
  padding: 14px 20px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.18), 0 2px 8px rgba(201,169,97,0.12);
  min-width: 300px;
  max-width: calc(100vw - 40px);
}

[data-theme="dark"] .sw-update-toast-inner {
  background: var(--card-bg, #1e2a3a);
  border-color: var(--border-color, #2a3a4a);
  color: var(--light-text, #f0f2f5);
}

.sw-update-icon {
  font-size: 1.4rem;
  flex-shrink: 0;
  animation: spinOnce 0.6s ease-out;
}

@keyframes spinOnce {
  from { transform: rotate(-180deg); opacity: 0; }
  to   { transform: rotate(0deg);    opacity: 1; }
}

.sw-update-text {
  flex: 1;
  min-width: 0;
}

.sw-update-text strong {
  display: block;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--primary-color, #1a3a52);
  margin-bottom: 2px;
}

[data-theme="dark"] .sw-update-text strong {
  color: var(--light-text, #f0f2f5);
}

.sw-update-text small {
  font-size: 0.8rem;
  color: var(--gray-text, #5a6b7a);
}

[data-theme="dark"] .sw-update-text small {
  color: var(--muted-text, #7a8a9a);
}

.sw-update-btn {
  background: linear-gradient(135deg, #c9a961, #d4a574);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 8px 16px;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.25s ease;
  flex-shrink: 0;
}

.sw-update-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(201,169,97,0.4);
}

.sw-update-dismiss {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.1rem;
  color: var(--gray-text, #5a6b7a);
  padding: 4px;
  line-height: 1;
  flex-shrink: 0;
  transition: color 0.2s ease;
}

.sw-update-dismiss:hover { color: var(--primary-color, #1a3a52); }

[data-theme="dark"] .sw-update-dismiss       { color: var(--muted-text, #7a8a9a); }
[data-theme="dark"] .sw-update-dismiss:hover { color: var(--light-text,  #f0f2f5); }


/* ============================================================
   DISCLAIMER MODAL – Exit animation
   ============================================================ */

@keyframes disclaimerModalHide {
  from { opacity: 1; transform: translateY(0)    scale(1);    }
  to   { opacity: 0; transform: translateY(30px) scale(0.95); }
}

/* Logo dual-mode visibility inside disclaimer modal */
.disclaimer-logo-dark  { display: none; }
[data-theme="dark"] .disclaimer-logo-light { display: none; }
[data-theme="dark"] .disclaimer-logo-dark  { display: block; }


/* ============================================================
   LOADING SCREEN
   ============================================================ */

.loading-screen {
  position: fixed;
  inset: 0;
  z-index: 999999;
  background: linear-gradient(135deg, #1a3a52 0%, #0f1419 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loading-screen.hide {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loading-content {
  text-align: center;
}

.loading-logo {
  height: 60px;
  width: auto;
  margin-bottom: 24px;
  animation: logoPulse 1.2s ease-in-out infinite alternate;
  filter: brightness(1.2);
}

@keyframes logoPulse {
  from { opacity: 0.7; transform: scale(0.97); }
  to   { opacity: 1;   transform: scale(1.02); }
}

.loading-bar {
  width: 180px;
  height: 3px;
  background: rgba(255,255,255,0.15);
  border-radius: 100px;
  overflow: hidden;
  margin: 0 auto;
}

.loading-progress {
  height: 100%;
  background: linear-gradient(90deg, #c9a961, #d4a574, #c9a961);
  border-radius: 100px;
  animation: loadBar 1.4s ease-in-out infinite;
  background-size: 200% 100%;
}

@keyframes loadBar {
  0%   { width: 0%;    margin-left: 0%; }
  50%  { width: 70%;   margin-left: 15%; }
  100% { width: 0%;    margin-left: 100%; }
}




/* ============================================================
   FOOTER STYLES (canonical — footer.php uses these classes)
   ============================================================ */

/* .footer background is defined earlier; only sub-element styles here */
.footer-top {
  padding: 60px 20px 50px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
}

@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
}

.footer-logo {
  height: 45px;
  width: auto;
  margin-bottom: 16px;
  filter: brightness(1.3);
}

.footer-description {
  font-size: 0.9rem;
  line-height: 1.85;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 14px;
}

.footer-disclaimer-note small {
  font-size: 0.78rem;
  color: rgba(201, 169, 97, 0.7);
  line-height: 1.6;
  display: block;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 12px;
}

.footer-heading {
  font-family: 'Lora', serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: #c9a961;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 18px;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li { margin-bottom: 10px; }

.footer-links a {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
  text-decoration: none;
  transition: color 0.2s ease, padding-left 0.2s ease;
  display: inline-block;
}

.footer-links a:hover {
  color: #c9a961;
  padding-left: 4px;
}

.footer-contact-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 14px;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.6;
}

.footer-contact-item a {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-contact-item a:hover { color: #c9a961; }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 20px;
}

.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.footer-copyright,
.footer-legal-note {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.38);
  margin: 0;
  line-height: 1.5;
}

/* Dark mode footer sub-elements (footer bg already dark, just tune text) */
[data-theme="dark"] .footer-description       { color: rgba(255, 255, 255, 0.5); }
[data-theme="dark"] .footer-links a           { color: rgba(255, 255, 255, 0.55); }
[data-theme="dark"] .footer-links a:hover     { color: #c9a961; }
[data-theme="dark"] .footer-contact-item      { color: rgba(255, 255, 255, 0.55); }
[data-theme="dark"] .footer-contact-item a    { color: rgba(255, 255, 255, 0.55); }
[data-theme="dark"] .footer-contact-item a:hover { color: #d4a574; }
[data-theme="dark"] .footer-copyright,
[data-theme="dark"] .footer-legal-note        { color: rgba(255, 255, 255, 0.3); }
[data-theme="dark"] .footer-bottom            { border-top-color: rgba(255, 255, 255, 0.07); }
[data-theme="dark"] .footer-heading           { color: #d4a574; }

@media (max-width: 600px) {
  .footer-bottom-inner { flex-direction: column; text-align: center; }
}

/* ── Dark mode heading fix (headings inside cards, sections) ── */
[data-theme="dark"] .service-card h3,
[data-theme="dark"] .section-header h2,
[data-theme="dark"] .about-content h2,
[data-theme="dark"] .why-choose-us h2,
[data-theme="dark"] .content-section h2,
[data-theme="dark"] .contact-info h2,
[data-theme="dark"] .contact-form h2,
[data-theme="dark"] .reason h4,
[data-theme="dark"] .stat-label,
[data-theme="dark"] .practice-card h3,
[data-theme="dark"] .blog-card h3,
[data-theme="dark"] .team-full-details h3,
[data-theme="dark"] .team-member-preview h4 { color: #f0f2f5; }

/* ── Dark mode glass card overrides (team, blog) ── */
[data-theme="dark"] .team-full-card {
  background: rgba(18, 28, 46, 0.88) !important;
  border-color: rgba(255,255,255,0.06) !important;
}
[data-theme="dark"] .team-full-card:hover {
  box-shadow: 0 22px 55px rgba(0,0,0,0.55), 0 0 28px rgba(201,169,97,0.12) !important;
}
[data-theme="dark"] .team-title          { color: #d4a574 !important; }
[data-theme="dark"] .team-description    { color: #a5b5c5 !important; }
[data-theme="dark"] .team-expertise h4   { color: #c9a961 !important; }
[data-theme="dark"] .expertise-tag {
  background: rgba(201,169,97,0.13) !important;
  color: #c9a961 !important;
  border-color: rgba(201,169,97,0.28) !important;
}
[data-theme="dark"] .team-contact              { border-top-color: rgba(255,255,255,0.09) !important; }
[data-theme="dark"] .team-contact p            { color: #a5b5c5 !important; }
[data-theme="dark"] .team-contact strong       { color: #c9a961 !important; }
[data-theme="dark"] .team-contact a            { color: #c9a961 !important; }
[data-theme="dark"] .team-contact a:hover      { color: #f0f0f0 !important; }