/* ==========================================================================
   Advocate Anisha Puri Dogra & Associates — Ultra-Modern 2026 Legal Studio
   Contemporary Bento Architecture • Mobile-First Responsive • High Contrast
   ========================================================================== */

:root {
  /* Ultra-Modern 2026 Color Tokens */
  --color-obsidian-deep: #0B0D11;
  --color-obsidian: #121620;
  --color-obsidian-card: #181D29;
  --color-obsidian-border: rgba(255, 255, 255, 0.08);

  --color-burgundy-deep: #3B0712;
  --color-burgundy: #54101F;
  --color-burgundy-light: #7A1A2E;
  --color-burgundy-tint: #F8F1F3;
  --color-burgundy-glow: rgba(84, 16, 31, 0.25);

  --color-gold-text-light: #7A5618;
  --color-gold-text-dark: #E8D2A7;
  --color-gold: #C8A96E;
  --color-gold-light: #E0C99A;
  --color-gold-tint: #FBF8F1;
  --color-gold-gradient: linear-gradient(135deg, #DFCA9E 0%, #C8A96E 50%, #9B783A 100%);
  --color-gold-glow: rgba(200, 169, 110, 0.2);

  --color-canvas: #FBFBF9;
  --color-canvas-subtle: #F3F2EC;
  --color-surface: #FFFFFF;
  --color-border: #E8E6DF;
  --color-border-subtle: #F0EFE9;

  --color-text-main: #14161C;
  --color-text-muted: #484D58;
  --color-text-soft: #6B7280;

  /* Modern Font Families */
  --font-serif: 'Cinzel', 'Fraunces', Georgia, serif;
  --font-editorial: 'Cormorant Garamond', 'Fraunces', Georgia, serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Modern Soft Layered Shadows */
  --shadow-bento: 0 12px 32px -4px rgba(18, 22, 32, 0.05), 0 4px 12px -2px rgba(18, 22, 32, 0.03);
  --shadow-bento-hover: 0 20px 48px -8px rgba(18, 22, 32, 0.09), 0 8px 20px -4px rgba(18, 22, 32, 0.04);
  --shadow-glow-gold: 0 0 30px rgba(200, 169, 110, 0.22);
  --shadow-glow-burgundy: 0 10px 30px rgba(84, 16, 31, 0.25);

  --radius-xs: 8px;
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-pill: 9999px;
}

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

html {
  scroll-behavior: smooth;
  font-family: var(--font-sans);
  background-color: var(--color-canvas);
  color: var(--color-text-main);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  position: relative;
}

/* Mobile-First: Body Bottom Padding for Fixed Floating Dock */
@media (max-width: 767px) {
  body {
    padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px));
  }
}

/* Prevent background scroll when mobile drawer is open */
body.menu-open {
  overflow: hidden !important;
  touch-action: none;
}

/* Accessibility: Hidden screen reader utility & Skip Link */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

.skip-link {
  position: absolute;
  top: -70px;
  left: 1.5rem;
  background: var(--color-burgundy);
  color: #FFFFFF !important;
  padding: 0.85rem 1.6rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
  z-index: 9999;
  transition: top 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid var(--color-gold-light);
  text-decoration: none;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}
.skip-link:focus {
  top: 1.5rem;
  outline: 3px solid var(--color-gold);
}

:focus-visible {
  outline: 2px solid var(--color-gold);
  outline-offset: 2px;
}

/* Typography Hierarchy & Fluid Scaling */
h1, h2, h3, h4, .font-serif {
  font-family: var(--font-serif);
  font-weight: 700;
  color: var(--color-text-main);
  line-height: 1.22;
  letter-spacing: -0.015em;
  word-break: break-word;
  overflow-wrap: break-word;
}

.font-editorial {
  font-family: var(--font-editorial);
}

.text-gold-gradient {
  background: var(--color-gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Modern Pill Badges */
.pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.45rem 0.95rem;
  border-radius: var(--radius-pill);
  background: var(--color-gold-tint);
  border: 1px solid rgba(200, 169, 110, 0.35);
  color: var(--color-gold-text-light);
  box-shadow: 0 2px 6px rgba(200, 169, 110, 0.08);
  max-width: 100%;
  white-space: normal;
  line-height: 1.3;
}

.pill-badge-burgundy {
  background: var(--color-burgundy-tint);
  border: 1px solid rgba(84, 16, 31, 0.2);
  color: var(--color-burgundy);
  box-shadow: 0 2px 6px rgba(84, 16, 31, 0.06);
}

.pill-badge-dark {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--color-gold-text-dark);
}

/* Modern Buttons (2026 Touch-Friendly Micro-Interactions) */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.92rem;
  padding: 0.85rem 1.6rem;
  min-height: 48px;
  border-radius: var(--radius-sm);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  border: 1px solid transparent;
  text-decoration: none;
  touch-action: manipulation;
  position: relative;
  overflow: hidden;
  user-select: none;
  -webkit-user-select: none;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: linear-gradient(135deg, #6B1527 0%, #54101F 100%);
  color: #FFFFFF !important;
  border: 1px solid rgba(224, 201, 154, 0.25);
  box-shadow: 0 6px 20px rgba(84, 16, 31, 0.25);
}
.btn-primary:hover {
  background: linear-gradient(135deg, #7A1A2E 0%, #3B0712 100%);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(84, 16, 31, 0.38);
}
.btn-primary:active {
  transform: translateY(0);
}

.btn-gold {
  background: var(--color-gold-gradient);
  color: #0B0D11 !important;
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 6px 22px rgba(200, 169, 110, 0.35);
}
.btn-gold:hover {
  filter: brightness(1.04);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(200, 169, 110, 0.48);
}

.btn-outline-burgundy {
  background: #FFFFFF;
  border: 1.5px solid var(--color-burgundy);
  color: var(--color-burgundy) !important;
  box-shadow: 0 2px 8px rgba(84, 16, 31, 0.05);
}
.btn-outline-burgundy:hover {
  background: var(--color-burgundy);
  color: #FFFFFF !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(84, 16, 31, 0.2);
}

.btn-outline-gold {
  background: rgba(200, 169, 110, 0.08);
  border: 1.5px solid var(--color-gold);
  color: var(--color-gold-text-dark) !important;
}
.btn-outline-gold:hover {
  background: var(--color-gold);
  color: #0B0D11 !important;
  transform: translateY(-2px);
}

.btn-whatsapp {
  background: #1B9A4D;
  color: #FFFFFF !important;
  font-weight: 600;
  box-shadow: 0 6px 18px rgba(27, 154, 77, 0.25);
}
.btn-whatsapp:hover {
  background: #157E3E;
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(27, 154, 77, 0.35);
}

/* Modern Bento Card Architecture */
.bento-card {
  background: #FFFFFF;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1.35rem;
  transition: all 0.32s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  box-shadow: var(--shadow-bento);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
@media (min-width: 640px) {
  .bento-card {
    padding: 2rem;
  }
}
@media (min-width: 1024px) {
  .bento-card {
    padding: 2.25rem;
  }
}
.bento-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-md);
  padding: 1.5px;
  background: linear-gradient(135deg, transparent 0%, rgba(200, 169, 110, 0.4) 50%, transparent 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.35s ease;
}
.bento-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-bento-hover);
  border-color: rgba(200, 169, 110, 0.4);
}
.bento-card:hover::after {
  opacity: 1;
}

.bento-card-dark {
  background: var(--color-obsidian-card);
  border: 1px solid var(--color-obsidian-border);
  color: #FFFFFF;
  box-shadow: 0 16px 40px -10px rgba(0, 0, 0, 0.35);
}
.bento-card-dark:hover {
  border-color: rgba(200, 169, 110, 0.5);
  box-shadow: 0 20px 48px -10px rgba(0, 0, 0, 0.5);
}

.bento-card-highlight {
  background: linear-gradient(145deg, #FFFFFF 0%, #FBF8F1 100%);
  border: 1.5px solid var(--color-gold);
  box-shadow: 0 16px 36px -8px rgba(200, 169, 110, 0.16);
}

/* Background Gradients & Mesh Patterns */
.bg-mesh-light {
  background-color: var(--color-canvas);
  background-image: 
    radial-gradient(at 0% 0%, rgba(84, 16, 31, 0.03) 0px, transparent 50%),
    radial-gradient(at 100% 0%, rgba(200, 169, 110, 0.06) 0px, transparent 50%),
    radial-gradient(at 100% 100%, rgba(84, 16, 31, 0.03) 0px, transparent 50%),
    radial-gradient(at 0% 100%, rgba(200, 169, 110, 0.05) 0px, transparent 50%);
}

.bg-mesh-dark {
  background-color: var(--color-obsidian-deep);
  background-image: 
    radial-gradient(at 0% 0%, rgba(84, 16, 31, 0.25) 0px, transparent 60%),
    radial-gradient(at 100% 100%, rgba(200, 169, 110, 0.15) 0px, transparent 60%);
}

/* Mobile-Friendly Swipeable Filter Rail */
.swipe-filter-rail {
  display: flex;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
  gap: 0.5rem;
  padding: 0.25rem 0.25rem 0.65rem 0.25rem;
  scrollbar-width: none;
  scroll-snap-type: x mandatory;
}
.swipe-filter-rail::-webkit-scrollbar {
  display: none;
}
.swipe-filter-rail > * {
  scroll-snap-align: start;
  flex-shrink: 0;
}

/* Modern Accordion */
.accordion-item {
  background: #FFFFFF;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  margin-bottom: 0.85rem;
  overflow: hidden;
  transition: all 0.25s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}
.accordion-item.active {
  border-color: var(--color-gold);
  box-shadow: 0 6px 20px rgba(200, 169, 110, 0.1);
}
.accordion-header {
  padding: 1.1rem 1.25rem;
  min-height: 52px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  background: transparent;
  width: 100%;
  text-align: left;
  border: none;
  user-select: none;
  -webkit-user-select: none;
}
@media (min-width: 640px) {
  .accordion-header {
    padding: 1.35rem 1.6rem;
    min-height: 54px;
  }
}
.accordion-header h4 {
  font-size: 0.96rem;
  color: var(--color-text-main);
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 600;
  line-height: 1.45;
}
@media (min-width: 640px) {
  .accordion-header h4 {
    font-size: 1.02rem;
  }
}
.accordion-header .icon-chevron {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  color: var(--color-gold-text-light);
  font-size: 1.25rem;
  margin-left: 0.75rem;
  flex-shrink: 0;
}
.accordion-item.active .icon-chevron {
  transform: rotate(180deg);
  color: var(--color-burgundy);
}
.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.16, 1, 0.3, 1), padding 0.25s ease;
  padding: 0 1.25rem;
  color: var(--color-text-muted);
  font-size: 0.92rem;
  line-height: 1.75;
}
@media (min-width: 640px) {
  .accordion-content {
    padding: 0 1.6rem;
    font-size: 0.95rem;
  }
}
.accordion-item.active .accordion-content {
  padding-bottom: 1.4rem;
}

/* Modern Form Controls — Minimum 16px to prevent iOS auto-zoom */
.form-group {
  margin-bottom: 1.15rem;
}
.form-label {
  display: block;
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-main);
  margin-bottom: 0.4rem;
}
.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 0.85rem 1.05rem;
  min-height: 48px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xs);
  font-family: var(--font-sans);
  font-size: 16px !important; /* Prevents mobile safari auto-zoom */
  background: #FFFFFF;
  color: var(--color-text-main);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  appearance: none;
  -webkit-appearance: none;
}
.form-select {
  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='%237A5618' 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 1rem center;
  background-size: 1.1em;
  padding-right: 2.5rem;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--color-gold);
  box-shadow: 0 0 0 3.5px rgba(200, 169, 110, 0.2);
}
.form-input[aria-invalid="true"] {
  border-color: #DC2626;
  background-color: #FEF2F2;
}
.field-error-msg {
  color: #DC2626;
  font-size: 0.78rem;
  font-weight: 600;
  margin-top: 0.35rem;
  display: none;
}
.form-input[aria-invalid="true"] + .field-error-msg {
  display: block;
}

/* Mobile Sticky Action Dock (App-Like Bottom Bar) */
.floating-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(11, 13, 17, 0.96);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-top: 1px solid rgba(200, 169, 110, 0.35);
  display: flex;
  padding: 0.65rem 0.85rem;
  padding-bottom: max(0.65rem, env(safe-area-inset-bottom));
  gap: 0.65rem;
  z-index: 999;
  box-shadow: 0 -8px 28px rgba(0, 0, 0, 0.4);
}
@media (min-width: 768px) {
  .floating-bar {
    display: none;
  }
}

.floating-concierge {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 900;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.floating-whatsapp-btn {
  background: #1B9A4D;
  color: white;
  width: 56px;
  height: 56px;
  border-radius: var(--radius-pill);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(27, 154, 77, 0.35);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  min-height: 56px;
  min-width: 56px;
}
.floating-whatsapp-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 12px 30px rgba(27, 154, 77, 0.5);
}

.pulse-badge {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22C55E;
  box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
  animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(34, 197, 94, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

/* Toast Alert Notification */
.toast-alert {
  position: fixed;
  top: 16px;
  right: 16px;
  left: 16px;
  background: var(--color-obsidian);
  color: #FFFFFF;
  padding: 1rem 1.4rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-gold);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.4);
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  transform: translateY(-100px);
  opacity: 0;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s ease;
}
@media (min-width: 640px) {
  .toast-alert {
    left: auto;
    top: 24px;
    right: 24px;
    max-width: 420px;
    padding: 1.1rem 1.75rem;
  }
}
.toast-alert.show {
  transform: translateY(0);
  opacity: 1;
}

/* Editorial Article Typography */
.article-body {
  font-size: 1rem;
  line-height: 1.8;
  color: #2D3036;
  max-width: 72ch;
}
@media (min-width: 640px) {
  .article-body {
    font-size: 1.08rem;
    line-height: 1.85;
  }
}
.article-body h2 {
  font-size: 1.4rem;
  margin-top: 2rem;
  margin-bottom: 0.85rem;
  color: var(--color-burgundy-deep);
}
@media (min-width: 640px) {
  .article-body h2 {
    font-size: 1.85rem;
    margin-top: 2.75rem;
    margin-bottom: 1rem;
  }
}
.article-body h3 {
  font-size: 1.15rem;
  margin-top: 1.6rem;
  margin-bottom: 0.75rem;
  color: var(--color-text-main);
}
@media (min-width: 640px) {
  .article-body h3 {
    font-size: 1.35rem;
    margin-top: 2.2rem;
    margin-bottom: 0.85rem;
  }
}
.article-body p {
  margin-bottom: 1.25rem;
  color: #373A40;
}
.article-body ul, .article-body ol {
  margin-bottom: 1.4rem;
  padding-left: 1.3rem;
}
.article-body li {
  margin-bottom: 0.5rem;
  color: #373A40;
}
.article-body blockquote {
  background: var(--color-burgundy-tint);
  border-left: 4px solid var(--color-gold);
  padding: 1.2rem 1.35rem;
  margin: 1.6rem 0;
  border-radius: 0 var(--radius-xs) var(--radius-xs) 0;
  font-style: italic;
  color: var(--color-burgundy-deep);
  font-size: 1.02rem;
  line-height: 1.6;
}
@media (min-width: 640px) {
  .article-body blockquote {
    padding: 1.5rem 1.85rem;
    margin: 2rem 0;
    font-size: 1.15rem;
    line-height: 1.65;
  }
}

/* Mobile Menu Backdrop Overlay */
.mobile-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(11, 13, 17, 0.65);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 45;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.mobile-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

/* Mobile Menu Drawer Animation */
#mobile-menu {
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* Responsive Table Wrapper */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 1.5rem 0;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
}
.table-responsive table {
  width: 100%;
  border-collapse: collapse;
  min-width: 500px;
}
.table-responsive th, .table-responsive td {
  padding: 0.85rem 1.1rem;
  text-align: left;
  border-bottom: 1px solid var(--color-border-subtle);
  font-size: 0.9rem;
}
.table-responsive th {
  background: var(--color-canvas-subtle);
  font-weight: 700;
  color: var(--color-text-main);
  text-transform: uppercase;
  font-size: 0.76rem;
  letter-spacing: 0.05em;
}
