/* ==========================================================================
   MAHESHWARI & CO. - Advocates & Legal Consultants Design System
   ========================================================================== */

:root {
  --primary-red: #d9232d;
  --primary-red-dark: #b31b25;
  --primary-red-light: #fff0f1;
  --accent-gold: #d4af37;
  --accent-gold-light: #fef9e7;
  --dark-navy: #151821;
  --dark-surface: #1e222d;
  --text-dark: #212529;
  --text-muted: #6c757d;
  --bg-light: #f8f9fa;
  --bg-alt: #f1f4f8;
  --border-color: #e5e9f2;
  --white: #ffffff;
  
  --font-heading: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 20px 45px rgba(0, 0, 0, 0.12);
  --shadow-hover: 0 25px 50px rgba(217, 35, 45, 0.15);
  
  --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-normal: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset & Base Styles */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background-color: var(--white);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

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

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

ul {
  list-style: none;
}

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ==========================================================================
   Top bar & Header Navigation
   ========================================================================== */

.top-bar {
  background-color: var(--dark-navy);
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.85rem;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.top-info {
  display: flex;
  gap: 20px;
  align-items: center;
  flex-wrap: wrap;
}

.top-info span {
  display: flex;
  align-items: center;
  gap: 8px;
}

.top-info i {
  color: var(--accent-gold);
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.phone-btn {
  background-color: var(--primary-red);
  color: var(--white);
  padding: 6px 18px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition-fast);
}

.phone-btn:hover {
  background-color: var(--primary-red-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(217, 35, 45, 0.4);
}

/* Main Sticky Navbar */
.main-header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  background-color: #ffffff !important;
  z-index: 10000;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: var(--transition-normal);
}

.main-header.scrolled {
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
  background-color: #ffffff !important;
  padding: 2px 0;
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
}

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

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

.brand-name {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--dark-navy);
  line-height: 1.2;
}

.brand-sub {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--primary-red);
  font-weight: 700;
}

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

.nav-link {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--dark-navy);
  position: relative;
  padding: 12px 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

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

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

.nav-link.active {
  color: var(--primary-red);
}

/* Desktop Dropdown Menu */
.has-dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 240px;
  background-color: var(--white);
  box-shadow: var(--shadow-md);
  border-radius: var(--radius-sm);
  padding: 10px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: var(--transition-normal);
  border-top: 3px solid var(--primary-red);
  z-index: 1050;
}

/* Bridge element to prevent hover gap loss */
.has-dropdown::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  height: 12px;
}

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

.dropdown-item {
  padding: 10px 20px;
  font-size: 0.88rem;
  color: var(--text-dark);
  font-weight: 500;
  display: block;
  transition: var(--transition-fast);
  white-space: nowrap;
}

.dropdown-item:hover {
  background-color: var(--primary-red-light);
  color: var(--primary-red);
  padding-left: 24px;
}

.practice-dropdown {
  min-width: 590px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 28px;
  padding: 14px 22px;
}

.practice-dropdown .dropdown-item {
  padding: 12px 0;
  border-bottom: 1px solid var(--border-color);
  white-space: normal;
}

.practice-dropdown .dropdown-item i {
  float: right;
  font-size: 0.7rem;
  margin-top: 5px;
}

.nav-right-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

header .nav-enquiry-btn,
.navbar .nav-enquiry-btn,
.nav-enquiry-btn {
  background: linear-gradient(135deg, #d9232d 0%, #b31b25 100%) !important;
  color: #ffffff !important;
  padding: 10px 22px !important;
  border-radius: 50px !important;
  font-weight: 700 !important;
  font-size: 0.88rem !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  box-shadow: 0 4px 15px rgba(217, 35, 45, 0.4) !important;
  text-decoration: none !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  white-space: nowrap !important;
  transition: all 0.3s ease !important;
  cursor: pointer !important;
}

header .nav-enquiry-btn:hover,
.navbar .nav-enquiry-btn:hover,
.nav-enquiry-btn:hover {
  background: linear-gradient(135deg, #b31b25 0%, #d9232d 100%) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 22px rgba(217, 35, 45, 0.6) !important;
  color: #ffffff !important;
}

.nav-toggle {
  display: none;
  border: 0;
  font-family: inherit;
  font-size: 1.5rem;
  color: var(--dark-navy);
  cursor: pointer;
  padding: 6px;
}

/* Hero Section */
.hero-section {
  position: relative;
  background-color: var(--dark-navy);
  color: var(--white);
  overflow: hidden;
  min-height: 600px;
  display: flex;
  align-items: center;
}

.hero-bg-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(21, 24, 33, 0.94) 0%, rgba(21, 24, 33, 0.78) 100%), 
              url('https://images.unsplash.com/photo-1589829545856-d10d557cf95f?auto=format&fit=crop&w=1920&q=80') center/cover no-repeat;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 70px 0;
  max-width: 800px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: rgba(212, 175, 55, 0.15);
  border: 1px solid rgba(212, 175, 55, 0.4);
  color: #d4af37;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 20px;
}

.hero-title {
  font-size: 3.2rem;
  font-weight: 800;
  line-height: 1.15;
  color: var(--white);
  margin-bottom: 20px;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 32px;
  font-weight: 400;
  max-width: 650px;
}

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

.btn {
  padding: 13px 30px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: var(--transition-normal);
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-red) 0%, #b31b25 100%);
  color: var(--white);
  box-shadow: 0 8px 25px rgba(217, 35, 45, 0.4);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(217, 35, 45, 0.6);
}

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

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

.hero-contact-card {
  position: relative;
  z-index: 2;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  padding: 30px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  color: var(--dark-navy);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-contact-card h3 {
  font-size: 1.35rem;
  margin-bottom: 6px;
  color: var(--dark-navy);
}

.hero-contact-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 18px;
}

.section-padding {
  padding: 80px 0;
}

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

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

.section-subtitle {
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 2px;
  font-weight: 700;
  color: var(--primary-red);
  margin-bottom: 10px;
  display: block;
}

.section-title {
  font-size: 2.3rem;
  color: var(--dark-navy);
  margin-bottom: 14px;
}

.section-title span {
  color: var(--primary-red);
}

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

.practice-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  gap: 28px;
}

.practice-card {
  background-color: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-normal);
  border: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
}

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

.practice-img-wrap {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.practice-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.practice-card:hover .practice-img-wrap img {
  transform: scale(1.08);
}

.practice-icon-badge {
  position: absolute;
  bottom: -22px;
  right: 24px;
  width: 48px;
  height: 48px;
  background-color: var(--primary-red);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: 0 6px 15px rgba(217, 35, 45, 0.4);
}

.practice-content {
  padding: 30px 24px 24px 24px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.practice-title {
  font-size: 1.25rem;
  margin-bottom: 10px;
  color: var(--dark-navy);
}

.practice-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 18px;
  flex-grow: 1;
}

.practice-link {
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--primary-red);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Responsive Action Footer System for Cards */
.card-item-responsive {
  padding: 32px;
}

.card-action-footer {
  padding-top: 16px;
  border-top: 1px dashed var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.btn-card-action {
  padding: 9px 20px !important;
  font-size: 0.88rem !important;
  background: linear-gradient(135deg, #171a24 0%, #2b3040 100%) !important;
  border: none !important;
  white-space: nowrap !important;
  border-radius: var(--radius-full) !important;
}

.btn-card-direct-call {
  color: #d9232d !important;
  font-weight: 700 !important;
  font-size: 0.88rem !important;
  text-decoration: none !important;
  white-space: nowrap !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
}

.stats-banner {
  background: linear-gradient(135deg, var(--dark-navy) 0%, #0d0f15 100%);
  color: var(--white);
  padding: 55px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
  text-align: center;
}

.stat-icon {
  font-size: 2.2rem;
  color: var(--primary-red);
  margin-bottom: 10px;
}

.stat-number {
  font-size: 2.8rem;
  font-weight: 800;
  font-family: var(--font-heading);
  color: var(--white);
  line-height: 1;
  margin-bottom: 6px;
}

.stat-label {
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 600;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 26px;
}

.team-card {
  background-color: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  transition: var(--transition-normal);
  text-align: center;
}

.team-img-wrap {
  position: relative;
  height: 300px;
  background-color: #e9ecef;
  overflow: hidden;
}

.team-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.5s ease;
}

.team-info {
  padding: 18px 14px;
  background-color: var(--dark-navy);
  color: var(--white);
}

.team-name {
  font-size: 1.1rem;
  color: var(--white);
  margin-bottom: 2px;
}

.team-role {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.7);
}

.awards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
}

.award-card {
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 24px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-normal);
}

.award-year-badge {
  background: var(--accent-gold);
  color: var(--dark-navy);
  font-weight: 800;
  font-size: 0.75rem;
  padding: 3px 12px;
  border-radius: var(--radius-full);
  margin-bottom: 12px;
  display: inline-block;
}

.award-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--dark-navy);
}

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

.gallery-tabs {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 35px;
  flex-wrap: wrap;
}

.gallery-tab-btn {
  background: var(--white);
  border: 1px solid var(--border-color);
  padding: 8px 20px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  transition: var(--transition-fast);
}

.gallery-tab-btn.active,
.gallery-tab-btn:hover {
  background: var(--primary-red);
  color: var(--white);
  border-color: var(--primary-red);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  height: 270px;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.5s ease;
}

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(21, 24, 33, 0.8);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
  color: var(--white);
  opacity: 0;
  transition: var(--transition-normal);
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

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

.form-label {
  display: block;
  font-weight: 600;
  font-size: 0.88rem;
  margin-bottom: 6px;
  color: var(--dark-navy);
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  font-family: var(--font-body);
  font-size: 0.92rem;
  transition: var(--transition-fast);
  background-color: var(--white);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-red);
  box-shadow: 0 0 0 3px rgba(217, 35, 45, 0.12);
}

select.form-control {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23212529' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 16px;
}

.form-alert {
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  margin-bottom: 18px;
  font-size: 0.9rem;
  display: none;
}

.form-alert.success {
  display: block;
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.form-alert.error {
  display: block;
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

.floating-action-bar {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: flex-end;
}

.float-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.3rem;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
  cursor: pointer;
  transition: var(--transition-normal);
  border: none;
}

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

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

.btn-contact-drawer {
  background-color: #6366f1;
}

.btn-scroll-top {
  background-color: var(--dark-navy);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
}

.btn-scroll-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.main-footer {
  background-color: var(--dark-navy);
  color: rgba(255, 255, 255, 0.75);
  padding-top: 70px;
  font-size: 0.88rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 36px;
  margin-bottom: 50px;
}

.footer-widget h4 {
  color: var(--white);
  font-size: 1.15rem;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.footer-widget h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 36px;
  height: 2px;
  background-color: var(--primary-red);
}

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

.footer-links a:hover {
  color: var(--primary-red);
  padding-left: 6px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 20px 0;
  text-align: center;
  font-size: 0.85rem;
}

/* ==========================================================================
   Responsive Media Queries & Mobile Navigation Layout System
   ========================================================================== */

/* Mobile Backdrop Overlay */
.nav-backdrop {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  background: rgba(15, 17, 24, 0.65);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 99998;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.nav-backdrop.active {
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
}

@media (max-width: 1080px) {
  .nav-menu {
    gap: 14px;
  }
  .nav-link {
    font-size: 0.85rem;
  }
}

.mobile-drawer-cta {
  display: none;
}

@media (max-width: 992px) {
  .hero-title {
    font-size: 2.3rem;
  }

  .hero-grid-responsive,
  .grid-2col-responsive {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }

  .mobile-drawer-cta {
    display: block;
  }
  
  .nav-menu {
    position: fixed;
    top: 0;
    bottom: 0;
    left: -100%;
    width: 85%;
    max-width: 320px;
    height: 100vh;
    height: 100dvh;
    background-color: var(--white);
    flex-direction: column;
    align-items: stretch;
    padding: 30px 20px 40px 20px;
    box-shadow: 0 0 35px rgba(0, 0, 0, 0.3);
    transition: left 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    z-index: 99999;
  }

  body.nav-open {
    overflow: hidden !important;
    touch-action: none;
  }
  
  .nav-menu.active {
    left: 0 !important;
  }

  .nav-link {
    padding: 12px 0;
    width: 100%;
    justify-content: space-between;
    font-size: 0.95rem;
    border-bottom: 1px solid var(--border-color);
  }
  
  .nav-link::after {
    display: none;
  }

  /* Mobile Collapsible Submenus */
  .has-dropdown .dropdown-menu {
    display: none !important;
    position: static !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    box-shadow: none !important;
    border: none !important;
    border-left: 3px solid var(--primary-red) !important;
    border-radius: 0 !important;
    padding: 6px 0 6px 14px !important;
    margin-top: 6px !important;
    background: #f8fafc !important;
    width: 100% !important;
  }

  .practice-dropdown {
    min-width: 0;
    display: block;
    padding: 6px 0 6px 14px !important;
  }

  .has-dropdown.open > .dropdown-menu {
    display: block !important;
  }

  .has-dropdown.open > .nav-link i {
    transform: rotate(180deg) !important;
    transition: transform 0.3s ease !important;
  }

  .dropdown-item {
    padding: 10px 12px;
    font-size: 0.88rem;
  }
  
  .nav-toggle {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    background: #f1f4f8;
    border-radius: 8px;
    color: #151821;
    font-size: 1.3rem;
    flex-shrink: 0;
    border: 1px solid #e5e9f2;
    cursor: pointer;
    transition: all 0.2s ease;
  }

  .nav-toggle:hover {
    background: var(--primary-red-light);
    color: var(--primary-red);
  }

  .has-dropdown::after {
    display: none;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 20px;
  }
  
  .section-padding {
    padding: 60px 0;
  }

  .hero-title {
    font-size: 2.1rem;
  }

  .section-title {
    font-size: 1.9rem;
  }

  /* Grid Auto-fit Safety on Mobile */
  .practice-grid,
  .gallery-grid,
  .awards-grid,
  .team-grid {
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)) !important;
  }
}

@media (max-width: 640px) {
  .desktop-enquiry-btn {
    display: none !important;
  }

  .brand-name {
    font-size: 1.02rem;
  }

  .brand-sub {
    font-size: 0.65rem;
  }

  .brand-logo {
    gap: 8px;
  }
}

@media (max-width: 576px) {
  .container {
    padding: 0 16px !important;
  }

  .section-padding {
    padding: 48px 0 !important;
  }

  .top-info {
    display: none;
  }
  
  .top-bar .container {
    justify-content: center;
  }

  .top-actions {
    width: 100%;
    justify-content: space-between;
  }
  
  .hero-title {
    font-size: 1.85rem !important;
    line-height: 1.25 !important;
  }

  .section-title {
    font-size: 1.65rem !important;
  }

  .section-header {
    margin-bottom: 35px !important;
  }

  .hero-content {
    padding: 40px 0 20px 0;
  }

  .hero-btns {
    flex-direction: column;
    width: 100%;
  }

  .hero-btns .btn {
    width: 100%;
    justify-content: center;
  }

  /* Form 2-column inputs collapse on mobile */
  .ajax-form div[style*="grid-template-columns"],
  form div[style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }

  /* Mobile Card Padding & Action Button Stacking */
  .card-item-responsive,
  .practice-card {
    padding: 20px 18px !important;
  }

  .card-action-footer {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 10px !important;
  }

  .btn-card-action {
    width: 100% !important;
    justify-content: center !important;
    padding: 11px 16px !important;
    text-align: center !important;
  }

  .btn-card-direct-call {
    width: 100% !important;
    justify-content: center !important;
    padding: 9px 14px !important;
    background: rgba(217, 35, 45, 0.08) !important;
    border-radius: var(--radius-full) !important;
    text-align: center !important;
    color: #d9232d !important;
  }

  .floating-action-bar {
    bottom: 16px;
    right: 16px;
    gap: 10px;
  }

  .float-btn {
    width: 46px;
    height: 46px;
    font-size: 1.15rem;
  }
}

@media (max-width: 380px) {
  .brand-name {
    font-size: 0.9rem !important;
  }
  .brand-sub {
    font-size: 0.6rem !important;
    letter-spacing: 0.8px !important;
  }
  .brand-logo div[style*="width: 48px"] {
    width: 40px !important;
    height: 40px !important;
    font-size: 0.95rem !important;
  }
  .hero-badge {
    font-size: 0.75rem;
    padding: 4px 12px;
  }
}

/* ==========================================================================
   International Country Desk Styles (Germany, Japan, USA)
   ========================================================================== */

.desk-hero-banner {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.88) 0%, rgba(21, 24, 33, 0.94) 100%), 
              url('https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?auto=format&fit=crop&w=1920&q=80') center/cover no-repeat;
  padding: 100px 0 70px 0;
  color: var(--white);
  position: relative;
}

.desk-breadcrumb {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 25px;
}

.desk-breadcrumb a {
  color: rgba(255, 255, 255, 0.85);
}

.desk-breadcrumb a:hover {
  color: var(--primary-red);
}

.desk-hero-title {
  font-size: 3.2rem;
  font-family: var(--font-heading);
  font-weight: 800;
  color: var(--white);
  margin-bottom: 16px;
  line-height: 1.15;
}

.desk-hero-title .text-red {
  color: #d9232d;
}

.desk-hero-subtitle {
  font-size: 1.12rem;
  color: rgba(255, 255, 255, 0.88);
  max-width: 820px;
  line-height: 1.7;
}

/* Full Service Law Firm Section */
.full-service-section {
  padding: 70px 0;
  background-color: var(--white);
  position: relative;
}

.full-service-header {
  text-align: center;
  margin-bottom: 30px;
}

.full-service-title {
  font-size: 2.5rem;
  font-family: var(--font-heading);
  font-weight: 800;
  color: var(--dark-navy);
}

.full-service-title .text-red {
  color: #d9232d;
}

.full-service-body {
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
}

.full-service-p {
  font-size: 1.02rem;
  color: #555;
  line-height: 1.8;
  margin-bottom: 24px;
}

/* Floating Action Bar on Right Side */
.desk-side-floating-bar {
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.desk-float-item {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  border-radius: 8px 0 0 8px;
  color: white;
  font-weight: 600;
  font-size: 0.9rem;
  box-shadow: 0 4px 15px rgba(0,0,0,0.15);
  transition: all 0.3s ease;
  text-decoration: none;
}

.desk-float-item:hover {
  transform: translateX(-5px);
  color: white;
}

.desk-float-toggle {
  background-color: #1f2937;
  width: 44px;
  height: 44px;
  border-radius: 8px 0 0 8px;
}

.desk-float-contact {
  background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
  padding: 10px 18px;
  gap: 8px;
}

.desk-float-whatsapp {
  background-color: #25d366;
  width: 44px;
  height: 44px;
  border-radius: 8px 0 0 8px;
  font-size: 1.2rem;
}

/* Why Choose Us Section */
.why-choose-section {
  background-color: #f9fafc;
  padding: 80px 0;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.why-choose-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.why-choose-img-wrap {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.why-choose-img-wrap img {
  width: 100%;
  height: 460px;
  object-fit: cover;
}

.why-choose-title {
  font-size: 2.3rem;
  font-family: var(--font-heading);
  margin-bottom: 30px;
  color: var(--dark-navy);
}

.why-choose-title .text-red {
  color: #d9232d;
}

.why-choose-feature {
  display: flex;
  gap: 20px;
  margin-bottom: 28px;
  align-items: flex-start;
}

.why-choose-icon {
  color: #d9232d;
  font-size: 1.8rem;
  line-height: 1;
  flex-shrink: 0;
  margin-top: 4px;
}

.why-choose-feature-h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--dark-navy);
  margin-bottom: 6px;
  font-family: var(--font-body);
}

.why-choose-feature-p {
  font-size: 0.95rem;
  color: #666;
  line-height: 1.65;
}

/* Meet Our Attorneys Section */
.attorneys-section {
  padding: 80px 0;
  background-color: var(--white);
  text-align: center;
}

.attorneys-title {
  font-size: 2.4rem;
  font-family: var(--font-heading);
  margin-bottom: 45px;
  color: var(--dark-navy);
}

.attorneys-title .text-red {
  color: #d9232d;
}

.attorney-cards-wrapper {
  position: relative;
  max-width: 1100px;
  margin: 0 auto 40px auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.attorney-card-item {
  background: var(--white);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  transition: all 0.35s ease;
  position: relative;
}

.attorney-card-item:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
}

.attorney-card-img {
  width: 100%;
  height: 330px;
  object-fit: cover;
  object-position: top center;
  background-color: #f1f4f8;
}

.attorney-card-details {
  background-color: #2b303c;
  color: var(--white);
  padding: 16px 14px;
  text-align: center;
}

.attorney-card-name {
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--white);
  font-family: var(--font-body);
  margin-bottom: 4px;
}

.attorney-card-role {
  font-size: 0.85rem;
  color: #a0aec0;
}

.attorney-nav-btn {
  position: absolute;
  top: 45%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  background-color: var(--white);
  border: 1px solid var(--border-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  cursor: pointer;
  z-index: 10;
  transition: all 0.2s ease;
  color: var(--dark-navy);
}

.attorney-nav-btn:hover {
  background-color: #d9232d;
  color: var(--white);
  border-color: #d9232d;
}

.attorney-nav-prev { left: -22px; }
.attorney-nav-next { right: -22px; }

.btn-meet-team {
  background-color: #d9232d;
  color: var(--white);
  padding: 12px 34px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.95rem;
  display: inline-block;
  box-shadow: 0 6px 20px rgba(217, 35, 45, 0.35);
  transition: all 0.3s ease;
  text-decoration: none;
}

.btn-meet-team:hover {
  background-color: #b31b25;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(217, 35, 45, 0.5);
  color: var(--white);
}

/* Locations Map & Footer Info Section */
.desk-locations-section {
  background-color: #fbfbfd;
  padding: 60px 0 40px 0;
  border-top: 1px solid var(--border-color);
}

.desk-locations-grid {
  display: grid;
  grid-template-columns: 0.28fr 0.44fr 0.28fr;
  gap: 30px;
  align-items: flex-start;
}

.territories-col h4 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--dark-navy);
}

.territories-list {
  font-size: 0.85rem;
  color: #555;
  line-height: 2;
}

.locations-map-col {
  text-align: center;
}

.locations-map-col h3 {
  font-size: 1.5rem;
  font-family: var(--font-heading);
  color: #d9232d;
  margin-bottom: 4px;
}

.locations-map-col p {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--dark-navy);
  margin-bottom: 16px;
}

.world-map-svg-wrap {
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
}

.download-profile-btn {
  background-color: #d9232d;
  color: white;
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.5px;
  padding: 12px 24px;
  border-radius: 50px;
  display: inline-block;
  margin-bottom: 24px;
  text-transform: uppercase;
  box-shadow: 0 4px 15px rgba(217, 35, 45, 0.3);
}

.download-profile-btn:hover {
  background-color: #b31b25;
  color: white;
}

.desk-quick-widget h5 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--dark-navy);
  margin-bottom: 10px;
}

.desk-quick-widget p, .desk-quick-widget a {
  font-size: 0.88rem;
  color: #666;
}

.stay-connected-box {
  margin-top: 20px;
}

.stay-connected-box h5 {
  font-size: 0.98rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.social-trade-flex {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.linkedin-badge-btn {
  width: 36px;
  height: 36px;
  background-color: #0077b5;
  color: white;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.trade-admin-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  color: #333;
  font-weight: 700;
  border: 1px solid #ddd;
  padding: 6px 10px;
  border-radius: 4px;
  background: white;
}

.lang-select-box select {
  padding: 6px 12px;
  font-size: 0.82rem;
  border-radius: 4px;
  border: 1px solid #ccc;
  background: white;
}

@media (max-width: 992px) {
  .why-choose-grid {
    grid-template-columns: 1fr;
  }
  .attorney-cards-wrapper {
    grid-template-columns: 1fr;
    max-width: 400px;
  }
  .desk-locations-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

/* ==========================================================================
   Chamber Team Cards & Gallery Grid System
   ========================================================================== */

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

.chamber-card-item {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  position: relative;
  border: 1px solid var(--border-color);
  cursor: pointer;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.chamber-card-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.chamber-card-img-wrap {
  position: relative;
  width: 100%;
  height: 240px;
  overflow: hidden;
  background-color: #171a24;
}

.chamber-card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.4s ease;
}

.chamber-card-item:hover .chamber-card-img-wrap img {
  transform: scale(1.08);
}

.zoom-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 30px;
  height: 30px;
  background: rgba(23, 26, 36, 0.75);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(212, 175, 55, 0.5);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #d4af37;
  font-size: 0.8rem;
  transition: all 0.3s ease;
}

.chamber-card-item:hover .zoom-badge {
  background: #d9232d;
  color: #ffffff;
  border-color: #d9232d;
  transform: scale(1.1);
}

.team-card-caption {
  font-size: 0.9rem;
  font-weight: 700;
  background: #171a24;
  color: #ffffff;
  padding: 10px 8px;
  text-align: center;
  border-top: 2px solid #d4af37;
  line-height: 1.3;
  word-break: break-word;
  white-space: normal;
  min-height: 52px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  flex-grow: 1;
}

.team-card-caption .caption-sub {
  font-size: 0.73rem;
  color: #d4af37;
  font-weight: 600;
  margin-top: 2px;
  letter-spacing: 0.5px;
}

/* Responsive Breakpoints for Team Grid */
@media (max-width: 992px) {
  .team-grid-responsive {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 16px !important;
  }
  .chamber-card-img-wrap {
    height: 220px !important;
  }
}

@media (max-width: 576px) {
  .team-grid-responsive {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
  }
  .chamber-card-img-wrap {
    height: 160px !important;
  }
  .team-card-caption {
    font-size: 0.78rem !important;
    padding: 6px 4px !important;
    min-height: 46px !important;
  }
  .team-card-caption .caption-sub {
    font-size: 0.65rem !important;
  }
}

/* ==========================================================================
   Bar Council Legal Disclaimer Modal Styles
   ========================================================================== */

.disclaimer-modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 17, 24, 0.88);
  backdrop-filter: blur(8px);
  z-index: 999999;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.3s ease;
}

.disclaimer-modal-overlay.active {
  display: flex !important;
}

.disclaimer-modal-card {
  background: #ffffff;
  width: 100%;
  max-width: 620px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4);
  border: 2px solid #d4af37;
  animation: slideUp 0.35s ease;
}

.disclaimer-header {
  background: linear-gradient(135deg, #171a24 0%, #0d0e14 100%);
  padding: 22px 28px;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 16px;
  border-bottom: 2px solid #d4af37;
}

.disclaimer-crest {
  width: 50px;
  height: 50px;
  background: rgba(212, 175, 55, 0.15);
  border: 2px solid #d4af37;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #d4af37;
  font-size: 1.35rem;
  flex-shrink: 0;
}

.disclaimer-header h3 {
  color: #ffffff;
  font-size: 1.25rem;
  margin: 0;
  font-family: var(--font-heading);
}

.disclaimer-header p {
  color: #d4af37;
  font-size: 0.8rem;
  margin: 2px 0 0 0;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.disclaimer-body {
  padding: 26px 28px;
  color: #334155;
  font-size: 0.92rem;
  line-height: 1.6;
  max-height: 60vh;
  overflow-y: auto;
}

.disclaimer-body p {
  margin-bottom: 12px;
}

.disclaimer-list {
  list-style: none;
  padding: 0;
  margin: 16px 0 0 0;
}

.disclaimer-list li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 10px;
  font-size: 0.88rem;
  color: #475569;
}

.disclaimer-list li i {
  position: absolute;
  left: 0;
  top: 3px;
  color: #d4af37;
  font-size: 1rem;
}

.disclaimer-footer {
  padding: 16px 28px 22px 28px;
  background: #f8fafc;
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: flex-end;
  gap: 14px;
}

.disclaimer-decline-btn {
  padding: 10px 20px;
  font-size: 0.88rem;
  border-radius: 50px;
}

.disclaimer-accept-btn {
  padding: 10px 26px;
  font-size: 0.9rem;
  background: linear-gradient(135deg, #d9232d 0%, #b31b25 100%);
  border-radius: 50px;
  font-weight: 700;
}

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

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

