:root {
  /* Brand Colors - Legal Tech Focus - Updated based on Logo */
  --color-primary: #0b2545; /* Navy Blue from Logo */
  --color-secondary: #0b2545; /* Navy Blue */
  --color-accent: #d4af37; /* Gold from Logo */
  --color-gold: #d4af37; /* Gold from Logo */

  --color-dark-bg: #0b2545; /* Use Navy for dark backgrounds */
  --color-soft-bg: #f5f5f5;
  --color-white: #ffffff;
  --color-text-main: #1e293b;
  --color-text-muted: #64748b;

  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #0b2545 0%, #1e3a8a 100%);
  --gradient-legal: linear-gradient(135deg, #0b2545 0%, #d4af37 100%);

  /* Typography */
  --font-primary: "Outfit", sans-serif;
  --font-secondary: "Inter", sans-serif;

  /* Transitions & Animations */
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-secondary);
  color: var(--color-text-main);
  background-color: var(--color-white);
  line-height: 1.6;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-primary);
  font-weight: 700;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

@media (max-width: 576px) {
  .container {
    padding: 0 1.25rem;
  }
}

/* Grid System */
.grid {
  display: grid;
  gap: 2rem;
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}
.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}
.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}
.grid-5 {
  grid-template-columns: repeat(5, 1fr);
}
.grid-6 {
  grid-template-columns: repeat(6, 1fr);
}

/* Prevent Image Overflow */
img {
  max-width: 100%;
  height: auto;
}

@media (max-width: 1200px) {
  .grid-5,
  .grid-6 {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .grid-3,
  .grid-4,
  .grid-5,
  .grid-6 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .grid-2,
  .grid-3,
  .grid-4,
  .grid-5,
  .grid-6 {
    grid-template-columns: 1fr;
  }
}

.section {
  padding: 5rem 0;
}

/* Typography Utilities */
.text-gradient {
  background: var(--gradient-legal);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: var(--color-white);
  z-index: 1000;
  border-bottom: 2px solid #f1f5f9;
  transition: var(--transition-smooth);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.logo-img {
  height: 40px; /* Minimized height */
  width: auto;
  transition: var(--transition-smooth);
}

.logo-text {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  line-height: 1;
  color: var(--color-primary);
  font-family: var(--font-primary);
}

.logo-text .brand {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: 0.5px;
}

.logo-text .division {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--color-primary);
  text-transform: none;
}

.nav-toggle {
  display: none; /* Hidden on desktop */
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-link {
  color: var(--color-primary);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9375rem;
  transition: var(--transition-smooth);
}

.nav-link:hover,
.nav-link.active {
  color: var(--color-accent);
}

/* Dropdown Menu */
.dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--color-white);
  min-width: 220px;
  padding: 1rem 0;
  border-radius: 0 0 12px 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: var(--transition-smooth);
  list-style: none;
  border: 1px solid #f1f5f9;
}

.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-item {
  color: var(--color-primary);
  padding: 0.75rem 1.5rem;
  display: block;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 600;
  transition: var(--transition-smooth);
}

.dropdown-item:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--color-accent);
  padding-left: 1.75rem;
}

.dropdown-toggle::after {
  content: "\f107";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  margin-left: 0.5rem;
  font-size: 0.8rem;
  transition: var(--transition-smooth);
}

.dropdown:hover .dropdown-toggle::after {
  transform: rotate(180deg);
}

/* Buttons */
.btn {
  display: inline-flex;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-primary {
  background: var(--gradient-legal);
  color: var(--color-primary);
}

.btn-outline {
  border: 2px solid var(--color-white);
  color: var(--color-white);
}

/* Reveal System */
.reveal {
  opacity: 0;
  transition:
    opacity 0.8s ease-out,
    transform 0.8s cubic-bezier(0.2, 1, 0.3, 1);
}

.reveal.active {
  opacity: 1;
  transform: translate(0, 0) scale(1);
}

.reveal-up {
  transform: translateY(40px);
}
.reveal-down {
  transform: translateY(-40px);
}
.reveal-left {
  transform: translateX(-40px);
}
.reveal-right {
  transform: translateX(40px);
}

/* Page Load Animation for Sections */
section {
  animation: fadeInSection 1s ease-out;
}

@keyframes fadeInSection {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Footer Enhancements */
/* Footer Enhancements */
footer {
  background: var(--color-primary);
  color: var(--color-white);
  padding: 2rem 0 1rem; /* Further reduced from 3rem */
  border-top: 4px solid var(--color-accent);
}

footer .container {
  max-width: 1200px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 1.5rem; /* Further reduced from 2rem */
  margin-bottom: 1.5rem; /* Further reduced from 2rem */
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.7);
  margin-top: 0.5rem; /* Further reduced */
  font-size: 0.9rem;
}

.footer-links h4 {
  margin-bottom: 0.75rem; /* Further reduced */
  font-size: 1rem;
  position: relative;
  padding-bottom: 0.5rem;
  color: var(--color-white);
}

.footer-links h4::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 30px;
  height: 2px;
  background: var(--color-accent);
}

.footer-links ul {
  list-style: none;
}

.footer-links ul li {
  margin-bottom: 0.25rem; /* Further reduced */
}

.footer-links ul li a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: var(--transition-smooth);
  font-size: 0.9rem;
}

.footer-links ul li a:hover {
  color: var(--color-accent);
  padding-left: 5px;
}

.footer-contact-item {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  margin-bottom: 0.5rem; /* Further reduced */
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
}

.footer-contact-item i {
  color: var(--color-accent);
  margin-top: 3px;
}

.footer-bottom {
  margin-top: 1.5rem; /* Further reduced */
  padding-top: 1rem; /* Further reduced */
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-social-links {
  display: flex;
  gap: 0.75rem; /* Further reduced */
}

.footer-social-links a {
  width: 32px; /* Further reduced */
  height: 32px; /* Further reduced */
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--color-white);
  text-decoration: none;
  transition: var(--transition-smooth);
  font-size: 0.85rem;
}

.footer-social-links a:hover {
  background: var(--color-accent);
  color: var(--color-primary);
  transform: translateY(-2px);
}

/* Utilities for Expanded Content */
.pt-hero {
  padding-top: 160px;
}
.py-100 {
  padding: 80px 0;
}
.bg-surface {
  background: var(--color-soft-bg);
}
.rounded-sm {
  border-radius: 8px;
}
.border-primary-left {
  border-left: 4px solid var(--color-primary);
}
.w-100 {
  width: 100%;
}
.mt-2 {
  margin-top: 0.5rem;
}
.mb-6 {
  margin-bottom: 1.5rem;
}
.mb-3 {
  margin-bottom: 1rem;
}
.mb-1 {
  margin-bottom: 0.5rem;
}

.grid-2-cols-uneven-reverse {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 4rem;
}

@media (max-width: 992px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .grid-2-cols-uneven-reverse {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 992px) {
  .nav-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    color: var(--color-primary);
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 1001; /* Above the overlay menu */
    width: 44px;
    height: 44px; /* Minimum touch target */
  }

  /* Mobile Menu Overlay */
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%; /* Hidden off-screen */
    width: 100%; /* Full screening for mobile focus or 80% for slide-in */
    max-width: 300px;
    height: 100vh;
    background: var(--color-white);
    flex-direction: column;
    padding: 6rem 2rem 2rem; /* Top padding for close button space */
    gap: 1.5rem;
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.15);
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    z-index: 1000;
    overflow-y: auto;
  }

  .nav-links.active {
    right: 0;
  }

  /* Overlay Backdrop */
  .nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(2px);
  }

  .nav-overlay.active {
    opacity: 1;
    visibility: visible;
  }

  .logo img {
    height: 32px; /* Adjusted for better mobile fit */
  }

  .logo-text .brand,
  .logo-text .division {
    font-size: 1.2rem;
  }

  /* Dropdown in Mobile Menu */
  .dropdown-menu {
    position: static;
    box-shadow: none;
    border: none;
    padding: 0;
    padding-left: 1rem;
    border-left: 2px solid var(--color-accent);
    margin-top: 0.5rem;
    opacity: 1; /* Always visible logic handled by JS display toggle */
    visibility: visible;
    transform: none;
    display: none; /* Hidden by default */
    background: transparent;
    min-width: auto; /* Reset min-width */
    width: 100%;
  }

  .dropdown.active .dropdown-menu {
    display: block;
    animation: slideDown 0.3s ease-out;
  }

  @keyframes slideDown {
    from {
      opacity: 0;
      transform: translateY(-10px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 576px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .logo img {
    height: 28px;
  }

  .logo-text .brand,
  .logo-text .division {
    font-size: 1rem;
  }

  .nav-links {
    width: 85%; /* Slightly smaller on very small screens to see backdrop */
    max-width: none;
  }
}
/* Hero Section Enhancements */
.hero-split {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4rem;
}

.hero-content {
  flex: 1;
  max-width: 650px;
}

.hero-logo-box {
  flex: 0 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-logo-large {
  width: 320px; /* Dominant size */
  height: auto;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.15));
}

@media (max-width: 992px) {
  .hero-split {
    flex-direction: column-reverse; /* Logo above/beside depending on space */
    text-align: center;
    gap: 2rem;
  }

  .hero-content {
    max-width: 100%;
  }

  .hero-logo-large {
    width: 240px;
  }
}

@media (max-width: 768px) {
  .hero-split {
    flex-direction: column-reverse; /* Content bottom, Logo top */
  }

  .hero-logo-box {
    margin-bottom: 3rem;
  }

  .hero-logo-large {
    width: 200px;
  }
}

/* Updated Brand Name Global Styling */
.brand-name-legal {
  font-weight: 800;
  color: inherit;
}
.brand-division-legal {
  font-weight: 800;
  color: var(--color-accent);
}
/* Form Status Messages */
.form-status-message {
  margin-top: 1.5rem;
  padding: 1rem;
  border-radius: 8px;
  text-align: center;
  font-weight: 600;
  display: none;
  animation: slideUp 0.3s ease-out;
}

.form-status-message.success {
  display: block;
  background-color: #ecfdf5;
  color: #059669;
  border: 1px solid #10b981;
}

.form-status-message.error {
  display: block;
  background-color: #fef2f2;
  color: #dc2626;
  border: 1px solid #ef4444;
}

/* Button Loading State */
.btn-primary:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  pointer-events: none;
}

.spinner {
  display: inline-block;
  width: 1rem;
  height: 1rem;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: #fff;
  animation: spin 0.8s linear infinite;
  margin-right: 0.5rem;
  vertical-align: middle;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Success Page Animations */
.success-card {
  animation: scaleIn 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9) translateY(20px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
