:root {
  --blue: #107ed7;
  --blue-dark: #0a5a9e;
  --blue-light: #e8f4fd;
  --orange: #ff8200;
  --orange-dark: #e07300;
  --orange-light: #fff3e0;
  --charcoal: #1a1a2e;
  --gray-light: #f5f7fa;
  --gray-medium: #6b7280;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  color: var(--charcoal);
}

/* Navigation */
#main-nav {
  background-color: rgba(12, 22, 40, 0.97) !important;
}

.nav-scrolled {
  background-color: rgba(12, 22, 40, 0.98) !important;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.25);
}

.nav-link {
  position: relative;
  transition: color 0.3s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--orange);
  transition: width 0.3s ease;
}

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

/* ---- Nav section dropdowns (desktop) ---- */
.nav-dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.nav-caret {
  margin-left: 0.3rem;
  width: 0.7rem;
  height: 0.7rem;
  transition: transform 0.3s ease;
  opacity: 0.85;
}

.nav-dropdown:hover .nav-caret,
.nav-dropdown:focus-within .nav-caret {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(0.75rem);
  min-width: 15rem;
  background: #fff;
  border-radius: 0.9rem;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.22);
  padding: 0.5rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s ease;
  z-index: 60;
}

/* Invisible bridge so the menu doesn't close when the cursor crosses the gap */
.dropdown-menu::before {
  content: '';
  position: absolute;
  top: -0.9rem;
  left: 0;
  right: 0;
  height: 0.9rem;
}

.nav-dropdown:hover .dropdown-menu,
.nav-dropdown:focus-within .dropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0.35rem);
}

.dropdown-item {
  display: block;
  padding: 0.6rem 0.85rem;
  border-radius: 0.55rem;
  color: var(--charcoal);
  font-size: 0.95rem;
  font-weight: 500;
  white-space: nowrap;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.dropdown-item:hover,
.dropdown-item:focus {
  background-color: var(--blue-light);
  color: var(--blue);
  outline: none;
}

/* ---- Nav section dropdowns (mobile accordion) ---- */
.mobile-nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-nav-row > a {
  flex: 1 1 auto;
  border-bottom: 0 !important;
}

.mobile-submenu-toggle {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.2s ease;
}

.mobile-submenu-toggle:hover {
  color: #fff;
}

.mobile-submenu-toggle svg {
  width: 1.1rem;
  height: 1.1rem;
  transition: transform 0.3s ease;
}

.mobile-submenu-toggle.open svg {
  transform: rotate(180deg);
}

.mobile-submenu {
  display: none;
  flex-direction: column;
  padding: 0.25rem 0 0.5rem 1rem;
  margin-left: 0.25rem;
  border-left: 2px solid var(--orange);
}

.mobile-submenu.open {
  display: flex;
}

.mobile-submenu a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
  padding: 0.5rem 0;
  transition: color 0.2s ease;
}

.mobile-submenu a:hover {
  color: #fff;
}

/* Hero */
.hero-gradient {
  background:
    radial-gradient(circle at 20% 50%, rgba(255, 130, 0, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.06) 0%, transparent 40%),
    radial-gradient(circle at 60% 80%, rgba(255, 130, 0, 0.07) 0%, transparent 40%),
    linear-gradient(135deg, #062a4d 0%, #0a5a9e 30%, #107ed7 70%, #0a5a9e 100%);
}

/* Dark hero variant — takes the EXACT navy that the header used to have
   (1:1 swap: header becomes blue, hero becomes this navy) */
.hero-gradient-dark {
  background-color: rgba(12, 22, 40, 0.97);
}

/* Hero logo */
.logo-glass-card {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 22px;
  border-radius: 28px;
  background:
    linear-gradient(
      135deg,
      rgba(20, 82, 126, 0.72),
      rgba(12, 51, 86, 0.54)
    );
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow:
    0 28px 80px rgba(0, 0, 0, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(18px) saturate(135%);
  -webkit-backdrop-filter: blur(18px) saturate(135%);
  overflow: hidden;
}

.logo-glass-card::before {
  content: "";
  position: absolute;
  inset: -45px;
  z-index: -1;
  background: radial-gradient(
    circle,
    rgba(18, 92, 142, 0.55),
    rgba(18, 92, 142, 0.22) 42%,
    transparent 72%
  );
  filter: blur(22px);
}

.logo-glass-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background:
    linear-gradient(
      135deg,
      rgba(255,255,255,0.10),
      transparent 38%
    );
}

.logo-glass-card img {
  position: relative;
  z-index: 1;
  width: 520px;
  max-width: 85vw;
}

/* Hero logo (white wordmark variant, no card) */
.hero-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.hero-logo img {
  width: 640px;
  max-width: 90vw;
}

/* Buttons */
.btn-primary {
  background-color: var(--orange);
  color: #fff;
  padding: 0.875rem 2rem;
  border-radius: 0.5rem;
  font-weight: 600;
  transition: all 0.3s ease;
  display: inline-block;
}

.btn-primary:hover {
  background-color: var(--orange-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(255, 130, 0, 0.4);
}

.btn-secondary {
  background-color: transparent;
  color: #fff;
  padding: 0.875rem 2rem;
  border: 2px solid #fff;
  border-radius: 0.5rem;
  font-weight: 600;
  transition: all 0.3s ease;
  display: inline-block;
}

.btn-secondary:hover {
  background-color: #fff;
  color: var(--blue-dark);
  transform: translateY(-2px);
}

.btn-outline-blue {
  background-color: transparent;
  color: var(--blue);
  padding: 0.875rem 2rem;
  border: 2px solid var(--blue);
  border-radius: 0.5rem;
  font-weight: 600;
  transition: all 0.3s ease;
  display: inline-block;
}

.btn-outline-blue:hover {
  background-color: var(--blue);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(16, 126, 215, 0.3);
}

/* Cards */
.service-card {
  background: #fff;
  border-radius: 1rem;
  padding: 2rem;
  transition: all 0.3s ease;
  border: 1px solid #e5e7eb;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  border-color: var(--blue);
}

.service-card .icon-wrapper {
  width: 4rem;
  height: 4rem;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  font-size: 1.5rem;
}

/* Section styling */
.section-divider {
  width: 5rem;
  height: 5px;
  border-radius: 2.5px;
}

/* Stat counter */
.stat-item {
  text-align: center;
}

.stat-number {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1;
  background: linear-gradient(135deg, var(--blue), var(--orange));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Client type cards */
.client-card {
  background: #fff;
  border-radius: 1rem;
  padding: 2rem 1.5rem;
  text-align: center;
  transition: all 0.3s ease;
  border: 1px solid #e5e7eb;
}

.client-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
}

.client-card .icon-circle {
  width: 5rem;
  height: 5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  font-size: 2rem;
}

/* Footer */
.footer-link {
  color: #94a3b8;
  transition: color 0.3s ease;
}

.footer-link:hover {
  color: var(--orange);
}

/* Mobile menu */
.mobile-menu {
  background-color: rgba(12, 22, 40, 0.98) !important;
  transform: translateX(100%);
  transition: transform 0.3s ease;
}

.mobile-menu.open {
  transform: translateX(0);
}

/* Hamburger animation */
.hamburger span {
  transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

/* Page header for inner pages */
.page-header {
  background: linear-gradient(135deg, #0a5a9e 0%, #107ed7 50%, var(--orange) 100%);
  /* Top padding = fixed navbar height (7rem) + matching bottom gap (4rem)
     so the heading sits optically centered in the visible gradient band. */
  padding: 11rem 0 4rem;
}

/* Alternating service sections */
.service-detail:nth-child(even) {
  background-color: var(--gray-light);
}

/* Court case cards */
.case-card {
  background: #fff;
  border-left: 4px solid var(--blue);
  border-radius: 0 0.5rem 0.5rem 0;
  padding: 1.5rem;
  transition: all 0.3s ease;
}

.case-card:hover {
  border-left-color: var(--orange);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

/* Resource cards */
.resource-link {
  display: block;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  transition: all 0.2s ease;
  color: var(--blue);
}

.resource-link:hover {
  background-color: var(--blue-light);
  color: var(--blue-dark);
}

/* Contact form */
.form-input {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 1px solid #d1d5db;
  border-radius: 0.5rem;
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  transition: all 0.3s ease;
  outline: none;
}

.form-input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(16, 126, 215, 0.15);
}

/* Smooth reveal for AOS override */
[data-aos] {
  pointer-events: auto !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .stat-number {
    font-size: 2.25rem;
  }

  .hero-gradient {
    min-height: 85vh;
  }
}

/* ---- Team roster (About page) ---- */
/* Active state is driven off aria-expanded so the JS only has to manage ARIA
   and the hidden attribute — no parallel class bookkeeping. */
.team-group-label {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9ca3af;
  margin: 1.25rem 0 0.5rem;
}

.team-group-label:first-child {
  margin-top: 0;
}

.team-tab {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-align: left;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 0.75rem;
  padding: 0.75rem 1rem;
  margin-bottom: 0.5rem;
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.team-tab:hover {
  border-color: var(--blue);
}

.team-tab:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

.team-tab[aria-expanded='true'] {
  border-color: var(--blue);
  background-color: var(--blue-light);
  box-shadow: inset 3px 0 0 var(--blue);
}

.team-tab-avatar {
  flex: none;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 9999px;
  background: #eef2f7;
  color: #9ca3af;
  display: flex;
  align-items: center;
  justify-content: center;
}

.team-tab-avatar svg {
  width: 1.35rem;
  height: 1.35rem;
}

.team-tab[aria-expanded='true'] .team-tab-avatar {
  background: #fff;
  color: var(--blue);
}

.team-tab-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.team-tab-name {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--charcoal);
  line-height: 1.3;
}

.team-tab-role {
  font-size: 0.78rem;
  color: var(--gray-medium);
  line-height: 1.35;
}

.team-tab-cred {
  font-size: 0.7rem;
  color: #9ca3af;
  line-height: 1.35;
}

.team-tab[aria-expanded='true'] .team-tab-role {
  color: var(--blue-dark);
}

.team-tab-chevron {
  flex: none;
  width: 1rem;
  height: 1rem;
  margin-left: auto;
  color: #9ca3af;
  transition: transform 0.2s ease;
}

.team-tab[aria-expanded='true'] .team-tab-chevron {
  transform: rotate(180deg);
  color: var(--blue);
}

.team-bio {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 1rem;
  padding: 1.5rem;
  margin-bottom: 0.75rem;
  animation: teamBioIn 0.25s ease-out;
}

.team-bio-head {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 1rem;
}

.team-bio-avatar {
  flex: none;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 9999px;
  background: #eef2f7;
  color: #9ca3af;
  display: flex;
  align-items: center;
  justify-content: center;
}

.team-bio-avatar svg {
  width: 2.1rem;
  height: 2.1rem;
}

@keyframes teamBioIn {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (min-width: 1024px) {
  .team-bio {
    padding: 2rem;
    margin-bottom: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .team-bio {
    animation: none;
  }
}
