/* ==========================================================================
   VSP Legal Services LLP - Global Styles & Design System
   ========================================================================== */

/* Import Premium Typography from Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Marcellus&family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&display=swap');

/* Custom Properties / Tokens */
:root {
  /* Color Palette */
  --navy-primary: #0A1F44;
  /* Deep Royal Navy */
  --navy-light: #15305B;
  /* Medium Slate Navy */
  --navy-dark: #06132A;
  /* Dark Midnight Navy */
  --gold-primary: #C89B3C;
  /* Warm Classical Gold */
  --gold-accent: #E5C07B;
  /* Bright Accent Gold */
  --gold-dark: #9A7224;
  /* Deep Bronze Gold */
  --cream-bg: #FAFAF8;
  /* Warm Ivory Cream */
  --grey-bg: #F3F4F6;
  /* Clean Neutral Grey */
  --white: #FFFFFF;
  --black: #0B0F19;

  /* Text Colors */
  --text-dark: #1F2937;
  /* Charcoal body text */
  --text-light: #F9FAFB;
  /* Near white text */
  --text-muted: #6B7280;
  /* Neutral grey text */
  --text-muted-dark: #9CA3AF;
  /* Lighter grey text for dark panels */

  /* Typography Fonts */
  --font-serif: 'Marcellus', 'Playfair Display', Georgia, serif;
  --font-sans: 'Inter', Poppins, -apple-system, sans-serif;

  /* Layout and Styling Units */
  --container-max-width: 1200px;
  --border-radius-sm: 4px;
  --border-radius-md: 8px;
  --border-radius-lg: 16px;
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
  --header-height: 80px;

  /* Shadow systems */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 12px rgba(10, 31, 68, 0.08);
  --shadow-lg: 0 10px 25px rgba(10, 31, 68, 0.12);
  --shadow-gold: 0 8px 24px rgba(200, 155, 60, 0.2);
}

/* ==========================================================================
   1. Reset & Global Defaults
   ========================================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--cream-bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Standard Headings */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-serif);
  color: var(--navy-primary);
  font-weight: 500;
  line-height: 1.25;
  margin-bottom: 0.75rem;
}

h1 {
  font-size: 2.75rem;
}

h2 {
  font-size: 2.25rem;
}

h3 {
  font-size: 1.75rem;
}

h4 {
  font-size: 1.25rem;
}

p {
  margin-bottom: 1.25rem;
  color: var(--text-muted);
}

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

a:hover {
  color: var(--gold-primary);
}

ul {
  list-style: none;
}

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

/* ==========================================================================
   2. Structural Layout Utilities
   ========================================================================== */
.container {
  width: 90%;
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 15px;
}

.section {
  padding: 80px 0;
  position: relative;
}

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

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

.section-navy h2,
.section-navy h3,
.section-navy h4 {
  color: var(--white);
}

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

/* Flex / Grid Utilities */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

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

/* Flex alignment helper classes */
.align-center {
  display: flex;
  align-items: center;
}

.justify-between {
  display: flex;
  justify-content: space-between;
}

/* Section Title Module */
.section-title-wrap {
  text-align: center;
  margin-bottom: 60px;
  position: relative;
}

.section-title-wrap.left-align {
  text-align: left;
}

.section-title {
  position: relative;
  display: inline-block;
  padding-bottom: 15px;
  margin-bottom: 15px;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 2px;
  background-color: var(--gold-primary);
  transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.section-title-wrap.left-align .section-title::after {
  left: 0;
  transform: none;
}

/* Intersection Observer Drawing Line Animation */
.section-title-wrap.revealed .section-title::after {
  width: 140px;
}

.section-subtitle {
  font-size: 28px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--gold-primary);
  font-weight: 600;
  margin-bottom: 5px;
  font-weight: bold;
}

/* ==========================================================================
   3. Buttons & Interactive Elements
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 30px;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  border-radius: var(--border-radius-sm);
  cursor: pointer;
  transition: all var(--transition-normal);
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn-primary {
  background-color: var(--navy-primary);
  color: var(--white);
  border-color: var(--navy-primary);
}

.btn-primary::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(200, 155, 60, 0.4), transparent);
  transition: all 0.6s ease;
  z-index: -1;
}

.btn-primary:hover::after {
  left: 100%;
}

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

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

.btn-gold:hover {
  background-color: transparent;
  color: var(--gold-primary);
  border-color: var(--gold-primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(200, 155, 60, 0.3);
}

.btn-outline {
  background-color: transparent;
  color: var(--navy-primary);
  border-color: var(--navy-primary);
}

.btn-outline-white {
  background-color: transparent;
  color: var(--white);
  border-color: var(--white);
}

.btn-outline-white:hover {
  background-color: var(--white);
  color: var(--navy-dark);
  transform: translateY(-2px);
}

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

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

.btn-block {
  display: flex;
  width: 100%;
}

/* ==========================================================================
   4. Header & Navigation Styles
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  z-index: 1000;
  background-color: transparent;
  transition: all var(--transition-normal);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Sticky Nav Scrolled State */
.site-header.scrolled {
  background-color: rgba(6, 19, 42, 0.96);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-lg);
  height: 70px;
  border-bottom: 1px solid rgba(200, 155, 60, 0.2);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  width: 90%;
  max-width: var(--container-max-width);
  margin: 0 auto;
}

.logo-link {
  display: flex;
  align-items: center;
  height: 80%;
}

.nav-logo {
  height: 48px;
  width: auto;
  max-width: 260px;
  object-fit: contain;
  transition: height var(--transition-normal);
}

.site-header.scrolled .nav-logo {
  height: 40px;
}

/* Nav Links List */
.desktop-nav .nav-list {
  display: flex;
  gap: 30px;
  align-items: center;
}

.desktop-nav .nav-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--white);
  padding: 10px 0;
  position: relative;
  letter-spacing: 0.5px;
}

/* Highlight style when scrolled */
.site-header:not(.scrolled) .nav-link {
  color: var(--white);
}

.site-header.scrolled .nav-link {
  color: rgba(255, 255, 255, 0.9);
}

.desktop-nav .nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--gold-primary);
  transition: width var(--transition-normal);
}

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

.desktop-nav .nav-link:hover {
  color: var(--gold-primary);
}

/* MEGA MENU */
.nav-item-dropdown {
  position: relative;
}

.dropdown-chevron {
  font-size: 8px;
  margin-left: 4px;
  display: inline-block;
  transition: transform var(--transition-fast);
}

.nav-item-dropdown:hover .dropdown-chevron {
  transform: rotate(180deg);
}

.mega-menu {
  position: fixed;
  top: var(--header-height);
  left: 0;
  width: 100%;
  background-color: var(--navy-dark);
  border-bottom: 3px solid var(--gold-primary);
  box-shadow: var(--shadow-lg);
  padding: 40px 0;
  visibility: hidden;
  opacity: 0;
  transform: translateY(15px);
  transition: all var(--transition-normal);
  z-index: 999;
}

.site-header.scrolled .mega-menu {
  top: 70px;
}

.nav-item-dropdown:hover .mega-menu {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
}

.mega-menu-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  width: 90%;
  max-width: var(--container-max-width);
  margin: 0 auto;
}

.mega-menu-column h4 {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--gold-primary);
  border-bottom: 1px solid rgba(200, 155, 60, 0.3);
  padding-bottom: 8px;
  margin-bottom: 15px;
}

.mega-menu-column ul li {
  margin-bottom: 8px;
}

.mega-menu-column ul li a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.85rem;
  display: block;
  padding: 4px 0;
  transition: transform var(--transition-fast), color var(--transition-fast);
}

.mega-menu-column ul li a:hover {
  color: var(--gold-accent);
  transform: translateX(5px);
}

.highlight-link {
  font-weight: 600;
}

.badge-tech {
  background-color: #3B82F6;
  color: var(--white);
  font-size: 9px;
  padding: 1px 4px;
  border-radius: 3px;
  vertical-align: middle;
  margin-left: 5px;
}

.badge-gold {
  background-color: var(--gold-primary);
  color: var(--navy-dark);
  font-size: 9px;
  padding: 1px 4px;
  border-radius: 3px;
  vertical-align: middle;
  margin-left: 5px;
}

/* Local CORS Fallback Banner */
.cors-warning-banner {
  background-color: #B45309;
  color: #FFFbeb;
  text-align: center;
  padding: 6px 15px;
  font-size: 12px;
  font-weight: 500;
  position: relative;
  z-index: 10001;
  display: none;
  /* Controlled via script.js */
}

.cors-warning-banner a {
  color: var(--white);
  text-decoration: underline;
  font-weight: 700;
}

/* Hamburguer Mobile Toggle */
.mobile-nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
}

.hamburger-bar {
  display: block;
  width: 25px;
  height: 2px;
  background-color: var(--white);
  margin: 5px 0;
  transition: var(--transition-normal);
}

/* Mobile Nav Drawer Open states handled in script.js */

/* ==========================================================================
   5. Footer Styles
   ========================================================================== */
.site-footer {
  background-color: var(--navy-dark);
  color: var(--text-light);
  border-top: 4px solid var(--gold-primary);
  font-family: var(--font-sans);
}

.footer-top {
  padding: 80px 0 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 2fr;
  gap: 40px;
}

.footer-logo {
  height: 56px;
  width: auto;
  max-width: 280px;
  object-fit: contain;
  margin-bottom: 20px;
}

.footer-about {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--text-muted-dark);
  margin-bottom: 20px;
}

.footer-socials {
  display: flex;
  gap: 15px;
}

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 32px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--border-radius-sm);
  color: var(--text-light);
  font-size: 0.75rem;
  font-weight: 500;
}

.social-icon:hover {
  background-color: var(--gold-primary);
  border-color: var(--gold-primary);
  color: var(--navy-dark);
}

.footer-title {
  color: var(--gold-primary);
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 25px;
  position: relative;
  padding-bottom: 10px;
}

.footer-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 1px;
  background-color: var(--gold-primary);
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links li a {
  color: var(--text-muted-dark);
  font-size: 0.9rem;
  transition: var(--transition-fast);
}

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

.office-address,
.contact-details {
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--text-muted-dark);
  margin-bottom: 20px;
}

.office-address strong,
.contact-details strong {
  color: var(--white);
}

.contact-details a {
  color: var(--gold-accent);
}

.newsletter-box {
  background-color: rgba(255, 255, 255, 0.05);
  padding: 20px;
  border-radius: var(--border-radius-sm);
  border-left: 3px solid var(--gold-primary);
  margin-top: 15px;
}

.newsletter-title {
  color: var(--white);
  font-family: var(--font-sans);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 10px;
}

.newsletter-form {
  display: flex;
  gap: 8px;
}

.newsletter-form input {
  flex-grow: 1;
  background-color: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 8px 12px;
  color: var(--white);
  border-radius: var(--border-radius-sm);
  font-size: 0.8rem;
}

.newsletter-form input:focus {
  outline: none;
  border-color: var(--gold-primary);
}

.footer-bottom {
  background-color: var(--navy-primary);
  padding: 30px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.8rem;
  color: var(--text-muted-dark);
}

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

.legal-links a {
  color: var(--text-muted-dark);
  margin-left: 20px;
}

.legal-links a:hover {
  color: var(--gold-accent);
}

.bar-disclaimer {
  line-height: 1.6;
  text-align: justify;
  font-size: 0.72rem;
  color: var(--text-muted-dark);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 20px;
}

.bar-disclaimer strong {
  color: var(--gold-primary);
}

/* ==========================================================================
   6. Home Page Specific Components
   ========================================================================== */

/* Hero Slider Section */
.hero-slider-container {
  height: 100vh;
  min-height: 600px;
  position: relative;
  overflow: hidden;
  background-color: var(--navy-dark);
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1s ease-in-out, visibility 1s ease-in-out;
  display: flex;
  align-items: center;
  z-index: 1;
}

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

/* Background image with Ken Burns effect */
.slide-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  z-index: -1;
  transform: scale(1);
}

.hero-slide.active .slide-bg {
  animation: kenBurns 8s forwards;
}

/* Overlay for styling */
.slide-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 70% 30%, rgba(10, 31, 68, 0.45) 0%, rgba(6, 19, 42, 0.95) 75%);
  z-index: 0;
}

.slide-content-wrap {
  width: 90%;
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 15px;
  position: relative;
  z-index: 5;
  color: var(--white);
}

.slide-content {
  max-width: 650px;
}

.slide-tagline {
  color: var(--gold-primary);
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-size: 0.85rem;
  margin-bottom: 15px;
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.2s;
}

.slide-title {
  font-family: var(--font-serif);
  font-size: 3.5rem;
  line-height: 1.15;
  color: var(--white);
  margin-bottom: 20px;
  transform: translateY(30px);
  opacity: 0;
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.4s;
}

.slide-desc {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 35px;
  transform: translateY(30px);
  opacity: 0;
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.6s;
}

.slide-actions {
  display: flex;
  gap: 15px;
  transform: translateY(25px);
  opacity: 0;
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.8s;
}

/* Animations for active slide contents */
.hero-slide.active .slide-tagline,
.hero-slide.active .slide-title,
.hero-slide.active .slide-desc,
.hero-slide.active .slide-actions {
  transform: translateY(0);
  opacity: 1;
}

/* Slider Controls */
.slider-control {
  position: absolute;
  bottom: 40px;
  right: 5%;
  z-index: 10;
  display: flex;
  gap: 15px;
}

.slider-btn {
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: var(--white);
  width: 45px;
  height: 45px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-normal);
  font-size: 1.25rem;
}

.slider-btn:hover {
  background-color: var(--gold-primary);
  border-color: var(--gold-primary);
  color: var(--navy-dark);
  transform: scale(1.05);
}

.slider-dots {
  position: absolute;
  bottom: 45px;
  left: 5%;
  z-index: 10;
  display: flex;
  gap: 8px;
}

.slider-dot {
  width: 30px;
  height: 4px;
  background-color: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: var(--transition-normal);
}

.slider-dot.active {
  background-color: var(--gold-primary);
  width: 50px;
}

/* Animated Honeycomb Overlay Background (Using inline pattern styles) */
.honeycomb-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  background-image: radial-gradient(rgba(200, 155, 60, 0.03) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
  opacity: 0.7;
}

/* Trust Bar Stats Section */
.trust-bar {
  background-color: var(--navy-primary);
  color: var(--white);
  padding: 40px 0;
  border-bottom: 2px solid var(--gold-primary);
  position: relative;
  z-index: 5;
}

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

.stat-item {
  text-align: center;
}

.stat-number {
  font-family: var(--font-serif);
  font-size: 3rem;
  color: var(--gold-primary);
  font-weight: 700;
  line-height: 1;
  margin-bottom: 5px;
}

.stat-label {
  font-size: 0.85rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-muted-dark);
}

/* Snapshot About block */
.about-snapshot-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: stretch;
}

.about-snapshot-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.about-snapshot-image {
  position: relative;
  border: 1px solid rgba(200, 155, 60, 0.3);
  border-radius: var(--border-radius-md);
  padding: 15px;
  background: var(--white);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.about-snapshot-image img {
  width: 100%;
  flex: 1;
  min-height: 0;
  object-fit: cover;
  object-position: center;
  border-radius: calc(var(--border-radius-md) - 8px);
  display: block;
}

.about-snapshot-image::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 2px solid var(--gold-primary);
  transform: translate(-10px, -10px);
  z-index: -1;
  border-radius: var(--border-radius-md);
}

/* Service Preview Grid cards */
.practice-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.practice-card {
  background-color: var(--white);
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  height: 100%;
  border-bottom: 3px solid transparent;
}

.practice-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 50px rgba(10, 31, 68, 0.18);
  border-bottom-color: var(--gold-primary);
}

/* Image header */
.practice-card-img {
  position: relative;
  height: 190px;
  background-size: cover;
  background-position: center;
  overflow: hidden;
  flex-shrink: 0;
  transition: background-size 0.5s ease;
}

.practice-card:hover .practice-card-img {
  background-size: 115%;
}

.practice-card-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(10, 31, 68, 0.72) 0%, rgba(10, 31, 68, 0.45) 100%);
  transition: opacity var(--transition-normal);
}

.practice-card:hover .practice-card-img::after {
  opacity: 0.55;
}

.practice-card-img-overlay {
  display: none;
}

/* Card body */
.practice-card-body {
  padding: 40px 22px 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.practice-card-body h3 {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  color: var(--navy-dark);
  margin-bottom: 10px;
}

.practice-card-body p {
  font-size: 0.87rem;
  color: var(--text-muted);
  line-height: 1.7;
  flex-grow: 1;
  margin-bottom: 16px;
}

.practice-icon {
  position: absolute;
  bottom: -24px;
  left: 22px;
  z-index: 2;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid var(--gold-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  box-shadow: 0 4px 14px rgba(10, 31, 68, 0.2);
  transition: all var(--transition-normal);
}

.practice-card:hover .practice-icon {
  background: var(--gold-primary);
  transform: scale(1.12);
}

.practice-card h3 {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  margin-bottom: 15px;
}

.practice-card p {
  font-size: 0.9rem;
  flex-grow: 1;
  margin-bottom: 20px;
}

.practice-card .learn-more-link {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--navy-primary);
  letter-spacing: 0.5px;
}

.practice-card .learn-more-link::after {
  content: ' →';
  transition: var(--transition-fast);
}

.practice-card:hover .learn-more-link {
  color: var(--gold-primary);
}

.practice-card:hover .learn-more-link::after {
  padding-left: 5px;
}

/* Spotlight sections (NRI & AI) */
.spotlight-wrapper {
  background-color: var(--navy-primary);
  color: var(--white);
  padding: 60px 50px;
  border-radius: var(--border-radius-lg);
  border: 1px solid rgba(200, 155, 60, 0.3);
  box-shadow: var(--shadow-lg);
}

.spotlight-header-flex {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 30px;
  margin-bottom: 40px;
}

.spotlight-list-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 25px;
}

.spotlight-list-item {
  display: flex;
  align-items: flex-start;
  gap: 15px;
}

.spotlight-list-item span.bullet {
  color: var(--gold-primary);
  font-size: 1.2rem;
  line-height: 1;
}

.spotlight-list-item h4 {
  font-family: var(--font-sans);
  font-size: 1.05rem;
  color: var(--white);
  margin-bottom: 5px;
  font-weight: 600;
}

.spotlight-list-item p {
  font-size: 0.85rem;
  color: var(--text-muted-dark);
}

/* AI Spotlight Page design tweak */
.ai-spotlight {
  background: radial-gradient(circle at 10% 10%, rgba(59, 130, 246, 0.1) 0%, transparent 50%), var(--navy-dark);
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.ai-spotlight h2 {
  font-family: var(--font-serif);
}

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

.ai-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--border-radius-md);
  padding: 30px 24px;
  transition: all var(--transition-normal);
}

.ai-card:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: #3B82F6;
  transform: translateY(-5px);
}

.ai-icon-hex {
  color: #3B82F6;
  font-size: 1.8rem;
  margin-bottom: 20px;
}

.ai-card h3 {
  font-family: var(--font-sans);
  font-size: 1.15rem;
  margin-bottom: 12px;
  color: var(--white);
}

.ai-card p {
  font-size: 0.85rem;
  color: var(--text-muted-dark);
  margin-bottom: 0;
}

/* Why Choose Us features */
.choose-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.choose-item {
  text-align: center;
  padding: 20px;
}

.choose-icon {
  width: 70px;
  height: 70px;
  background-color: var(--white);
  border: 1px solid rgba(200, 155, 60, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 1.6rem;
  color: var(--gold-primary);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-normal);
}

.choose-item:hover .choose-icon {
  background-color: var(--gold-primary);
  color: var(--navy-dark);
  transform: rotate(360deg);
}

.choose-item h3 {
  font-family: var(--font-sans);
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.choose-item p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Testimonials Carousel */
.testimonials-slider-container {
  max-width: 800px;
  margin: 0 auto;
  overflow: hidden;
  position: relative;
  min-height: 250px;
}

.testimonial-track {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.testimonial-slide {
  min-width: 100%;
  text-align: center;
  padding: 20px 40px;
}

.testimonial-quote {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-style: italic;
  line-height: 1.6;
  color: var(--navy-light);
  margin-bottom: 25px;
}

.testimonial-stars {
  color: var(--gold-primary);
  font-size: 1.1rem;
  margin-bottom: 15px;
}

.testimonial-author {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--navy-primary);
}

.testimonial-location {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Testimonial Nav dots */
.testimonial-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 30px;
}

.testimonial-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: rgba(10, 31, 68, 0.15);
  cursor: pointer;
  transition: var(--transition-normal);
}

.testimonial-dot.active {
  background-color: var(--gold-primary);
  transform: scale(1.2);
}

/* High-impact Call-To-Action Banner */
.cta-banner-gold {
  background: linear-gradient(135deg, var(--gold-primary) 0%, var(--gold-dark) 100%);
  color: var(--navy-dark);
  padding: 60px 0;
  text-align: center;
}

.cta-banner-gold h2 {
  color: var(--navy-dark);
  font-family: var(--font-serif);
  font-size: 2.25rem;
  margin-bottom: 10px;
}

.cta-banner-gold p {
  color: rgba(10, 31, 68, 0.8);
  font-size: 1.1rem;
  margin-bottom: 25px;
  font-weight: 500;
}

.cta-numbers {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.cta-number-item {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--navy-dark);
  border: 1px solid rgba(10, 31, 68, 0.2);
  padding: 10px 20px;
  border-radius: var(--border-radius-sm);
  background: rgba(255, 255, 255, 0.2);
}

/* ==========================================================================
   7. About Us Page Components
   ========================================================================== */
.about-hero {
  padding-top: 160px;
  background-color: var(--navy-dark);
  color: var(--white);
  text-align: center;
}

.about-intro-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 60px;
  margin-bottom: 80px;
}

.about-intro-text p {
  font-size: 1.05rem;
  line-height: 1.7;
}

.about-card-stat {
  background-color: var(--navy-primary);
  border: 1px solid var(--gold-primary);
  padding: 40px;
  border-radius: var(--border-radius-md);
  color: var(--white);
  height: max-content;
}

.about-card-stat h3 {
  color: var(--gold-primary);
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  margin-top: 40px;
}

.value-card {
  background: var(--white);
  padding: 30px;
  border-radius: var(--border-radius-md);
  border-left: 4px solid var(--gold-primary);
  box-shadow: var(--shadow-sm);
}

.value-card h3 {
  font-family: var(--font-sans);
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.team-member {
  background-color: var(--white);
  border-radius: var(--border-radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-normal);
}

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

.team-img-placeholder {
  height: 280px;
  background-color: var(--grey-bg);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.team-img-placeholder svg {
  width: 100px;
  height: 100px;
  color: var(--navy-light);
  opacity: 0.3;
}

.team-info {
  padding: 25px;
}

.team-name {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  color: var(--navy-primary);
  margin-bottom: 5px;
}

.team-role {
  color: var(--gold-primary);
  font-size: 0.85rem;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 1px;
  margin-bottom: 15px;
}

.team-bio {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Office presence map area */
.presence-wrap {
  text-align: center;
}

.presence-map-placeholder {
  max-width: 600px;
  margin: 0 auto;
  position: relative;
}

.india-svg-mock {
  opacity: 0.15;
  width: 100%;
  height: auto;
}

.map-pin {
  position: absolute;
  width: 12px;
  height: 12px;
  background-color: var(--gold-primary);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(200, 155, 60, 0.4);
  cursor: pointer;
  animation: pulsePin 2s infinite;
}

.map-pin::after {
  content: attr(data-city);
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--navy-primary);
  color: var(--white);
  padding: 4px 8px;
  font-size: 10px;
  border-radius: 3px;
  white-space: nowrap;
  opacity: 0;
  transition: var(--transition-normal);
  pointer-events: none;
}

.map-pin:hover::after {
  opacity: 1;
}

/* ==========================================================================
   8. Services Hub Page
   ========================================================================== */
.services-hub-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 40px;
}

.services-sidebar {
  position: sticky;
  top: 100px;
  height: max-content;
  background-color: var(--white);
  padding: 25px;
  border-radius: var(--border-radius-md);
  border: 1px solid rgba(10, 31, 68, 0.05);
  box-shadow: var(--shadow-sm);
}

.services-sidebar h3 {
  font-family: var(--font-sans);
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--navy-primary);
  border-bottom: 2px solid var(--gold-primary);
  padding-bottom: 10px;
  margin-bottom: 15px;
}

.sidebar-menu li a {
  display: block;
  padding: 8px 12px;
  font-size: 0.85rem;
  color: var(--text-muted);
  border-radius: var(--border-radius-sm);
  transition: all var(--transition-fast);
}

.sidebar-menu li a:hover,
.sidebar-menu li a.active {
  background-color: var(--navy-primary);
  color: var(--gold-accent);
  padding-left: 18px;
}

.services-content-wrap {
  display: flex;
  flex-direction: column;
  gap: 60px;
}

.category-block {
  background-color: var(--white);
  padding: 40px;
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-sm);
  scroll-margin-top: 100px;
}

.category-block h2 {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  border-bottom: 1px solid rgba(10, 31, 68, 0.1);
  padding-bottom: 12px;
  margin-bottom: 25px;
  color: var(--navy-primary);
}

/* Accordion Component */
.accordion-item {
  border: 1px solid rgba(10, 31, 68, 0.08);
  border-radius: var(--border-radius-sm);
  margin-bottom: 12px;
  overflow: hidden;
}

.accordion-header {
  background-color: var(--grey-bg);
  width: 100%;
  border: none;
  padding: 18px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  text-align: left;
  transition: background-color var(--transition-normal);
}

.accordion-header:hover {
  background-color: rgba(200, 155, 60, 0.05);
}

.accordion-title-flex {
  display: flex;
  align-items: center;
  gap: 15px;
}

.accordion-icon-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: rgba(10, 31, 68, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-primary);
  font-size: 0.9rem;
}

.accordion-title {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  color: var(--navy-primary);
}

.accordion-arrow {
  color: var(--gold-primary);
  font-size: 0.8rem;
  transition: transform var(--transition-normal);
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-slow) cubic-bezier(0, 1, 0, 1);
  background-color: var(--white);
}

.accordion-content-inner {
  padding: 24px;
  border-top: 1px solid rgba(10, 31, 68, 0.05);
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Accordion Active States */
.accordion-item.active .accordion-header {
  background-color: var(--navy-primary);
}

.accordion-item.active .accordion-title {
  color: var(--white);
}

.accordion-item.active .accordion-icon-circle {
  background-color: rgba(255, 255, 255, 0.15);
  color: var(--gold-accent);
}

.accordion-item.active .accordion-arrow {
  transform: rotate(180deg);
  color: var(--gold-accent);
}

.accordion-item.active .accordion-content {
  max-height: 1000px;
  /* Large enough value to support contents */
  transition: max-height var(--transition-slow) cubic-bezier(0.9, 0, 0.1, 1);
}

/* ==========================================================================
   9. NRI & Immigration Page
   ========================================================================== */
.nri-services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.nri-service-card {
  background: var(--white);
  padding: 30px;
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-sm);
  display: flex;
  gap: 20px;
  border-top: 3px solid var(--gold-primary);
}

.nri-card-icon {
  width: 50px;
  height: 50px;
  background-color: rgba(200, 155, 60, 0.1);
  border-radius: var(--border-radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-primary);
  font-size: 1.3rem;
  flex-shrink: 0;
}

.nri-card-info h3 {
  font-family: var(--font-sans);
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.nri-card-info p {
  font-size: 0.85rem;
  margin-bottom: 0;
}

/* Timeline Process (Horizontal) */
.timeline-wrap {
  display: flex;
  justify-content: space-between;
  position: relative;
  margin-top: 60px;
}

.timeline-wrap::before {
  content: '';
  position: absolute;
  top: 30px;
  left: 5%;
  width: 90%;
  height: 2px;
  background-color: rgba(200, 155, 60, 0.25);
  z-index: 1;
}

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

.step-node {
  width: 60px;
  height: 60px;
  background-color: var(--navy-primary);
  border: 3px solid var(--gold-primary);
  color: var(--white);
  font-family: var(--font-serif);
  font-size: 1.4rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  transition: all var(--transition-normal);
}

.timeline-step:hover .step-node {
  transform: scale(1.15);
  background-color: var(--gold-primary);
  color: var(--navy-dark);
}

.timeline-step h3 {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 8px;
}

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

/* ==========================================================================
   10. AI Services & Tech Demo
   ========================================================================== */
.ai-intro-sec {
  background: radial-gradient(circle at 80% 80%, rgba(59, 130, 246, 0.08) 0%, transparent 60%);
}

.ai-details-list {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.ai-detail-item {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 50px;
  align-items: center;
}

.ai-detail-item:nth-child(even) {
  grid-template-columns: 0.8fr 1.2fr;
}

.ai-detail-item:nth-child(even) .ai-detail-content {
  order: 2;
}

.ai-detail-content h3 {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  margin-bottom: 15px;
}

.ai-detail-media {
  background-color: var(--white);
  border-radius: var(--border-radius-md);
  padding: 10px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(59, 130, 246, 0.1);
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Mock UI Widget (For Sandbox) */
.mock-ui-widget {
  background-color: var(--black);
  border-radius: var(--border-radius-sm);
  color: #38BDF8;
  font-family: monospace;
  padding: 20px;
  font-size: 0.8rem;
  box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.8);
  height: 100%;
}

.mock-ui-header {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid rgba(56, 189, 248, 0.2);
  padding-bottom: 8px;
  margin-bottom: 12px;
}

.mock-dots {
  display: flex;
  gap: 5px;
}

.mock-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: rgba(56, 189, 248, 0.4);
}

.mock-ui-body {
  line-height: 1.5;
}

.mock-ui-typing {
  color: var(--white);
  border-right: 2px solid var(--white);
  animation: typingBlink 0.8s infinite;
}

/* Interactive Sandbox Form Inside AI Page */
.ai-sandbox-card {
  background: var(--white);
  border-radius: var(--border-radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(59, 130, 246, 0.2);
}

.ai-sandbox-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 40px;
}

.demo-chat-box {
  background-color: #0F172A;
  border-radius: var(--border-radius-md);
  padding: 20px;
  height: 350px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.5);
}

.chat-messages {
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex-grow: 1;
  margin-bottom: 15px;
  padding-right: 5px;
}

.chat-msg {
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 0.85rem;
  max-width: 85%;
  line-height: 1.4;
}

.chat-msg.bot {
  background-color: #1E293B;
  color: var(--white);
  align-self: flex-start;
  border-bottom-left-radius: 2px;
}

.chat-msg.user {
  background-color: #3B82F6;
  color: var(--white);
  align-self: flex-end;
  border-bottom-right-radius: 2px;
}

.chat-input-area {
  display: flex;
  gap: 8px;
}

.chat-input-area input {
  flex-grow: 1;
  background-color: #1E293B;
  border: 1px solid #334155;
  border-radius: var(--border-radius-sm);
  padding: 10px 14px;
  color: var(--white);
  font-size: 0.85rem;
}

.chat-input-area input:focus {
  outline: none;
  border-color: #3B82F6;
}

/* ==========================================================================
   11. Contact Us Page
   ========================================================================== */
.contact-grid-main {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 60px;
}

.contact-card-form {
  background-color: var(--white);
  padding: 40px;
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-md);
  border-top: 4px solid var(--gold-primary);
}

.form-group-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 20px;
}

.form-group {
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
}

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

.form-control {
  font-family: var(--font-sans);
  border: 1px solid #D1D5DB;
  padding: 12px 16px;
  font-size: 0.95rem;
  border-radius: var(--border-radius-sm);
  background-color: var(--cream-bg);
  transition: all var(--transition-fast);
}

.form-control:focus {
  outline: none;
  border-color: var(--gold-primary);
  background-color: var(--white);
  box-shadow: 0 0 0 3px rgba(200, 155, 60, 0.1);
}

textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

/* Custom file attachment box styles */
.file-upload-wrapper {
  position: relative;
  margin-bottom: 10px;
}

.file-upload-input {
  width: 100%;
  opacity: 0;
  height: 48px;
  position: absolute;
  top: 0;
  left: 0;
  cursor: pointer;
  z-index: 2;
}

.file-upload-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px dashed var(--gold-primary);
  background-color: rgba(200, 155, 60, 0.03);
  padding: 12px 16px;
  border-radius: var(--border-radius-sm);
  font-size: 0.875rem;
  color: var(--text-muted);
  transition: background-color var(--transition-fast);
}

.file-upload-input:hover+.file-upload-label {
  background-color: rgba(200, 155, 60, 0.08);
}

.upload-btn-text {
  font-weight: 600;
  color: var(--navy-primary);
}

.file-upload-info {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 5px;
}

.form-feedback {
  font-size: 0.85rem;
  margin-top: 15px;
  padding: 10px 15px;
  border-radius: var(--border-radius-sm);
  display: none;
}

.form-feedback.success {
  background-color: #DEF7EC;
  color: #03543F;
  border: 1px solid #BCF0DA;
  display: block;
}

.form-feedback.error {
  background-color: #FDE8E8;
  color: #9B1C1C;
  border: 1px solid #F8B4B4;
  display: block;
}

/* Office Sidebar Details */
.contact-sidebar-info {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.sidebar-contact-card {
  background: var(--white);
  padding: 30px;
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-sm);
  border-left: 3px solid var(--gold-primary);
}

.sidebar-contact-card h3 {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 15px;
  color: var(--navy-primary);
}

.map-container {
  border-radius: var(--border-radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(10, 31, 68, 0.08);
}

/* ==========================================================================
   12. Popups, Modals & Persistent Actions
   ========================================================================== */

/* General Consultation Modal */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(6, 19, 42, 0.85);
  backdrop-filter: blur(5px);
  z-index: 10000;
  display: none;
  /* Controlled via script.js */
  align-items: center;
  justify-content: center;
}

.modal-overlay.active {
  display: flex;
}

.modal-box {
  background-color: var(--white);
  width: 90%;
  max-width: 550px;
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  position: relative;
  border-top: 5px solid var(--gold-primary);
  animation: modalReveal 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-header {
  padding: 30px 30px 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h3 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  margin-bottom: 5px;
}

.modal-close {
  background: none;
  border: none;
  font-size: 1.75rem;
  color: var(--text-muted);
  cursor: pointer;
  line-height: 1;
}

.modal-close:hover {
  color: var(--gold-primary);
}

.modal-body {
  padding: 20px 30px 30px;
}

/* Persistent Bottom Right Widgets */
.floating-widgets {
  position: fixed;
  bottom: 30px;
  right: 30px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  z-index: 998;
}

.floating-btn {
  width: 55px;
  height: 55px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  cursor: pointer;
  position: relative;
  transition: transform var(--transition-normal);
}

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

.floating-btn.whatsapp {
  background-color: #25D366;
}

.floating-btn.call {
  background-color: var(--gold-primary);
}

.floating-btn.whatsapp svg,
.floating-btn.call svg {
  width: 26px;
  height: 26px;
  fill: var(--white);
}

/* Pulsing waves animations around floats */
.floating-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  z-index: -1;
  animation: pulseWidget 2s infinite;
}

.floating-btn.whatsapp::before {
  box-shadow: 0 0 0 0px rgba(37, 211, 102, 0.5);
}

.floating-btn.call::before {
  box-shadow: 0 0 0 0px rgba(200, 155, 60, 0.5);
}

/* Sticky consultation bar for mobile phones */
.sticky-mobile-cta {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: var(--navy-primary);
  border-top: 2px solid var(--gold-primary);
  padding: 10px 15px;
  z-index: 997;
  box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.15);
}

/* ==========================================================================
   13. Scroll Reveal & Framework Animations
   ========================================================================== */

/* Scroll Trigger reveals */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Keyframes Definitions */
@keyframes kenBurns {
  from {
    transform: scale(1);
  }

  to {
    transform: scale(1.08);
  }
}

@keyframes pulseWidget {
  0% {
    box-shadow: 0 0 0 0px rgba(200, 155, 60, 0.6);
  }

  70% {
    box-shadow: 0 0 0 15px rgba(200, 155, 60, 0);
  }

  100% {
    box-shadow: 0 0 0 0px rgba(200, 155, 60, 0);
  }
}

@keyframes pulsePin {
  0% {
    box-shadow: 0 0 0 0px rgba(200, 155, 60, 0.7);
  }

  70% {
    box-shadow: 0 0 0 10px rgba(200, 155, 60, 0);
  }

  100% {
    box-shadow: 0 0 0 0px rgba(200, 155, 60, 0);
  }
}

@keyframes modalReveal {
  from {
    opacity: 0;
    transform: scale(0.9);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes typingBlink {
  50% {
    border-color: transparent;
  }
}

/* ==========================================================================
   14. Mobile Drawer Overlay Navigation Styling
   ========================================================================== */
.nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(6, 19, 42, 0.8);
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
  z-index: 1001;
}

.nav-overlay.active {
  opacity: 1;
  visibility: visible;
}

.mobile-menu {
  position: fixed;
  top: 0;
  right: -320px;
  width: 320px;
  height: 100vh;
  background-color: var(--navy-dark);
  color: var(--white);
  box-shadow: -5px 0 25px rgba(0, 0, 0, 0.5);
  z-index: 1002;
  transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu.active {
  right: 0;
}

.mobile-menu-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 30px 24px;
}

.mobile-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
}

.mobile-logo {
  height: 40px;
}

.mobile-menu-close {
  background: none;
  border: none;
  color: var(--white);
  font-size: 2.2rem;
  cursor: pointer;
  line-height: 1;
}

.mobile-nav-links ul li {
  margin-bottom: 20px;
}

.mobile-nav-link {
  color: var(--white);
  font-size: 1.15rem;
  font-weight: 500;
  display: block;
}

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

/* Mobile Accordion Menu */
.mobile-dropdown-toggle {
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.15rem;
  font-weight: 500;
  text-align: left;
  width: 100%;
  padding: 0;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.mobile-dropdown-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-normal);
  padding-left: 15px;
  margin-top: 10px;
}

.mobile-dropdown-menu li {
  margin-bottom: 10px !important;
}

.mobile-dropdown-menu li a {
  color: var(--text-muted-dark);
  font-size: 0.95rem;
}

.mobile-dropdown-menu li a:hover {
  color: var(--gold-accent);
}

.mobile-dropdown.active .mobile-dropdown-menu {
  max-height: 300px;
}

.mobile-dropdown.active .mobile-dropdown-toggle .chevron {
  transform: rotate(180deg);
  color: var(--gold-primary);
}

.mobile-menu-footer {
  margin-top: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 20px;
}

.mobile-contact-info {
  margin-top: 20px;
  font-size: 0.85rem;
  text-align: center;
}

.mobile-contact-info a {
  color: var(--gold-accent);
}

/* ==========================================================================
   15. Responsive Media Queries
   ========================================================================== */

/* Medium Devices - Tablets (under 1024px) */
@media (max-width: 1024px) {
  h1 {
    font-size: 2.25rem;
  }

  h2 {
    font-size: 1.85rem;
  }

  .desktop-nav,
  .header-actions .open-consultation-btn {
    display: none;
  }

  .mobile-nav-toggle {
    display: block;
  }

  .grid-4,
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .hero-slide {
    align-items: center;
  }

  .slide-title {
    font-size: 2.75rem;
  }

  .about-snapshot-wrap,
  .about-intro-grid,
  .contact-grid-main {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .services-hub-layout {
    grid-template-columns: 1fr;
  }

  .services-sidebar {
    position: static;
    margin-bottom: 30px;
  }

  .timeline-wrap::before {
    display: none;
  }

  .timeline-wrap {
    flex-direction: column;
    gap: 30px;
    align-items: flex-start;
  }

  .timeline-step {
    width: 100%;
    display: flex;
    text-align: left;
    align-items: center;
    gap: 20px;
  }

  .step-node {
    margin: 0;
    flex-shrink: 0;
  }

  .timeline-step p {
    margin-bottom: 0;
  }
}

/* Small Devices - Mobile Phones (under 768px) */
@media (max-width: 768px) {
  .section {
    padding: 60px 0;
  }

  .grid-2,
  .grid-3,
  .grid-4,
  .stats-grid,
  .practice-grid,
  .nri-services-grid,
  .choose-grid,
  .team-grid,
  .ai-grid,
  .form-group-row {
    grid-template-columns: 1fr;
  }

  .slide-title {
    font-size: 2.2rem;
  }

  .slide-desc {
    font-size: 0.95rem;
  }

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

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

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

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

  .legal-links a {
    margin: 0 10px;
  }

  .floating-widgets {
    bottom: 80px;
    /* Shift up to avoid blocking sticky mobile bar */
    right: 20px;
  }

  .sticky-mobile-cta {
    display: block;
  }

  body {
    padding-bottom: 60px;
    /* Space for mobile sticky footer cta */
  }
}

.cta-number-item a {
  color: inherit;
  text-decoration: none;
}

.cta-number-item a:hover {
  text-decoration: underline;
}