/* ==========================================================================
   SHIVRU AI × ADVOTAC - Master Stylesheet
   ========================================================================== */

/* --- 1. DESIGN TOKENS --- */
:root {
  --navy: #0D1B2A;
  --navy-mid: #1A2E45;
  --navy-light: #243B55;
  --gold: #C9A84C;
  --gold-light: #DFC07A;
  --gold-pale: #F5EDD8;
  --white: #FFFFFF;
  --off-white: #F8F7F4;
  --grey-50: #f9fafb;
  --grey-100: #f3f4f6;
  --grey-200: #e5e7eb;
  --grey-300: #d1d5db;
  --grey-400: #9ca3af;
  --grey-500: #6b7280;
  --grey-600: #4b5563;
  --grey-700: #374151;
  --grey-800: #1f2937;
  --grey-900: #111827;
  --green: #059669;
  --red: #DC2626;
  --orange: #D97706;

  /* Global alias variables used by some pages */
  --primary-color: var(--navy);
  --primary-navy: var(--navy);
  --navy-dark: var(--navy);
  --navy-900: var(--navy);
  --navy-800: var(--navy-mid);
  --navy-700: var(--navy-light);
  --navy-500: var(--navy-light);
  --accent-color: var(--gold);
  --primary-gold: var(--gold);
  --gold-600: #a98225;
  --gold-500: var(--gold);
  --gold-400: var(--gold-light);
  --gold-300: #ead595;
  --gold-50: var(--gold-pale);
  --gray-50: var(--grey-50);
  --gray-100: var(--grey-100);
  --gray-200: var(--grey-200);
  --gray-300: var(--grey-300);
  --gray-400: var(--grey-400);
  --gray-500: var(--grey-500);
  --gray-600: var(--grey-600);
  --bg-light: var(--off-white);
  --light-bg: var(--off-white);
  --light-gray: var(--grey-100);
  --text-color: var(--grey-700);
  --text-muted: var(--grey-600);
  --font-playfair: var(--font-serif);
  --bg-grid: url('data:image/svg+xml;utf8,<svg width="40" height="40" viewBox="0 0 40 40" xmlns="http://www.w3.org/2000/svg"><path d="M0 0h40v40H0V0zm20 20h20v20H20V20zM0 20h20v20H0V20z" fill="rgba(255,255,255,0.02)" fill-rule="evenodd"/></svg>');
  
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --shadow-gold: 0 10px 25px -5px rgba(201, 168, 76, 0.4);
  
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  
  --transition: 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- 2. RESET & BASE --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: var(--font-sans);
  color: var(--grey-800);
  background-color: var(--off-white);
  line-height: 1.6;
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

ul {
  list-style: none;
}

img, svg {
  display: block;
  max-width: 100%;
}

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

/* --- 3. SHARED COMPONENTS --- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
}

.section {
  padding: 100px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 48px;
  max-width: 800px;
  margin-inline: auto;
}

.section-eyebrow {
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold);
  margin-bottom: 12px;
  display: block;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--grey-600);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 1rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  border: 1px solid transparent;
  transition: all var(--transition);
  text-align: center;
  gap: 8px;
}

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

.btn-lg {
  padding: 16px 32px;
  font-size: 1.125rem;
  border-radius: var(--radius-md);
}

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

.btn-full {
  width: 100%;
}

.btn-gold {
  background-color: var(--gold);
  color: var(--white);
  box-shadow: var(--shadow-md);
}
.btn-gold:hover {
  background-color: var(--gold-light);
  box-shadow: var(--shadow-gold);
}

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

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

.btn-link-gold {
  background: transparent;
  color: var(--gold);
  padding: 0;
  border: none;
}
.btn-link-gold:hover {
  color: var(--gold-light);
  text-decoration: underline;
}

.btn-ghost {
  background: transparent;
  color: var(--grey-700);
}
.btn-ghost:hover {
  background-color: var(--grey-100);
}

/* Badges */
.badge,
[class^="badge-"], [class^="priority-"] {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.badge-active { background: rgba(5, 150, 105, 0.1); color: var(--green); border: 1px solid rgba(5, 150, 105, 0.2); }
.badge-pending { background: rgba(217, 119, 6, 0.1); color: var(--orange); border: 1px solid rgba(217, 119, 6, 0.2); }
.badge-paid { background: rgba(5, 150, 105, 0.1); color: var(--green); border: 1px solid rgba(5, 150, 105, 0.2); }
.badge-partial { background: rgba(217, 119, 6, 0.1); color: var(--orange); border: 1px solid rgba(217, 119, 6, 0.2); }
.badge-new { background: rgba(13, 27, 42, 0.1); color: var(--navy); border: 1px solid rgba(13, 27, 42, 0.2); }
.badge-review { background: rgba(201, 168, 76, 0.1); color: var(--gold); border: 1px solid rgba(201, 168, 76, 0.2); }
.badge-filing { background: rgba(36, 59, 85, 0.1); color: var(--navy-light); border: 1px solid rgba(36, 59, 85, 0.2); }
.badge-closed { background: rgba(107, 114, 128, 0.1); color: var(--grey-600); border: 1px solid rgba(107, 114, 128, 0.2); }
.badge-hold { background: rgba(220, 38, 38, 0.1); color: var(--red); border: 1px solid rgba(220, 38, 38, 0.2); }

.priority-high, .priority-immediate { background: rgba(220, 38, 38, 0.1); color: var(--red); }
.priority-medium { background: rgba(217, 119, 6, 0.1); color: var(--orange); }
.priority-low { background: rgba(107, 114, 128, 0.1); color: var(--grey-600); }

/* --- 4. NAVBAR --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(13, 27, 42, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: background var(--transition), backdrop-filter var(--transition), box-shadow var(--transition);
  padding: 16px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: var(--shadow-sm);
}
.navbar.scrolled {
  background: rgba(13, 27, 42, 0.98);
  padding: 12px 0;
  box-shadow: var(--shadow-md);
}

.nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}
.logo-text {
  display: flex;
  flex-direction: column;
}
.logo-main {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--white);
  line-height: 1;
  font-weight: 700;
  letter-spacing: 0.05em;
}
.logo-sub {
  font-size: 0.65rem;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  margin-top: 4px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: 0;
}
.nav-links a {
  color: var(--white);
  font-weight: 500;
  font-size: 0.9rem;
  position: relative;
  white-space: nowrap;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0%;
  height: 2px;
  background-color: var(--gold);
  transition: width var(--transition);
}
.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}
.nav-links a:hover {
  color: var(--gold-pale);
}

.nav-admin-link {
  color: var(--gold) !important;
  border: 1px solid var(--gold);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
}
.nav-admin-link::after { display: none; }
.nav-admin-link:hover {
  background-color: var(--gold);
  color: var(--navy) !important;
}

.nav-search-btn {
  background: transparent;
  border: none;
  color: var(--white);
  cursor: pointer;
  font-size: 1.2rem;
  transition: color var(--transition);
}
.nav-search-btn:hover { color: var(--gold); }

.nav-cta {
  margin-left: 12px;
  white-space: nowrap;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 1002;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--white);
  transition: transform var(--transition), opacity var(--transition);
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* --- 5. MOBILE MENU --- */
.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 80%;
  max-width: 400px;
  height: 100vh;
  background-color: var(--navy);
  z-index: 1001;
  padding: 100px 32px 32px;
  transition: right var(--transition);
  display: flex;
  flex-direction: column;
  gap: 24px;
  box-shadow: var(--shadow-2xl);
  overflow-y: auto;
}
.mobile-menu.open {
  right: 0;
}

.mobile-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0,0,0,0.5);
  backdrop-filter: blur(4px);
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}
.mobile-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-link {
  font-size: 1.25rem;
  color: var(--white);
  font-weight: 500;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  padding-bottom: 12px;
}
.mobile-link.active {
  color: var(--gold);
  border-color: var(--gold);
}

/* --- 6. SEARCH OVERLAY --- */
.search-overlay {
  position: fixed;
  inset: 0;
  background: rgba(13, 27, 42, 0.95);
  backdrop-filter: blur(10px);
  z-index: 2000;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 15vh;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}
.search-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.search-inner {
  width: 100%;
  max-width: 800px;
  padding: 0 24px;
  position: relative;
}

.search-input-wrap {
  position: relative;
  margin-bottom: 40px;
}
.search-input-wrap input {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 2px solid var(--gold);
  color: var(--white);
  font-size: 2rem;
  padding: 16px 48px 16px 0;
  outline: none;
  font-family: var(--font-serif);
}
.search-input-wrap input::placeholder { color: rgba(255,255,255,0.3); }

.search-results {
  color: var(--white);
}
.search-group-title {
  font-size: 0.875rem;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
  margin-top: 24px;
}
.search-result-item {
  display: flex;
  align-items: center;
  padding: 16px;
  background: rgba(255,255,255,0.05);
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
  transition: background var(--transition);
  cursor: pointer;
}
.search-result-item:hover {
  background: rgba(255,255,255,0.1);
}

.search-close-btn {
  position: absolute;
  top: 32px;
  right: 32px;
  background: transparent;
  border: none;
  color: var(--white);
  font-size: 2rem;
  cursor: pointer;
  transition: color var(--transition);
}
.search-close-btn:hover { color: var(--gold); }

/* --- 7. FOOTER --- */
.footer {
  background-color: var(--navy);
  color: var(--white);
  padding: 80px 0 40px;
  border-top: 4px solid var(--gold);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 48px;
  margin-bottom: 64px;
}

.footer-brand {
  margin-bottom: 24px;
}
.footer-tagline {
  color: var(--grey-400);
  margin-top: 16px;
  max-width: 300px;
  font-size: 0.9375rem;
}

.footer-social {
  display: flex;
  gap: 16px;
  margin-top: 24px;
}
.social-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}
.social-icon:hover {
  background: var(--gold);
  color: var(--navy);
  transform: translateY(-3px);
}

.footer-col-title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  margin-bottom: 24px;
  color: var(--white);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-links a {
  color: var(--grey-300);
  font-size: 0.9375rem;
}
.footer-links a:hover {
  color: var(--gold);
  padding-left: 4px;
}

.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
  color: var(--grey-300);
  font-size: 0.9375rem;
}
.footer-contact i {
  color: var(--gold);
  margin-top: 4px;
}

.footer-disclaimer {
  font-size: 0.75rem;
  color: var(--grey-500);
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 32px;
  margin-bottom: 32px;
  text-align: justify;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  font-size: 0.875rem;
  color: var(--grey-400);
}

.footer-legal-links {
  display: flex;
  gap: 24px;
}
.footer-legal-links a:hover { color: var(--gold); }

/* --- 8. STICKY ELEMENTS & TOASTS & MODALS --- */
.sticky-whatsapp {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 60px;
  height: 60px;
  background-color: var(--green);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  box-shadow: var(--shadow-lg);
  z-index: 900;
  animation: waPulse 2s infinite;
  transition: transform var(--transition);
}
.sticky-whatsapp:hover {
  transform: scale(1.1);
  animation: none;
}

.wa-tooltip {
  position: absolute;
  right: 75px;
  background: var(--white);
  color: var(--navy);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 500;
  white-space: nowrap;
  box-shadow: var(--shadow-md);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}
.sticky-whatsapp:hover .wa-tooltip {
  opacity: 1;
}

.sticky-mobile-cta {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: var(--white);
  padding: 16px;
  box-shadow: 0 -4px 10px rgba(0,0,0,0.1);
  z-index: 899;
}

.toast {
  position: fixed;
  bottom: 32px;
  left: 32px;
  background: var(--white);
  padding: 16px 24px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xl);
  display: flex;
  align-items: center;
  gap: 12px;
  transform: translateY(150%);
  opacity: 0;
  transition: all var(--transition);
  z-index: 2000;
}
.toast.show {
  transform: translateY(0);
  opacity: 1;
}
.toast-success { border-left: 4px solid var(--green); }
.toast-error { border-left: 4px solid var(--red); }
.toast-info { border-left: 4px solid var(--navy-light); }

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}
.modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.modal {
  background: var(--white);
  border-radius: var(--radius-lg);
  width: 90%;
  max-width: 600px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  transform: scale(0.95) translateY(20px);
  transition: transform var(--transition);
  box-shadow: var(--shadow-xl);
}
.modal-overlay.open .modal {
  transform: scale(1) translateY(0);
}

.modal-header {
  padding: 24px;
  border-bottom: 1px solid var(--grey-200);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.modal-header h3 { margin: 0; }
.modal-close {
  background: transparent;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--grey-500);
}

.modal-body {
  padding: 24px;
  overflow-y: auto;
}
.modal-footer {
  padding: 24px;
  border-top: 1px solid var(--grey-200);
  display: flex;
  justify-content: flex-end;
  gap: 16px;
}

/* --- 9. FORMS & UPLOADS --- */
.form-group {
  margin-bottom: 24px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--grey-700);
  margin-bottom: 8px;
}

input[type="text"], input[type="email"], input[type="tel"], input[type="password"],
input[type="number"], select, textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--grey-300);
  border-radius: var(--radius-sm);
  background-color: var(--white);
  color: var(--grey-900);
  font-family: var(--font-sans);
  font-size: 1rem;
  transition: all var(--transition);
}
textarea { resize: vertical; min-height: 120px; }

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.2);
}

.field-error {
  color: var(--red);
  font-size: 0.75rem;
  margin-top: 4px;
  display: block;
}

.custom-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
}
.custom-checkbox input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--gold);
}
.consent-group { margin-top: 16px; }

.upload-zone {
  border: 2px dashed var(--grey-300);
  border-radius: var(--radius-md);
  padding: 40px 24px;
  text-align: center;
  background: var(--grey-50);
  transition: all var(--transition);
  cursor: pointer;
}
.upload-zone:hover, .upload-zone.drag-over {
  border-color: var(--gold);
  background: rgba(201, 168, 76, 0.05);
}
.file-list { margin-top: 16px; display: flex; flex-direction: column; gap: 8px; }
.file-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px;
  background: var(--white);
  border: 1px solid var(--grey-200);
  border-radius: var(--radius-sm);
}
.file-remove { color: var(--red); cursor: pointer; border: none; background: transparent; }
.upload-security-note {
  font-size: 0.75rem;
  color: var(--grey-500);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
}

/* --- 10. PAGES: HOME --- */
.hero {
  position: relative;
  min-height: 100vh;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: 80px; /* offset navbar */
}

.hero-bg-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.05;
  background-image: url('data:image/svg+xml;utf8,<svg width="40" height="40" xmlns="http://www.w3.org/2000/svg"><circle cx="20" cy="20" r="1" fill="%23FFFFFF"/></svg>');
}
.hero-orb-1, .hero-orb-2 {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  z-index: 0;
  animation: orbFloat 10s ease-in-out infinite alternate;
}
.hero-orb-1 {
  width: 400px; height: 400px;
  background: rgba(201, 168, 76, 0.15);
  top: -100px; right: -100px;
}
.hero-orb-2 {
  width: 300px; height: 300px;
  background: rgba(36, 59, 85, 0.4);
  bottom: -50px; left: -50px;
  animation-delay: -5s;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.hero-badge {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 999px;
  color: var(--gold-light);
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 24px;
  animation: slideUp 0.6s ease forwards;
}

.hero-title {
  color: var(--white);
  font-size: 4rem;
  margin-bottom: 24px;
  line-height: 1.1;
  animation: slideUp 0.8s ease forwards;
}
.hero-title span { color: var(--gold); }

.hero-subtitle {
  color: var(--grey-300);
  font-size: 1.25rem;
  margin-bottom: 40px;
  max-width: 90%;
  animation: slideUp 1s ease forwards;
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin-bottom: 48px;
  animation: slideUp 1.2s ease forwards;
}

.hero-badges {
  display: flex;
  gap: 16px;
  animation: slideUp 1.4s ease forwards;
}
.trust-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-sm);
  color: var(--white);
}

.hero-svg-card {
  position: relative;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
  padding: 32px;
  backdrop-filter: blur(20px);
  animation: cardFloat 6s ease-in-out infinite;
}
.hero-card-badge {
  position: absolute;
  top: -15px;
  right: -15px;
  background: var(--gold);
  color: var(--navy);
  padding: 12px;
  border-radius: 50%;
  font-weight: bold;
  box-shadow: var(--shadow-lg);
}

.metrics-section {
  background-color: var(--navy-mid);
  padding: 60px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.metrics-section .container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
.metric-item {
  color: var(--white);
}
.metric-num {
  font-family: var(--font-serif);
  font-size: 3rem;
  font-weight: 700;
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
}
.metric-plus { font-size: 2rem; margin-left: 4px; }
.metric-label {
  font-size: 1rem;
  color: var(--grey-400);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 8px;
}

.home-practice-preview {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 48px;
}
.home-portal-preview { background-color: var(--navy); color: var(--white); }
.home-ai-preview { background-color: var(--off-white); }

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.testimonial-card {
  background: var(--white);
  padding: 32px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  position: relative;
}
.testimonial-card::before {
  content: '"';
  position: absolute;
  top: 16px;
  right: 24px;
  font-family: var(--font-serif);
  font-size: 4rem;
  color: rgba(201, 168, 76, 0.2);
  line-height: 1;
}

/* --- 11. PAGES: PRACTICE AREAS --- */
.page-hero {
  background: var(--navy);
  padding: 160px 0 80px;
  text-align: center;
  color: var(--white);
}
.page-hero-content {
  max-width: 800px;
  margin: 0 auto;
}

.search-bar-section {
  transform: translateY(-50%);
  position: relative;
  z-index: 10;
}
.search-bar-wrap {
  background: var(--white);
  padding: 8px;
  border-radius: 999px;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  max-width: 800px;
  margin: 0 auto;
}
.search-bar-wrap i {
  color: var(--grey-400);
  font-size: 1.25rem;
  margin-left: 16px;
}
.search-bar-wrap input {
  border: none;
  padding: 16px;
  flex: 1;
  font-size: 1.125rem;
}
.search-bar-wrap input:focus { box-shadow: none; }
.search-bar-wrap .btn { border-radius: 999px; }

.filter-chips {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 48px;
}
.filter-chip {
  padding: 8px 20px;
  background: var(--white);
  border: 1px solid var(--grey-200);
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.9375rem;
  transition: all var(--transition);
}
.filter-chip.active, .filter-chip:hover {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}

.practice-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.practice-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
  border: 1px solid var(--grey-100);
}
.practice-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--gold-light);
}
.practice-card.expanded { grid-column: span 3; display: grid; grid-template-columns: 1fr 2fr; gap: 40px; }
.practice-icon-wrap {
  width: 64px; height: 64px;
  background: rgba(201, 168, 76, 0.1);
  color: var(--gold);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin-bottom: 24px;
}
.practice-detail-item {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--grey-100);
}

.consult-cta-bar {
  background: var(--gold);
  padding: 40px;
  border-radius: var(--radius-lg);
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--navy);
  margin-top: 80px;
}

/* --- 12. PAGES: ABOUT --- */
.about-hero { /* Uses page-hero */ }
.firm-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.lawyer-cards {
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.lawyer-card {
  display: flex;
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--grey-100);
}
.lawyer-photo-placeholder {
  width: 300px;
  background: var(--grey-200);
  position: relative;
}
.lawyer-details {
  padding: 40px;
  flex: 1;
}
.lawyer-meta-tags {
  display: flex;
  gap: 8px;
  margin: 16px 0;
  flex-wrap: wrap;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.value-card {
  text-align: center;
  padding: 40px;
  background: var(--white);
  border-radius: var(--radius-lg);
}

.about-trust-metrics {
  background: var(--navy);
  color: var(--white);
  padding: 80px 0;
  text-align: center;
}

/* --- 13. PAGES: BOOKING --- */
.booking-page-layout {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 64px;
  margin-top: 40px;
}
.booking-info-panel, .contact-info-panel {
  background: var(--navy);
  color: var(--white);
  padding: 48px;
  border-radius: var(--radius-lg);
}
.booking-form-panel {
  background: var(--white);
  padding: 48px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}
.contact-option-btns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 32px;
}
.fee-info-card {
  background: rgba(255,255,255,0.05);
  padding: 24px;
  border-radius: var(--radius-md);
  margin-top: 32px;
  border: 1px solid rgba(201, 168, 76, 0.3);
}
.confidentiality-note {
  display: flex;
  gap: 12px;
  font-size: 0.875rem;
  color: var(--grey-500);
  margin-top: 24px;
  padding: 16px;
  background: var(--grey-50);
  border-radius: var(--radius-sm);
}

/* --- 14. PAGES: CLIENT PORTAL --- */
.portal-hero {
  background: var(--navy);
  padding: 120px 0 60px;
  color: var(--white);
}
.portal-sample-btn-card {
  background: rgba(255,255,255,0.1);
  padding: 24px;
  border-radius: var(--radius-md);
  margin-top: 32px;
  display: inline-block;
}
.portal-dashboard-wrap {
  margin-top: -40px;
  position: relative;
  z-index: 10;
}
.dash-layout {
  display: flex;
  background: var(--white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  min-height: 800px;
}
.dash-sidebar {
  width: 280px;
  background: var(--grey-50);
  border-right: 1px solid var(--grey-200);
  padding: 32px 0;
}
.dash-sidebar-nav {
  display: flex;
  flex-direction: column;
}
.dash-nav-item {
  padding: 16px 32px;
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--grey-600);
  font-weight: 500;
  border-left: 4px solid transparent;
  transition: all var(--transition);
}
.dash-nav-item:hover { background: var(--grey-100); }
.dash-nav-item.active {
  background: white;
  color: var(--navy);
  border-left-color: var(--gold);
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
}

.dash-main {
  flex: 1;
  padding: 40px;
  overflow-y: auto;
  background: var(--white);
}
.dash-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--grey-200);
}
.dash-overview-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 32px;
}
.client-info-card, .doc-list, .payment-list, .lawyer-notes-section, .hearing-list {
  background: var(--white);
  border: 1px solid var(--grey-200);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 32px;
}

.case-status-timeline {
  position: relative;
  padding-left: 24px;
}
.case-status-timeline::before {
  content: '';
  position: absolute;
  left: 6px;
  top: 8px;
  bottom: 0;
  width: 2px;
  background: var(--grey-200);
}
.timeline-item {
  position: relative;
  margin-bottom: 32px;
}
.timeline-dot {
  position: absolute;
  left: -24px;
  top: 4px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid var(--grey-300);
  z-index: 2;
}
.timeline-item.active .timeline-dot { border-color: var(--gold); background: var(--gold); }
.timeline-content { padding-left: 16px; }

.doc-list-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  border-bottom: 1px solid var(--grey-100);
}
.doc-list-item:last-child { border-bottom: none; }

.payment-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  align-items: center;
  padding: 16px;
  border-bottom: 1px solid var(--grey-100);
}
.note-card {
  background: var(--gold-pale);
  padding: 20px;
  border-radius: var(--radius-md);
  border-left: 4px solid var(--gold);
  margin-bottom: 16px;
}
.hearing-item {
  display: flex;
  gap: 16px;
  padding: 16px;
  background: var(--grey-50);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
}

/* --- 15. PAGES: AI ASSISTANT --- */
.ai-page-layout {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 40px;
  height: calc(100vh - 100px);
  padding: 24px;
}
.ai-info-panel {
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius-xl);
  padding: 40px;
  display: flex;
  flex-direction: column;
}
.ai-chat-wrapper {
  background: var(--white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  display: flex;
  flex-direction: column;
  border: 1px solid var(--grey-200);
  overflow: hidden;
}
.chat-window {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.chat-messages-area {
  flex: 1;
  padding: 32px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.msg-bubble {
  max-width: 80%;
  padding: 16px 20px;
  border-radius: var(--radius-lg);
  line-height: 1.5;
}
.msg-bot {
  background: var(--grey-100);
  color: var(--navy);
  border-bottom-left-radius: 4px;
  align-self: flex-start;
  display: flex;
  gap: 16px;
}
.msg-user {
  background: var(--navy);
  color: var(--white);
  border-bottom-right-radius: 4px;
  align-self: flex-end;
}
.msg-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  flex-shrink: 0;
}
.typing-indicator {
  display: flex;
  gap: 4px;
  padding: 8px 12px;
}
.typing-indicator span {
  width: 8px; height: 8px;
  background: var(--grey-400);
  border-radius: 50%;
  animation: typingDot 1.4s infinite ease-in-out;
}
.typing-indicator span:nth-child(1) { animation-delay: -0.32s; }
.typing-indicator span:nth-child(2) { animation-delay: -0.16s; }

.quick-reply-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  padding: 0 32px 16px;
}
.quick-reply-btn {
  background: var(--white);
  border: 1px solid var(--gold);
  color: var(--navy);
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all var(--transition);
}
.quick-reply-btn:hover { background: var(--gold); color: var(--white); }

.chat-input-bar {
  padding: 24px 32px;
  border-top: 1px solid var(--grey-200);
  display: flex;
  gap: 16px;
  background: var(--white);
}
.chat-input {
  flex: 1;
  border: 1px solid var(--grey-300);
  border-radius: 999px;
  padding: 16px 24px;
  font-size: 1rem;
}
.chat-send-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
}
.chat-send-btn:hover { background: var(--gold); }

.ai-summary-preview { margin-top: 24px; }
.summary-card {
  border: 2px solid var(--gold);
  border-radius: var(--radius-md);
  padding: 20px;
  background: var(--white);
}
.step-progress { display: flex; gap: 8px; margin-top: 32px; }
.step-dot {
  flex: 1; height: 4px;
  background: rgba(255,255,255,0.2);
  border-radius: 2px;
}
.step-dot.active { background: var(--gold); }

/* --- 16. PAGES: BLOG --- */
.blog-hero { padding: 160px 0 80px; background: var(--navy); color: var(--white); text-align: center; }
.blog-controls {
  display: flex;
  justify-content: space-between;
  margin-bottom: 48px;
}
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.blog-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--grey-100);
  transition: transform var(--transition);
}
.blog-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.blog-card.featured {
  grid-column: span 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.blog-cat-tag {
  color: var(--gold);
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
}
.blog-meta { display: flex; gap: 16px; color: var(--grey-500); font-size: 0.875rem; margin-top: 16px; }
.blog-read-time { display: flex; align-items: center; gap: 4px; }

/* --- 17. PAGES: CONTACT --- */
.contact-layout { display: grid; grid-template-columns: 1fr 2fr; gap: 48px; }
.contact-detail-item { margin-bottom: 32px; }
.map-placeholder {
  width: 100%; height: 300px;
  background: var(--grey-200);
  border-radius: var(--radius-lg);
  margin-top: 32px;
}
.emergency-cta-card {
  background: var(--red); color: var(--white);
  padding: 32px; border-radius: var(--radius-lg);
  text-align: center; margin-top: 48px;
}

/* --- 18. PAGES: PAYMENT --- */
.payment-page-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.payment-card {
  background: var(--white);
  padding: 40px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  text-align: center;
  border: 1px solid var(--grey-200);
}
.payment-card.featured {
  border: 2px solid var(--gold);
  transform: scale(1.05);
  box-shadow: var(--shadow-xl);
}
.invoice-preview {
  background: var(--white);
  padding: 40px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  margin-top: 48px;
}
.invoice-table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
}
.invoice-table th, .invoice-table td {
  padding: 16px; border-bottom: 1px solid var(--grey-200); text-align: left;
}
.payment-status-legend { display: flex; gap: 16px; margin-top: 24px; }

/* --- 19. ADMIN DASHBOARD --- */
.admin-layout {
  display: flex;
  height: 100vh;
  overflow: hidden;
  background: var(--grey-100);
}
.admin-sidebar {
  width: 260px;
  background: var(--navy);
  color: var(--white);
  display: flex;
  flex-direction: column;
  transition: transform var(--transition);
  z-index: 100;
}
.admin-logo {
  padding: 24px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.admin-nav {
  flex: 1;
  overflow-y: auto;
  padding: 24px 0;
}
.admin-nav-section-title {
  padding: 0 24px;
  font-size: 0.75rem;
  color: var(--grey-400);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin: 16px 0 8px;
}
.admin-nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 24px;
  color: var(--grey-300);
  transition: all var(--transition);
  border-left: 3px solid transparent;
}
.admin-nav-item:hover {
  background: rgba(255,255,255,0.05);
  color: var(--white);
}
.admin-nav-item.active {
  background: rgba(201, 168, 76, 0.1);
  color: var(--gold);
  border-left-color: var(--gold);
}

.admin-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.admin-topbar {
  background: var(--white);
  height: 70px;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--grey-200);
  z-index: 90;
}
.admin-topbar-search {
  display: flex; align-items: center; gap: 12px;
  background: var(--grey-100);
  padding: 8px 16px;
  border-radius: 999px;
  width: 300px;
}
.admin-topbar-search input {
  border: none; background: transparent; padding: 0; outline: none; width: 100%;
}
.admin-topbar-actions { display: flex; align-items: center; gap: 24px; }
.admin-notification-btn, .admin-profile-btn {
  background: transparent; border: none; font-size: 1.25rem; color: var(--grey-600); cursor: pointer; position: relative;
}
.admin-notification-btn::after {
  content: ''; position: absolute; top: 0; right: 0; width: 8px; height: 8px; background: var(--red); border-radius: 50%;
}

.admin-content-area {
  flex: 1;
  padding: 32px;
  overflow-y: auto;
}
.admin-page { display: none; }
.admin-page.active { display: block; animation: fadeIn 0.3s ease; }

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 32px;
}
.stat-card {
  background: var(--white);
  padding: 24px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  gap: 16px;
}
.stat-card-icon {
  width: 48px; height: 48px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
}
.stat-card-icon.blue { background: rgba(36, 59, 85, 0.1); color: var(--navy-light); }
.stat-card-icon.green { background: rgba(5, 150, 105, 0.1); color: var(--green); }
.stat-card-icon.gold { background: rgba(201, 168, 76, 0.1); color: var(--gold); }
.stat-card-icon.red { background: rgba(220, 38, 38, 0.1); color: var(--red); }

.admin-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  margin-bottom: 32px;
  overflow: hidden;
}
.admin-card-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--grey-200);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.admin-table-wrap { overflow-x: auto; }
.admin-table {
  width: 100%;
  border-collapse: collapse;
}
.admin-table th {
  background: var(--grey-50);
  padding: 16px 24px;
  text-align: left;
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--grey-500);
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--grey-200);
}
.admin-table td {
  padding: 16px 24px;
  border-bottom: 1px solid var(--grey-100);
  color: var(--grey-800);
}
.admin-table tr:hover td { background: var(--grey-50); }
.table-actions { display: flex; gap: 8px; }
.table-actions button {
  background: transparent; border: none; color: var(--grey-400); cursor: pointer; transition: color var(--transition);
}
.table-actions button:hover { color: var(--gold); }

.admin-search-bar { margin-right: 16px; }
.admin-filters-row {
  display: flex; gap: 16px; padding: 16px 24px; background: var(--grey-50); border-bottom: 1px solid var(--grey-200);
}
.admin-filter-select {
  padding: 8px 12px; border: 1px solid var(--grey-300); border-radius: var(--radius-sm); background: var(--white);
}

.client-profile-modal { /* uses standard modal */ }
.case-timeline {
  padding: 16px; border-left: 2px solid var(--grey-200); margin-left: 16px;
}
.calendar-list { display: flex; flex-direction: column; gap: 12px; padding: 24px; }
.calendar-item {
  display: flex; gap: 16px; padding: 16px; border: 1px solid var(--grey-200); border-radius: var(--radius-md);
}

.doc-manager-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; padding: 24px; }
.doc-manager-item {
  border: 1px solid var(--grey-200); border-radius: var(--radius-md); padding: 16px; text-align: center;
}
.doc-status-badge { margin-top: 12px; }

.payment-tracker-table { /* uses admin-table */ }
.payment-status-tag { /* uses badge */ }

.notes-list { display: flex; flex-direction: column; gap: 16px; padding: 24px; }
.note-item { background: var(--gold-pale); padding: 16px; border-radius: var(--radius-md); border-left: 4px solid var(--gold); }

.ai-summary-card { background: var(--navy); color: var(--white); padding: 24px; border-radius: var(--radius-lg); }
.ai-summary-field { margin-bottom: 16px; }
.urgency-score-bar {
  height: 8px; background: rgba(255,255,255,0.2); border-radius: 4px; overflow: hidden; margin-top: 8px;
}
.urgency-score-bar div { height: 100%; background: var(--red); width: 80%; }

.admin-sidebar-toggle {
  display: none; background: transparent; border: none; font-size: 1.5rem; color: var(--navy); cursor: pointer;
}

/* --- 20. ANIMATIONS --- */
@keyframes orbFloat {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(30px, -50px) scale(1.1); }
}
@keyframes cardFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-20px); }
}
@keyframes waPulse {
  0% { box-shadow: 0 0 0 0 rgba(5, 150, 105, 0.7); }
  70% { box-shadow: 0 0 0 20px rgba(5, 150, 105, 0); }
  100% { box-shadow: 0 0 0 0 rgba(5, 150, 105, 0); }
}
@keyframes typingDot {
  0%, 80%, 100% { transform: scale(0); opacity: 0.5; }
  40% { transform: scale(1); opacity: 1; }
}
@keyframes spin { 100% { transform: rotate(360deg); } }
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes slideInRight {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}
@keyframes slideUp {
  from { transform: translateY(40px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
@keyframes countUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* --- 21. RESPONSIVE BREAKPOINTS --- */

/* 1100px */
@media (max-width: 1100px) {
  .hero-inner { gap: 40px; }
  .hero-title { font-size: 3.5rem; }
  .home-practice-preview { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .ai-page-layout { grid-template-columns: 1fr; height: auto; }
  .ai-info-panel { border-radius: var(--radius-lg); }
  .dash-overview-grid { grid-template-columns: 1fr; }
}

/* 900px */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-actions, .hero-badges { justify-content: center; }
  .hero-svg-card { margin: 0 auto; max-width: 400px; }
  .metrics-section .container { grid-template-columns: repeat(2, 1fr); gap: 40px; }
  .testimonials-grid, .practice-grid, .values-grid, .blog-grid, .payment-page-grid { grid-template-columns: repeat(2, 1fr); }
  .practice-card.expanded { grid-column: span 2; grid-template-columns: 1fr; }
  .firm-intro { grid-template-columns: 1fr; }
  .booking-page-layout, .contact-layout { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* 768px (Admin collapse, Tablets) */
@media (max-width: 768px) {
  .section { padding: 60px 0; }
  .section-title { font-size: 2rem; }
  
  .nav-links, .nav-cta { display: none; }
  .hamburger { display: flex; }
  
  .admin-sidebar { position: fixed; transform: translateX(-100%); }
  .admin-sidebar.open { transform: translateX(0); }
  .admin-main { margin-left: 0; }
  .admin-sidebar-toggle { display: block; }
  
  .dash-layout { flex-direction: column; }
  .dash-sidebar { width: 100%; border-right: none; border-bottom: 1px solid var(--grey-200); padding: 16px; }
  
  .sticky-mobile-cta { display: block; }
}

/* 640px */
@media (max-width: 640px) {
  .testimonials-grid, .practice-grid, .values-grid, .blog-grid, .payment-page-grid { grid-template-columns: 1fr; }
  .practice-card.expanded { grid-column: span 1; }
  .blog-card.featured { grid-column: span 1; grid-template-columns: 1fr; }
  .metrics-section .container { grid-template-columns: 1fr; }
  
  .lawyer-card { flex-direction: column; }
  .lawyer-photo-placeholder { width: 100%; height: 300px; }
  
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }
  
  .hero-title { font-size: 2.5rem; }
}

/* 480px */
@media (max-width: 480px) {
  .hero-actions { flex-direction: column; }
  .form-row { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr; }
  .payment-row { grid-template-columns: 1fr; gap: 8px; }
  
  .search-input-wrap input { font-size: 1.5rem; }
}

/* --- MISSING CLASSES FROM INDEX.HTML --- */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
.practice-preview-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 48px;
}
.practice-preview-card {
  background: var(--white);
  padding: 40px 32px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--grey-100);
  transition: all var(--transition);
  text-align: center;
  text-decoration: none;
  display: block;
}
.practice-preview-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--gold);
}
.practice-preview-card h3 {
  color: var(--navy);
  margin-bottom: 12px;
  font-size: 1.25rem;
}
.practice-preview-card p {
  color: var(--grey-500);
  font-size: 0.9375rem;
}
.practice-prev-icon {
  margin-bottom: 24px;
}

.about-preview-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.about-preview-stats {
  display: flex;
  gap: 40px;
  margin-bottom: 40px;
}
.about-prev-num {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  color: var(--navy);
  font-weight: 700;
  line-height: 1;
  margin-bottom: 8px;
}
.about-prev-label {
  font-size: 0.75rem;
  color: var(--grey-500);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.lawyers-preview-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.lawyer-prev-card {
  display: flex;
  align-items: center;
  gap: 24px;
  background: var(--white);
  padding: 24px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border-left: 4px solid var(--gold);
}
.lawyer-prev-avatar {
  width: 64px;
  height: 64px;
  background: var(--navy);
  color: var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 1.5rem;
}
.lawyer-prev-name {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 4px;
}
.lawyer-prev-title {
  font-size: 0.875rem;
  color: var(--grey-500);
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 48px;
}
.process-step {
  text-align: center;
  background: var(--white);
  padding: 40px 24px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--grey-100);
  position: relative;
  z-index: 2;
}
.process-num {
  font-size: 0.875rem;
  color: var(--gold);
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: 0.1em;
}
.process-icon-wrap {
  width: 72px;
  height: 72px;
  background: var(--off-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
}
.process-title {
  font-size: 1.25rem;
  margin-bottom: 16px;
  color: var(--navy);
}
.process-desc {
  font-size: 0.9375rem;
  color: var(--grey-500);
}
.process-connector {
  display: none;
}

@media (max-width: 992px) {
  .metrics-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .practice-preview-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .about-preview-inner {
    grid-template-columns: 1fr;
  }
  .process-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .metrics-grid, .practice-preview-grid, .process-grid {
    grid-template-columns: 1fr;
  }
  .about-preview-stats {
    flex-direction: column;
    gap: 24px;
  }
}

/* --- FINAL LAYOUT REPAIR LAYER --- */
body {
  color: var(--grey-800);
  background: var(--off-white);
}

body > main,
body > section:first-of-type:not(.hero) {
  padding-top: 0;
}

p,
li,
td,
th {
  overflow-wrap: anywhere;
}

.page-hero,
.blog-hero,
.portal-hero {
  padding: 140px 0 72px;
}

.page-hero h1,
.blog-hero h1,
.portal-hero h1 {
  color: var(--white);
  font-size: clamp(2.25rem, 6vw, 3.75rem) !important;
}

.page-hero p,
.page-hero .subtitle,
.blog-hero p,
.portal-hero p {
  color: rgba(255, 255, 255, 0.78) !important;
}

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

.section {
  overflow: clip;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1.08;
}

.btn {
  min-height: 44px;
}

.btn-gold {
  color: var(--navy);
  font-weight: 700;
}

.btn-gold:hover {
  color: var(--navy);
}

.btn-primary,
.submit-btn,
.pay-btn,
.gold-btn {
  background: var(--gold) !important;
  color: var(--navy) !important;
  border-color: var(--gold) !important;
  font-weight: 700;
}

.nav-inner > div[style*="display:flex"] {
  flex-shrink: 0;
}

.logo {
  min-width: 0;
  color: var(--white);
}

.logo-icon {
  color: var(--gold);
  flex: 0 0 auto;
}

.logo-main,
.logo-sub {
  white-space: nowrap;
}

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

.nav-admin-link {
  padding: 6px 10px;
}

.search-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.search-overlay-content {
  width: min(860px, calc(100vw - 32px));
  margin-top: 14vh;
  color: var(--white);
}

.search-input-group {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-md);
}

.search-input-group input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--white);
  box-shadow: none;
}

.search-input-group input:focus {
  box-shadow: none;
}

.action-btn {
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
}

.portal-preview-section {
  background: var(--white);
}

.portal-prev-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
  gap: clamp(32px, 7vw, 84px);
  align-items: center;
}

.portal-prev-content {
  max-width: 520px;
}

.portal-prev-content p {
  color: var(--grey-600) !important;
}

.portal-feature-list {
  display: grid;
  gap: 14px;
  margin: 28px 0;
}

.portal-feature-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--grey-800);
  font-size: 1rem;
  line-height: 1.45;
}

.portal-feature-list svg {
  flex: 0 0 auto;
}

.portal-prev-dashboard {
  width: 100%;
}

.mini-dashboard {
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid var(--grey-200);
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 70px rgba(13, 27, 42, 0.14);
  padding: clamp(22px, 4vw, 36px);
  color: var(--grey-800);
}

.mini-dash-top,
.mini-dash-case {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.mini-dash-top {
  margin-bottom: 22px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--grey-200);
}

.mini-dash-title {
  color: var(--navy);
  font-size: 1.15rem;
  font-weight: 800;
}

.mini-dash-dot {
  color: var(--navy-light);
  font-size: 0.9rem;
  font-weight: 700;
}

.mini-dash-case {
  margin-bottom: 20px;
  color: var(--grey-700);
  font-weight: 700;
}

.mini-dash-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.mini-dash-card,
.mini-dash-note {
  background: var(--white);
  border: 1px solid var(--grey-200);
  border-radius: var(--radius-md);
  padding: 18px;
}

.mdc-label,
.mdn-label {
  display: block;
  color: var(--grey-500);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.mdc-value {
  color: var(--navy);
  font-size: 1.25rem;
  font-weight: 800;
}

.mini-dash-note p {
  color: var(--grey-700);
  margin: 0;
  line-height: 1.65;
}

.ai-prev-inner {
  display: grid;
  grid-template-columns: minmax(360px, 1fr) minmax(0, 0.9fr);
  gap: clamp(32px, 7vw, 84px);
  align-items: center;
}

.ai-chat-preview,
.premium-card,
.contact-method-card,
.contact-form-card,
.invoice-preview,
.portal-card,
.dashboard-wrapper,
.doc-category-card,
.additional-info,
.fee-card,
.practice-card,
.blog-card {
  border: 1px solid var(--grey-200);
  box-shadow: 0 12px 34px rgba(13, 27, 42, 0.08);
}

.contact-methods,
.payment-methods-grid,
.portal-features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}

.history-row,
.payment-row,
.doc-item,
.invoice-header,
.dash-header,
.note-header {
  min-width: 0;
}

.data-table,
.invoice-table,
.payment-history,
.doc-list {
  width: 100%;
  overflow-x: auto;
}

.data-table {
  display: block;
}

.dash-content {
  overflow-x: auto;
}

.dash-tabs {
  gap: 4px;
}

.dash-tab-btn {
  flex: 0 0 auto;
}

.msg-bubble {
  max-width: min(78%, 560px);
}

@media (max-width: 1180px) {
  .nav-links {
    gap: 12px;
  }

  .nav-links a {
    font-size: 0.84rem;
  }

  .nav-cta {
    padding-inline: 14px;
  }

  .logo-main {
    font-size: 1.25rem;
  }
}

@media (max-width: 980px) {
  .nav-links,
  .nav-search-btn,
  .nav-cta {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .portal-prev-inner,
  .ai-prev-inner,
  .about-preview-inner {
    grid-template-columns: 1fr;
  }

  .portal-prev-content {
    max-width: none;
  }

  .mini-dash-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dash-two-col,
  .contact-layout,
  .booking-page-layout {
    grid-template-columns: 1fr !important;
  }

  .firm-intro .container > div[style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 760px) {
  .container {
    padding-inline: 18px;
  }

  .hero {
    min-height: auto;
    padding: 120px 0 64px;
  }

  .hero-subtitle {
    max-width: none;
  }

  .hero-badges {
    flex-wrap: wrap;
  }

  .page-hero,
  .blog-hero,
  .portal-hero {
    padding: 118px 0 56px !important;
  }

  .portal-card,
  .booking-form-panel,
  .booking-info-panel,
  .contact-form-card,
  .dashboard-wrapper,
  .premium-card {
    padding: 24px !important;
  }

  .portal-features-list,
  .contact-option-btns,
  .dash-stats-grid {
    grid-template-columns: 1fr !important;
  }

  .dash-header,
  .doc-item,
  .invoice-header,
  .modal-footer,
  .msg-input-area {
    flex-direction: column;
    align-items: stretch;
  }

  .dash-content {
    padding: 24px !important;
  }

  .history-row {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 560px) {
  .logo-main {
    font-size: 1.05rem;
  }

  .logo-sub {
    font-size: 0.55rem;
  }

  .hero-title {
    font-size: clamp(2.25rem, 13vw, 3rem);
  }

  .hero-actions,
  .hero-badges,
  .footer-legal-links,
  .about-preview-stats {
    flex-direction: column;
    align-items: stretch;
  }

  .mini-dash-cards,
  .metrics-grid,
  .practice-preview-grid,
  .process-grid,
  .stats-grid {
    grid-template-columns: 1fr !important;
  }

  .mobile-menu {
    width: min(92vw, 380px);
  }
}

/* --- SITE-WIDE POLISH PASS: layout, contrast, and responsiveness --- */
html {
  background: var(--off-white);
  max-width: 100%;
  overflow-x: hidden;
}

body {
  min-width: 0;
  font-size: 16px;
  max-width: 100%;
}

body,
button,
input,
select,
textarea {
  text-rendering: optimizeLegibility;
}

body > section,
body > header,
main > section {
  width: 100%;
}

.container {
  max-width: 1180px;
  padding-inline: clamp(18px, 4vw, 32px);
}

.section {
  padding: clamp(64px, 8vw, 96px) 0;
}

.section-header {
  margin-bottom: clamp(32px, 5vw, 52px);
}

.section-title {
  font-size: clamp(2rem, 4.5vw, 3.1rem);
}

.section-subtitle {
  max-width: 760px;
  margin-inline: auto;
}

.btn {
  min-height: 44px;
  line-height: 1.35;
  text-decoration: none;
  white-space: normal;
}

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

.btn-gold:hover {
  color: var(--navy);
  background: var(--gold-light);
}

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

.btn-navy:hover {
  background: var(--navy-mid);
  color: var(--white);
}

.btn-outline-light {
  border-color: rgba(255, 255, 255, 0.82);
  color: var(--white);
}

.btn-ghost {
  color: var(--grey-700);
}

.hero .btn-ghost,
.page-hero .btn-ghost,
.blog-hero .btn-ghost,
.portal-hero .btn-ghost {
  color: rgba(255, 255, 255, 0.86);
}

.hero .btn-ghost:hover,
.page-hero .btn-ghost:hover,
.blog-hero .btn-ghost:hover,
.portal-hero .btn-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
}

.navbar {
  padding: 12px 0;
}

.navbar.scrolled {
  padding: 10px 0;
}

.nav-inner {
  min-height: 58px;
}

.logo {
  flex: 0 0 auto;
  min-width: 0;
}

.logo-icon {
  color: var(--gold);
  flex: 0 0 auto;
}

.logo-main {
  font-size: clamp(1.05rem, 1.7vw, 1.45rem);
  letter-spacing: 0.045em;
}

.logo-sub {
  letter-spacing: 0.18em;
}

.nav-links {
  flex: 1 1 auto;
  justify-content: center;
  gap: clamp(10px, 1.25vw, 18px);
}

.nav-links a {
  font-size: clamp(0.82rem, 1.05vw, 0.92rem);
  line-height: 1.2;
}

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

.nav-search-btn {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.nav-search-btn:hover {
  background: rgba(255, 255, 255, 0.08);
}

.nav-cta {
  margin-left: 0;
  min-width: 82px;
}

.hamburger {
  margin-left: 0;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.hamburger:hover {
  background: rgba(255, 255, 255, 0.08);
}

.mobile-menu {
  gap: 18px;
  box-shadow: var(--shadow-xl);
}

.mobile-link {
  line-height: 1.35;
}

.hero {
  min-height: auto;
  padding: clamp(96px, 8vw, 116px) 0 clamp(54px, 6vw, 78px);
}

.hero-inner {
  gap: clamp(36px, 6vw, 74px);
}

.hero-title {
  font-size: clamp(2.55rem, 4.55vw, 3.85rem);
  line-height: 1.04;
  letter-spacing: 0;
}

.hero-subtitle {
  max-width: 620px;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 24px;
}

.hero-actions {
  flex-wrap: wrap;
  align-items: stretch;
  margin-bottom: 28px;
}

.hero-actions .btn {
  min-width: 178px;
}

.hero-badges {
  flex-wrap: wrap;
}

.trust-badge {
  min-height: 54px;
  color: rgba(255, 255, 255, 0.9);
}

.hero-svg-card {
  max-width: 430px;
  margin-left: auto;
}

.hero-svg-card > svg {
  width: 100%;
  height: auto;
}

.hero-card-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  top: -20px;
  right: 22px;
  max-width: calc(100% - 44px);
  min-height: 44px;
  text-align: center;
  line-height: 1.2;
  white-space: normal;
}

.hero-card-badge svg {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
}

.metrics-section .container,
.metrics-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.practice-preview-grid,
.practice-grid,
.blog-grid,
.payment-page-grid,
.values-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
}

.practice-card,
.practice-preview-card,
.blog-card,
.payment-card,
.value-card,
.testimonial-card,
.info-card,
.form-card,
.booking-form-panel,
.contact-form-card,
.client-info-card,
.doc-list,
.payment-list,
.lawyer-notes-section,
.hearing-list {
  border-radius: var(--radius-md);
}

.practice-card,
.practice-preview-card,
.blog-card,
.info-card,
.form-card {
  color: var(--grey-700);
}

.practice-card h3,
.practice-preview-card h3,
.blog-card h3,
.info-card h3,
.form-card h1,
.form-card h2,
.form-card h3 {
  color: var(--navy);
}

.page-hero,
.blog-hero,
.portal-hero,
.hero-navy {
  background: linear-gradient(135deg, var(--navy) 0%, #102238 100%) !important;
  padding: clamp(116px, 12vw, 150px) 0 clamp(58px, 7vw, 84px) !important;
  color: var(--white);
  overflow: hidden;
}

.page-hero h1,
.page-hero .hero-title,
.blog-hero h1,
.portal-hero h1 {
  color: var(--white) !important;
  font-size: clamp(2.2rem, 5.4vw, 4rem) !important;
  line-height: 1.05;
  margin-bottom: 18px;
}

.page-hero .eyebrow,
.page-hero .hero-eyebrow,
.blog-hero .eyebrow,
.portal-hero .eyebrow {
  color: var(--gold-light) !important;
  display: inline-block;
  margin-bottom: 12px;
}

.page-hero p,
.page-hero .subtitle,
.page-hero .hero-subtitle,
.blog-hero p,
.portal-hero p {
  color: rgba(255, 255, 255, 0.78) !important;
  max-width: 760px;
  margin-inline: auto;
}

.breadcrumb {
  color: rgba(255, 255, 255, 0.66) !important;
}

.breadcrumb a,
.breadcrumb .current,
.breadcrumb span {
  color: var(--gold-light) !important;
}

.search-filter-section,
.practice-areas-grid-section,
.booking-section,
.section-padding {
  background: var(--off-white) !important;
}

.search-filter-section {
  padding: clamp(42px, 6vw, 64px) 0 !important;
}

.search-container {
  width: min(100%, 820px);
}

#practice-search {
  min-height: 60px;
}

.filter-container,
.filter-chips {
  gap: 10px;
  padding-inline: 4px;
}

.filter-chip {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--grey-700);
}

.filter-chip.active {
  background: var(--gold) !important;
  color: var(--navy) !important;
  border-color: var(--gold) !important;
}

.consult-cta-bar,
.cta-card,
.cta-content {
  gap: 24px;
}

.consult-cta-bar {
  flex-wrap: wrap;
  border-radius: var(--radius-md);
}

.booking-section {
  padding: clamp(54px, 7vw, 82px) 0 !important;
}

.booking-container {
  display: grid !important;
  grid-template-columns: minmax(280px, 0.82fr) minmax(0, 1.18fr);
  align-items: start;
  gap: clamp(28px, 5vw, 56px) !important;
}

.booking-info-panel,
.booking-form-panel {
  max-width: none !important;
  flex: none !important;
  border-radius: var(--radius-md) !important;
}

.booking-info-panel {
  background: var(--navy) !important;
  color: var(--white) !important;
  padding: clamp(28px, 4vw, 46px) !important;
}

.booking-info-panel h1,
.booking-info-panel h2,
.booking-info-panel h3,
.booking-info-panel strong {
  color: var(--white);
}

.booking-info-panel p,
.booking-info-panel li,
.booking-info-panel .step-text,
.booking-info-panel .office-hours {
  color: rgba(255, 255, 255, 0.82);
}

.booking-info-panel .fee-info-card,
.booking-info-panel .confidentiality-note,
.booking-info-panel .badge {
  background: rgba(255, 255, 255, 0.08) !important;
  border-color: rgba(201, 168, 76, 0.45) !important;
  color: rgba(255, 255, 255, 0.9) !important;
}

.booking-info-panel .fee-link,
.booking-info-panel .fee-amount,
.booking-info-panel .fee-amount span {
  color: var(--gold-light) !important;
}

.booking-form-panel {
  background: var(--white) !important;
  padding: clamp(24px, 4vw, 46px) !important;
}

.booking-form-panel .form-card {
  padding: 0 !important;
  box-shadow: none !important;
}

.form-row,
.form-row-2 {
  gap: 18px !important;
}

.radio-group-grid {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)) !important;
}

.blog-card.featured {
  grid-column: auto;
}

.blog-meta,
.card-footer,
.article-meta {
  flex-wrap: wrap;
  row-gap: 8px;
}

.footer {
  margin-top: 0;
}

.footer-grid {
  grid-template-columns: minmax(240px, 1.5fr) repeat(3, minmax(160px, 1fr));
}

.sticky-whatsapp {
  width: 56px;
  height: 56px;
  right: 24px;
  bottom: 24px;
}

@media (max-width: 1120px) {
  [data-aos] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  .nav-links,
  .nav-search-btn,
  .nav-cta {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .hero-inner,
  .booking-container,
  .contact-layout,
  .firm-intro,
  .about-preview-inner {
    grid-template-columns: 1fr !important;
  }

  .hero-content {
    max-width: 820px;
  }

  .hero-svg-card {
    margin-inline: auto;
    max-width: min(100%, 390px);
  }

  .booking-info-panel {
    order: 2;
  }

  .booking-form-panel {
    order: 1;
  }
}

@media (max-width: 820px) {
  .hero {
    text-align: center;
  }

  .hero-subtitle {
    margin-inline: auto;
  }

  .hero-actions,
  .hero-badges {
    justify-content: center;
  }

  .metrics-section .container,
  .metrics-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

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

  .footer-bottom {
    align-items: flex-start;
    gap: 14px;
    flex-direction: column;
  }
}

@media (max-width: 620px) {
  .container {
    padding-inline: 16px;
  }

  .logo-icon {
    width: 28px;
    height: 28px;
  }

  .nav-inner {
    min-height: 54px;
    gap: 12px;
  }

  .hero {
    padding-top: 108px;
  }

  .hero-title {
    font-size: clamp(2.35rem, 14vw, 3.1rem);
  }

  .hero-actions .btn,
  .contact-actions .btn,
  .consult-cta-bar .btn {
    width: 100%;
  }

  .hero-badges,
  .contact-actions,
  .trust-badges,
  .footer-legal-links {
    flex-direction: column;
    align-items: stretch;
  }

  .metrics-section .container,
  .metrics-grid,
  .form-row,
  .form-row-2,
  .footer-grid {
    grid-template-columns: 1fr !important;
  }

  .page-hero,
  .blog-hero,
  .portal-hero,
  .hero-navy {
    padding-top: 108px !important;
  }

  .search-icon {
    left: 16px !important;
  }

  #practice-search {
    padding-left: 50px !important;
    font-size: 1rem !important;
  }

  .booking-info-panel,
  .booking-form-panel,
  .practice-card,
  .practice-preview-card,
  .info-card {
    padding: 24px !important;
  }

  .sticky-whatsapp {
    width: 52px;
    height: 52px;
    right: 16px;
    bottom: 16px;
  }
}

/* --- FINAL RESPONSIVE UI POLISH PASS --- */
:root {
  --ease-smooth: cubic-bezier(0.22, 1, 0.36, 1);
}

body {
  background: var(--off-white);
}

.navbar {
  padding: 16px 0 !important;
}

.nav-pill-shell {
  max-width: 1160px;
}

.nav-brand-pill,
.nav-links,
.nav-actions {
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.22);
}

.premium-landing-hero {
  min-height: auto !important;
  padding: clamp(104px, 7.5vw, 122px) 0 clamp(44px, 5vw, 64px) !important;
}

.premium-landing-grid {
  grid-template-columns: minmax(0, 0.98fr) minmax(360px, 0.82fr) !important;
  gap: clamp(34px, 5vw, 70px) !important;
}

.premium-landing-copy h1 {
  max-width: 650px;
  margin: 14px 0 16px !important;
  font-size: clamp(3rem, 5.25vw, 5.05rem) !important;
  line-height: 0.96 !important;
}

.premium-landing-copy p {
  max-width: 590px;
  font-size: clamp(0.98rem, 1.25vw, 1.12rem) !important;
  line-height: 1.62 !important;
}

.premium-hero-actions {
  margin-top: 22px !important;
}

.premium-hero-actions .btn {
  min-height: 56px;
  border-radius: 14px;
  padding-inline: 26px;
}

.premium-trust-row {
  margin-top: 18px !important;
  gap: 10px !important;
}

.premium-trust-row span {
  padding: 10px 14px !important;
  font-size: 0.92rem;
}

.premium-landing-visual {
  min-height: 430px !important;
  border-radius: 30px !important;
  transform: translateZ(0);
}

.premium-visual-card {
  transition: transform 280ms var(--ease-smooth), box-shadow 280ms var(--ease-smooth);
}

.premium-landing-visual:hover .premium-visual-card.main {
  transform: translateY(-4px);
}

.premium-visual-card.main {
  left: 30px !important;
  right: 30px !important;
  bottom: 24px !important;
}

.premium-visual-card.float-one {
  top: 42px !important;
  right: 28px !important;
}

.premium-visual-card.float-two {
  top: 146px !important;
  left: 30px !important;
}

.premium-card-head {
  margin-bottom: 18px !important;
}

.premium-visual-card h2 {
  font-size: clamp(1.7rem, 2.35vw, 2.35rem) !important;
}

.premium-visual-card p {
  font-size: 0.94rem !important;
}

.metrics-section {
  margin-top: 0;
}

.practice-preview-card,
.blog-prev-card,
.testimonial-card,
.process-step,
.premium-lawyer-card,
.premium-value-card {
  transition: transform 240ms var(--ease-smooth), box-shadow 240ms var(--ease-smooth), border-color 240ms var(--ease-smooth);
}

.practice-preview-card:hover,
.testimonial-card:hover,
.process-step:hover,
.premium-lawyer-card:hover,
.premium-value-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 24px 60px rgba(13, 27, 42, 0.12);
}

.section {
  padding: clamp(58px, 7vw, 88px) 0 !important;
}

.section-header {
  margin-bottom: clamp(28px, 4vw, 44px) !important;
}

@media (max-width: 1120px) {
  .premium-landing-grid {
    grid-template-columns: 1fr !important;
    text-align: center;
  }

  .premium-landing-copy h1,
  .premium-landing-copy p {
    margin-inline: auto;
  }

  .premium-eyebrow,
  .premium-hero-actions,
  .premium-trust-row {
    justify-content: center;
  }

  .premium-landing-visual {
    width: min(100%, 620px);
    margin-inline: auto;
  }
}

@media (max-width: 760px) {
  .nav-brand-pill {
    min-height: 54px;
  }

  .premium-landing-hero {
    padding: 124px 0 52px !important;
  }

  .premium-landing-grid {
    gap: 28px !important;
  }

  .premium-landing-copy h1 {
    font-size: clamp(2.75rem, 11.5vw, 4rem) !important;
    line-height: 0.98 !important;
  }

  .premium-landing-copy p {
    font-size: 1rem !important;
  }

  .premium-hero-actions {
    gap: 12px;
  }

  .premium-hero-actions .btn {
    width: 100%;
  }

  .premium-trust-row {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .premium-trust-row span {
    text-align: center;
  }

  .premium-landing-visual {
    min-height: 390px !important;
    border-radius: 24px !important;
  }

  .premium-visual-card {
    padding: 18px !important;
    border-radius: 18px !important;
  }

  .premium-visual-card.main {
    left: 16px !important;
    right: 16px !important;
    bottom: 16px !important;
  }

  .premium-visual-card.float-one {
    top: 20px !important;
    right: 16px !important;
    min-width: 160px;
  }

  .premium-visual-card.float-two {
    top: 126px !important;
    left: 16px !important;
    min-width: 160px;
  }

  .metrics-grid,
  .practice-preview-grid,
  .blog-preview-grid,
  .testimonials-grid,
  .process-grid {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 420px) {
  .premium-landing-copy h1 {
    font-size: clamp(2.45rem, 11vw, 3.15rem) !important;
  }

  .premium-trust-row {
    grid-template-columns: 1fr;
  }

  .premium-landing-visual {
    min-height: 410px !important;
  }
}

/* --- LANDING METRICS REPAIR --- */
.metrics-section {
  padding: clamp(42px, 6vw, 72px) 0 !important;
  background:
    radial-gradient(circle at 18% 0%, rgba(201, 168, 76, 0.16), transparent 30%),
    linear-gradient(135deg, #102238, #1a2e45) !important;
}

.metrics-section .container {
  display: block !important;
}

.metrics-grid {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 18px !important;
  width: 100%;
}

.metric-item {
  min-width: 0;
  padding: 24px 20px;
  border-radius: 18px;
  text-align: center;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.11);
  color: var(--white);
}

.metric-value {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 3px;
  white-space: nowrap;
  margin-bottom: 8px;
}

.metric-num {
  display: inline !important;
  color: var(--gold) !important;
  font-family: var(--font-serif);
  font-size: clamp(2.25rem, 4vw, 3.6rem) !important;
  line-height: 1 !important;
  font-weight: 700;
}

.metric-plus {
  display: inline !important;
  color: var(--gold) !important;
  font-size: clamp(1.45rem, 2.2vw, 2rem) !important;
  line-height: 1 !important;
  margin: 0 !important;
}

.metric-label {
  display: block !important;
  color: rgba(255, 255, 255, 0.68) !important;
  font-size: 0.82rem !important;
  line-height: 1.35 !important;
  letter-spacing: 0.14em !important;
  text-transform: uppercase;
  margin: 0 !important;
}

@media (max-width: 900px) {
  .metrics-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 520px) {
  .metrics-grid {
    grid-template-columns: 1fr !important;
  }
}

/* --- FINAL LANDING FIXES + CLIENT ADMIN DASHBOARD --- */
[data-aos] {
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
}

.premium-landing-hero {
  padding-top: clamp(132px, 12vw, 172px) !important;
}

.blog-prev-section {
  background: var(--off-white) !important;
}

.blog-preview-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-top: 36px;
}

.blog-prev-card {
  display: flex;
  min-height: 250px;
  flex-direction: column;
  justify-content: space-between;
  padding: 28px;
  border-radius: 18px;
  background: var(--white);
  border: 1px solid var(--grey-200);
  box-shadow: 0 22px 60px rgba(13, 27, 42, 0.08);
  color: var(--grey-700);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.blog-prev-card:hover {
  transform: translateY(-6px);
  border-color: rgba(201, 168, 76, 0.6);
  box-shadow: 0 30px 70px rgba(13, 27, 42, 0.12);
}

.blog-prev-cat {
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.blog-prev-card h3 {
  color: var(--navy);
  font-size: 1.35rem;
  margin-bottom: 12px;
}

.blog-prev-card p {
  color: var(--grey-600);
  line-height: 1.7;
}

.blog-prev-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 24px;
  color: var(--grey-500);
  font-size: 0.92rem;
}

.blog-read-more {
  color: var(--navy);
  font-weight: 800;
}

.section-cta {
  display: flex;
  justify-content: center;
  margin-top: 36px;
}

.booking-cta-section {
  padding: clamp(54px, 8vw, 90px) 0;
  background: var(--navy);
  border-top: 4px solid var(--gold);
}

.booking-cta-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: 28px;
  align-items: center;
  padding: clamp(28px, 5vw, 54px);
  border-radius: 24px;
  background:
    radial-gradient(circle at 85% 0%, rgba(201, 168, 76, 0.22), transparent 34%),
    rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.booking-cta-content h2 {
  color: var(--white);
  font-size: clamp(2rem, 4vw, 3rem);
}

.booking-cta-content p {
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.7;
  margin-top: 10px;
}

.booking-cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 14px;
}

.booking-cta-actions .btn-ghost {
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
}

.client-admin-body {
  background: #eef2f6;
}

.client-admin-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
}

.client-admin-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 24px;
  background: #071421;
  color: var(--white);
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.client-admin-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--white);
}

.client-admin-brand strong,
.client-admin-brand em {
  display: block;
}

.client-admin-brand em {
  color: var(--gold-light);
  font-style: normal;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.client-admin-nav {
  display: grid;
  gap: 8px;
}

.client-admin-nav a {
  padding: 13px 14px;
  border-radius: 14px;
  color: rgba(255, 255, 255, 0.72);
  font-weight: 700;
}

.client-admin-nav a.active,
.client-admin-nav a:hover {
  color: var(--navy);
  background: var(--gold);
}

.client-admin-help {
  margin-top: auto;
  padding: 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.08);
}

.client-admin-help span {
  display: block;
  color: rgba(255, 255, 255, 0.68);
  margin-bottom: 10px;
}

.client-admin-help a {
  color: var(--gold-light);
  font-weight: 800;
}

.client-admin-main {
  padding: clamp(22px, 4vw, 42px);
}

.client-admin-topbar,
.client-case-hero,
.client-admin-panel,
.client-admin-metrics article {
  border-radius: 22px;
  background: var(--white);
  border: 1px solid var(--grey-200);
  box-shadow: 0 20px 60px rgba(13, 27, 42, 0.08);
}

.client-admin-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px;
  margin-bottom: 24px;
}

.client-admin-topbar .premium-eyebrow {
  color: var(--gold);
}

.client-admin-topbar h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-top: 8px;
}

.client-admin-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.client-case-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: clamp(24px, 4vw, 42px);
  margin-bottom: 24px;
  background:
    radial-gradient(circle at 85% 0%, rgba(201, 168, 76, 0.2), transparent 36%),
    var(--white);
}

.client-case-hero h2 {
  margin: 12px 0;
  font-size: clamp(1.7rem, 3vw, 2.8rem);
}

.client-case-hero p {
  max-width: 760px;
  color: var(--grey-600);
  line-height: 1.7;
}

.client-case-score {
  min-width: 150px;
  text-align: center;
  padding: 22px;
  border-radius: 20px;
  background: var(--navy);
  color: var(--white);
}

.client-case-score span {
  display: block;
  color: var(--gold-light);
  font-size: 0.82rem;
  margin-bottom: 8px;
}

.client-case-score strong {
  font-size: 2.3rem;
}

.client-admin-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.client-admin-metrics article {
  padding: 20px;
}

.client-admin-metrics span,
.client-admin-metrics em {
  display: block;
  color: var(--grey-500);
  font-style: normal;
}

.client-admin-metrics strong {
  display: block;
  color: var(--navy);
  font-size: 1.8rem;
  margin: 8px 0;
}

.client-admin-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.client-admin-panel {
  padding: 24px;
}

.client-admin-panel.large {
  grid-column: span 2;
}

.client-panel-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  margin-bottom: 18px;
}

.client-panel-head h3 {
  color: var(--navy);
}

.client-panel-head span {
  color: var(--gold);
  font-weight: 800;
}

.client-admin-timeline {
  display: grid;
  gap: 14px;
}

.client-admin-timeline div {
  display: grid;
  grid-template-columns: 14px 1fr auto;
  gap: 14px;
  align-items: center;
}

.client-admin-timeline span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--grey-300);
}

.client-admin-timeline .done span {
  background: #059669;
}

.client-admin-timeline .now span {
  background: var(--gold);
}

.client-admin-timeline em {
  color: var(--grey-500);
  font-style: normal;
}

.client-doc-list {
  display: grid;
  gap: 12px;
}

.client-doc-list div {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 14px;
  border-radius: 12px;
  background: var(--grey-50);
}

.client-doc-list span {
  color: #059669;
  font-weight: 800;
}

.client-doc-list .danger {
  color: var(--red);
}

.client-hearing-card p,
.client-admin-panel blockquote {
  margin-top: 10px;
  color: var(--grey-600);
  line-height: 1.75;
}

.billing-bars {
  display: grid;
  gap: 12px;
  margin-bottom: 18px;
}

.billing-bars div {
  display: flex;
  justify-content: space-between;
  padding: 14px;
  border-radius: 12px;
  background: var(--grey-50);
}

.message-input-row {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

.message-input-row input {
  flex: 1;
}

@media (max-width: 980px) {
  .blog-preview-grid,
  .booking-cta-inner,
  .client-admin-shell,
  .client-admin-grid,
  .client-admin-metrics {
    grid-template-columns: 1fr;
  }

  .client-admin-sidebar {
    position: static;
    height: auto;
  }

  .client-admin-panel.large {
    grid-column: auto;
  }

  .client-admin-topbar,
  .client-case-hero {
    align-items: stretch;
    flex-direction: column;
  }

  .booking-cta-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 620px) {
  .premium-landing-hero {
    padding: 150px 0 60px !important;
  }

  .premium-landing-copy h1 {
    font-size: clamp(2.55rem, 11vw, 3.45rem) !important;
  }

  .blog-prev-card,
  .booking-cta-inner,
  .client-admin-panel,
  .client-admin-topbar,
  .client-case-hero {
    padding: 20px;
  }

  .booking-cta-actions .btn,
  .message-input-row,
  .client-admin-actions .btn {
    width: 100%;
  }

  .message-input-row,
  .client-admin-actions {
    flex-direction: column;
  }

  .client-admin-main {
    padding: 16px;
  }
}

/* --- PREMIUM REFRESH: HOME, ABOUT, DASHBOARD --- */
.premium-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--gold-light);
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.78rem;
}

.premium-eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: currentColor;
}

.premium-landing-hero {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  padding: clamp(132px, 12vw, 172px) 0 clamp(68px, 8vw, 112px);
  background:
    radial-gradient(circle at 78% 12%, rgba(201, 168, 76, 0.28), transparent 27%),
    radial-gradient(circle at 28% 18%, rgba(96, 165, 250, 0.18), transparent 33%),
    linear-gradient(135deg, #050b12 0%, #091827 48%, #13283c 100%);
  color: var(--white);
}

.premium-hero-noise {
  position: absolute;
  inset: 0;
  opacity: 0.14;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom, black, transparent 92%);
}

.premium-landing-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(380px, 0.86fr);
  gap: clamp(42px, 7vw, 86px);
  align-items: center;
}

.premium-landing-copy h1 {
  max-width: 760px;
  margin: 20px 0 22px;
  color: var(--white);
  font-size: clamp(3.4rem, 7.2vw, 7.2rem);
  line-height: 0.92;
  letter-spacing: -0.02em;
}

.premium-landing-copy p {
  max-width: 640px;
  color: rgba(255, 255, 255, 0.72);
  font-size: clamp(1.08rem, 1.7vw, 1.3rem);
  line-height: 1.75;
}

.premium-hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 34px;
}

.premium-trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.premium-trust-row span {
  padding: 12px 16px;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.82);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.premium-landing-visual {
  position: relative;
  min-height: 560px;
  border-radius: 38px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.025)),
    radial-gradient(circle at 70% 20%, rgba(201, 168, 76, 0.28), transparent 28%),
    rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.32);
  overflow: hidden;
}

.premium-landing-visual::before {
  content: "";
  position: absolute;
  width: 620px;
  height: 170px;
  right: -130px;
  top: 60px;
  transform: rotate(-18deg);
  background: linear-gradient(90deg, transparent, rgba(201, 168, 76, 0.55), rgba(59, 130, 246, 0.28), transparent);
  filter: blur(5px);
}

.premium-visual-card {
  position: absolute;
  border-radius: 26px;
  padding: 26px;
  background: rgba(7, 18, 31, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.13);
  color: var(--white);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.28);
}

.premium-visual-card.main {
  left: 36px;
  right: 36px;
  bottom: 40px;
}

.premium-card-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 26px;
  color: var(--gold-light);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
}

.premium-visual-card h2 {
  color: var(--white);
  font-size: clamp(1.9rem, 3vw, 2.7rem);
}

.premium-visual-card p {
  margin-top: 14px;
  color: rgba(255, 255, 255, 0.68);
  line-height: 1.7;
}

.premium-progress {
  height: 10px;
  margin-top: 28px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
}

.premium-progress span {
  display: block;
  width: 76%;
  height: 100%;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
}

.premium-visual-card.float-one {
  top: 74px;
  right: 34px;
  min-width: 190px;
  background: var(--gold);
  color: var(--navy);
}

.premium-visual-card.float-two {
  top: 210px;
  left: 34px;
  min-width: 190px;
}

.premium-visual-card.float-one span,
.premium-visual-card.float-two span {
  display: block;
  margin-bottom: 8px;
  color: inherit;
  opacity: 0.72;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.75rem;
  font-weight: 800;
}

.premium-visual-card.float-one strong,
.premium-visual-card.float-two strong {
  font-size: 1.35rem;
}

.premium-page-hero {
  padding: clamp(140px, 14vw, 190px) 0 clamp(72px, 9vw, 110px);
  background:
    radial-gradient(circle at 70% 10%, rgba(201, 168, 76, 0.22), transparent 30%),
    linear-gradient(135deg, #08111c, #102238);
  color: var(--white);
}

.premium-page-hero-inner {
  max-width: 900px;
  text-align: center;
}

.premium-page-hero h1 {
  margin: 18px auto;
  color: var(--white);
  font-size: clamp(3rem, 7vw, 6rem);
  line-height: 0.98;
}

.premium-page-hero p {
  max-width: 780px;
  margin: 0 auto;
  color: rgba(255, 255, 255, 0.72);
  font-size: 1.18rem;
  line-height: 1.75;
}

.about-story-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.8fr);
  gap: clamp(34px, 6vw, 76px);
  align-items: center;
}

.premium-copy {
  color: var(--grey-600);
  line-height: 1.85;
  margin-top: 18px;
}

.about-command-card,
.premium-lawyer-card,
.premium-value-card,
.premium-panel,
.premium-cta-card {
  border-radius: 20px;
  background: var(--white);
  border: 1px solid var(--grey-200);
  box-shadow: 0 22px 60px rgba(13, 27, 42, 0.08);
}

.about-command-card {
  padding: 30px;
  background: var(--navy);
  color: var(--white);
}

.command-card-top {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.command-card-top span,
.command-row span {
  color: var(--gold-light);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.command-card-top strong {
  font-size: 2rem;
  color: var(--white);
}

.command-row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.command-row:last-child {
  border-bottom: 0;
}

.premium-team-section,
.premium-values-section,
.dashboard-shell-section {
  background: var(--off-white);
}

.premium-team-grid,
.premium-values-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.premium-lawyer-card,
.premium-value-card {
  padding: 28px;
}

.premium-avatar {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--navy);
  color: var(--gold);
  font-family: var(--font-serif);
  font-size: 1.5rem;
  margin-bottom: 22px;
}

.premium-lawyer-card span,
.premium-value-card span {
  color: var(--gold);
  font-weight: 800;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.premium-lawyer-card h3,
.premium-value-card h3 {
  margin: 10px 0;
  color: var(--navy);
}

.premium-lawyer-card p,
.premium-value-card p {
  color: var(--grey-600);
  line-height: 1.75;
}

.premium-values-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.premium-cta-card {
  padding: clamp(34px, 6vw, 70px);
  text-align: center;
  background:
    radial-gradient(circle at 80% 0%, rgba(201, 168, 76, 0.28), transparent 36%),
    var(--navy);
  color: var(--white);
}

.premium-cta-card h2 {
  color: var(--white);
  font-size: clamp(2.4rem, 5vw, 4.5rem);
  margin: 14px 0;
}

.premium-cta-card p {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 28px;
}

.premium-dashboard-page {
  background: var(--off-white);
}

.premium-dashboard-shell {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 24px;
  margin-top: -54px;
  position: relative;
  z-index: 2;
}

.premium-dash-sidebar,
.premium-dash-main {
  border-radius: 22px;
  background: var(--white);
  border: 1px solid var(--grey-200);
  box-shadow: 0 24px 70px rgba(13, 27, 42, 0.1);
}

.premium-dash-sidebar {
  padding: 22px;
  align-self: start;
  position: sticky;
  top: 110px;
}

.dash-profile {
  display: flex;
  gap: 12px;
  align-items: center;
  padding-bottom: 20px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--grey-200);
}

.dash-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--navy);
  color: var(--gold);
  font-weight: 800;
}

.dash-profile span {
  display: block;
  color: var(--grey-500);
  font-size: 0.85rem;
}

.premium-dash-sidebar a {
  display: block;
  padding: 12px 14px;
  border-radius: 12px;
  color: var(--grey-700);
  font-weight: 600;
}

.premium-dash-sidebar a.active,
.premium-dash-sidebar a:hover {
  background: var(--gold-pale);
  color: var(--navy);
}

.premium-dash-main {
  padding: clamp(22px, 4vw, 38px);
}

.dash-topbar {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  margin-bottom: 26px;
}

.dash-status-pill {
  display: inline-flex;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(5, 150, 105, 0.12);
  color: #047857;
  font-weight: 800;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.dash-topbar h2 {
  margin-top: 8px;
}

.dash-metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 22px;
}

.dash-metric-card {
  padding: 18px;
  border-radius: 16px;
  background: var(--grey-50);
  border: 1px solid var(--grey-200);
}

.dash-metric-card span {
  display: block;
  color: var(--grey-500);
  font-size: 0.82rem;
  margin-bottom: 8px;
}

.dash-metric-card strong {
  color: var(--navy);
  font-size: 1.05rem;
}

.dash-content-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 20px;
}

.premium-panel {
  padding: 22px;
}

.panel-heading {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-bottom: 18px;
}

.panel-heading h3 {
  color: var(--navy);
}

.panel-heading span {
  color: var(--gold);
  font-weight: 700;
  font-size: 0.85rem;
}

.premium-timeline {
  display: grid;
  gap: 16px;
}

.premium-timeline div {
  display: grid;
  grid-template-columns: 14px 1fr auto;
  gap: 12px;
  align-items: center;
}

.premium-timeline span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--gold);
}

.premium-timeline em {
  color: var(--grey-500);
  font-style: normal;
  font-size: 0.88rem;
}

.document-list {
  display: grid;
  gap: 12px;
}

.document-list div {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 14px;
  border-radius: 12px;
  background: var(--grey-50);
}

.document-list span {
  color: #047857;
  font-weight: 700;
}

.document-list .pending {
  color: var(--red);
}

.hearing-card p,
.premium-panel blockquote {
  margin-top: 10px;
  color: var(--grey-600);
  line-height: 1.7;
}

@media (max-width: 1120px) {
  .premium-landing-grid,
  .about-story-grid,
  .premium-dashboard-shell {
    grid-template-columns: 1fr;
  }

  .premium-dash-sidebar {
    position: static;
  }

  .premium-team-grid,
  .premium-values-grid,
  .dash-metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .premium-landing-hero {
    padding: 148px 0 64px !important;
  }

  .premium-landing-copy h1 {
    font-size: clamp(2.75rem, 12vw, 3.7rem);
    line-height: 0.98;
  }

  .premium-landing-visual {
    min-height: 430px;
    border-radius: 26px;
  }

  .premium-visual-card.main {
    left: 18px;
    right: 18px;
    bottom: 18px;
  }

  .premium-visual-card.float-one,
  .premium-visual-card.float-two {
    left: 18px;
    right: auto;
    min-width: 170px;
  }

  .premium-visual-card.float-one {
    top: 28px;
  }

  .premium-visual-card.float-two {
    top: 148px;
  }

  .premium-hero-actions .btn,
  .dash-topbar .btn {
    width: 100%;
  }

  .dash-topbar,
  .premium-hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .premium-team-grid,
  .premium-values-grid,
  .dash-metric-grid,
  .dash-content-grid {
    grid-template-columns: 1fr;
  }

  .premium-timeline div {
    grid-template-columns: 14px 1fr;
  }

  .premium-timeline em {
    grid-column: 2;
  }
}

/* --- NEW LANDING NAV + HERO SHOWCASE --- */
.navbar {
  background: transparent !important;
  border-bottom: 0 !important;
  box-shadow: none !important;
  padding: 22px 0 !important;
}

.navbar.scrolled {
  padding: 14px 0 !important;
  background: rgba(10, 18, 29, 0.7) !important;
}

.nav-pill-shell {
  max-width: 1210px;
  min-height: 64px;
}

.nav-brand-pill,
.nav-links,
.nav-actions {
  background: rgba(18, 18, 19, 0.74);
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.nav-brand-pill {
  min-height: 58px;
  padding: 8px 18px 8px 8px;
  border-radius: 999px;
}

.logo-mark {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  background: radial-gradient(circle at 32% 28%, #f3ff8e 0 16%, #c9ff2f 17% 58%, #88c81a 59% 100%);
  color: #10130c;
  font-family: var(--font-sans);
  font-weight: 900;
  font-size: 1.35rem;
  letter-spacing: -0.08em;
}

.nav-brand-pill .logo-main {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  letter-spacing: 0.08em;
}

.nav-brand-pill .logo-sub {
  font-size: 0.55rem;
  letter-spacing: 0.22em;
}

.nav-links {
  flex: 0 1 auto;
  padding: 7px;
  min-height: 58px;
  border-radius: 999px;
  gap: 4px;
}

.nav-links a {
  height: 42px;
  padding: 0 17px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  color: rgba(255, 255, 255, 0.68);
  font-weight: 500;
}

.nav-links a::after {
  display: none;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
}

.nav-actions {
  min-height: 58px;
  padding: 6px 8px 6px 10px;
  border-radius: 999px;
}

.nav-search-btn {
  color: rgba(255, 255, 255, 0.76);
}

.nav-cta-pill {
  min-height: 46px;
  padding: 0 8px 0 20px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--white);
  background: #121212;
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.92rem;
  font-weight: 600;
  white-space: nowrap;
}

.nav-cta-pill:hover {
  color: var(--white);
  background: #181818;
}

.nav-cta-arrow {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: var(--gold-light);
  font-size: 1.15rem;
}

.hero {
  padding-top: clamp(126px, 11vw, 156px);
  background:
    radial-gradient(circle at 84% 0%, rgba(201, 168, 76, 0.18), transparent 34%),
    radial-gradient(circle at 58% 24%, rgba(66, 103, 145, 0.32), transparent 38%),
    linear-gradient(135deg, #081725 0%, #13283c 100%);
}

.hero-inner {
  grid-template-columns: minmax(0, 0.98fr) minmax(360px, 0.82fr);
}

.hero-showcase-card {
  position: relative;
  min-height: 460px;
  width: min(100%, 500px);
  margin-left: auto;
  border-radius: 34px;
  overflow: hidden;
  isolation: isolate;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.02)),
    radial-gradient(circle at 30% 20%, rgba(201, 168, 76, 0.22), transparent 28%),
    #101e2e;
  border: 1px solid rgba(255, 255, 255, 0.13);
  box-shadow: 0 34px 80px rgba(0, 0, 0, 0.24);
}

.hero-showcase-card::before {
  content: "";
  position: absolute;
  inset: 16px;
  border-radius: 26px;
  background:
    linear-gradient(120deg, transparent 0 45%, rgba(223, 192, 122, 0.34) 46% 48%, transparent 49% 100%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.045) 0 1px, transparent 1px 56px);
  opacity: 0.72;
  z-index: -1;
}

.hero-glow-track {
  position: absolute;
  width: 560px;
  height: 150px;
  top: 18px;
  right: -110px;
  transform: rotate(-13deg);
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(201, 168, 76, 0.12), rgba(96, 165, 250, 0.18), transparent);
  filter: blur(2px);
}

.hero-case-card {
  position: absolute;
  border-radius: 22px;
  padding: 22px;
  color: var(--white);
  background: rgba(8, 20, 34, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.hero-case-card span {
  display: block;
  color: var(--gold-light);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 8px;
}

.hero-case-card strong {
  display: block;
  font-family: var(--font-serif);
  font-size: clamp(1.35rem, 2.3vw, 1.9rem);
  line-height: 1.12;
}

.hero-case-card p {
  margin-top: 14px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.95rem;
  line-height: 1.65;
}

.hero-case-card-main {
  left: 36px;
  right: 36px;
  bottom: 44px;
}

.hero-case-card-float {
  top: 70px;
  right: 28px;
  width: 230px;
  background: var(--gold);
  color: var(--navy);
}

.hero-case-card-float span,
.hero-case-card-float strong {
  color: var(--navy);
  font-family: var(--font-sans);
}

.hero-case-card-mini {
  top: 174px;
  left: 32px;
  width: 190px;
}

.hero-case-card-mini strong {
  font-family: var(--font-sans);
  font-size: 1.1rem;
}

.case-progress {
  height: 9px;
  margin-top: 22px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.1);
}

.case-progress span {
  width: 72%;
  height: 100%;
  margin: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
}

@media (max-width: 1120px) {
  .nav-brand-pill,
  .nav-actions {
    background: rgba(18, 18, 19, 0.82);
  }

  .nav-cta-pill {
    display: none;
  }

  .hero-inner {
    grid-template-columns: 1fr !important;
  }

  .hero-showcase-card {
    margin-inline: auto;
    min-height: 390px;
  }
}

@media (max-width: 620px) {
  .navbar {
    padding: 14px 0 !important;
  }

  .nav-brand-pill {
    padding-right: 12px;
  }

  .logo-mark {
    width: 38px;
    height: 38px;
    font-size: 1.15rem;
  }

  .hero {
    padding-top: 112px;
  }

  .hero-showcase-card {
    min-height: 330px;
    border-radius: 24px;
  }

  .hero-case-card {
    border-radius: 18px;
    padding: 18px;
  }

  .hero-case-card-main {
    left: 18px;
    right: 18px;
    bottom: 20px;
  }

  .hero-case-card-float {
    top: 26px;
    right: 18px;
    width: 190px;
  }

  .hero-case-card-mini {
    top: 126px;
    left: 18px;
    width: 160px;
  }
}

/* --- ABSOLUTE FINAL LANDING RESPONSIVE OVERRIDE --- */
.premium-landing-hero {
  min-height: auto !important;
  padding: clamp(104px, 7.5vw, 122px) 0 clamp(44px, 5vw, 64px) !important;
}

.premium-landing-grid {
  grid-template-columns: minmax(0, 0.98fr) minmax(350px, 0.78fr) !important;
  gap: clamp(30px, 4.8vw, 64px) !important;
}

.premium-landing-copy h1 {
  max-width: 620px !important;
  margin: 14px 0 16px !important;
  font-size: clamp(3rem, 5.05vw, 4.9rem) !important;
  line-height: 0.96 !important;
}

.premium-landing-copy p {
  max-width: 570px !important;
  font-size: clamp(0.98rem, 1.22vw, 1.1rem) !important;
  line-height: 1.62 !important;
}

.premium-hero-actions {
  margin-top: 22px !important;
}

.premium-trust-row {
  margin-top: 18px !important;
}

.premium-landing-visual {
  min-height: 430px !important;
  max-width: 500px !important;
}

.premium-visual-card.main {
  left: 28px !important;
  right: 28px !important;
  bottom: 24px !important;
}

.premium-visual-card.float-one {
  top: 42px !important;
}

.premium-visual-card.float-two {
  top: 146px !important;
}

@media (max-width: 1120px) {
  .premium-landing-grid {
    grid-template-columns: 1fr !important;
  }

  .premium-landing-visual {
    width: min(100%, 620px) !important;
    margin-inline: auto !important;
  }
}

@media (max-width: 760px) {
  .premium-landing-hero {
    padding: 124px 0 52px !important;
  }

  .premium-landing-copy h1 {
    font-size: clamp(2.75rem, 11.5vw, 4rem) !important;
    line-height: 0.98 !important;
  }

  .premium-landing-visual {
    min-height: 390px !important;
  }
}
