@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/* CSS Variables */
:root {
  --text-main: #e5e7eb;
  --text-muted: #9ca3af;
  --text-soft: #6b7280;
  --border-subtle: rgba(148, 163, 184, 0.22);
  --bg-dark: #020617;
  --primary-color: #3b82f6;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  background: linear-gradient(135deg, #020617 0%, #050816 40%, #020617 100%);
  color: var(--text-main);
  line-height: 1.6;
  min-height: 100vh;
  font-size: 16px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  margin-bottom: 1rem;
}

h1 {
  font-size: 3.5rem;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

h2 {
  font-size: 2.5rem;
  line-height: 1.2;
  margin-bottom: 2rem;
}

h3 {
  font-size: 1.75rem;
  line-height: 1.3;
  margin-bottom: 1.5rem;
}

h4 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

p {
  margin-bottom: 1.25rem;
  color: var(--text-main);
  line-height: 1.8;
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: #60a5fa;
}

/* Container */
.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 28px;
}

/* Header & Navigation */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(2, 6, 23, 0.96);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border-subtle);
  z-index: 1000;
  padding: 1rem 0;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 60px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.logo-img {
  height: 40px;
  width: auto;
}

.brand-text {
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.15em;
}

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
  list-style: none;
}

.nav-links a {
  color: var(--text-main);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.3s ease;
  position: relative;
}

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

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--primary-color);
}

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

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: -1rem;
  background: rgba(2, 6, 23, 0.98);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  min-width: 280px;
  list-style: none;
  margin-top: 0.5rem;
  padding: 0.75rem 0;
  backdrop-filter: blur(18px);
}

.dropdown-menu li {
  padding: 0;
}

.dropdown-menu a {
  display: block;
  padding: 0.75rem 1.5rem;
  color: var(--text-main);
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.dropdown-menu a:hover {
  background: rgba(59, 130, 246, 0.1);
  padding-left: 2rem;
}

.dropdown.active .dropdown-menu {
  display: block;
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-main);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
}

/* Hero Section */
.hero {
  padding: 140px 0 100px;
  text-align: center;
  margin-top: 60px;
}

.hero.small {
  padding: 100px 0 60px;
}

.hero h1 {
  margin-bottom: 0.5rem;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.tagline {
  font-size: 1.1rem;
  color: var(--text-soft);
  margin-bottom: 3rem;
  font-weight: 500;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 32px;
  border: 2px solid var(--primary-color);
  border-radius: 999px;
  background: transparent;
  color: var(--primary-color);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  font-family: 'Inter', sans-serif;
}

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

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

.btn-primary:hover {
  background: #2563eb;
  border-color: #2563eb;
}

/* Sections */
section {
  padding: 80px 0;
  border-top: 1px solid var(--border-subtle);
}

section:first-of-type {
  border-top: none;
}

section h2 {
  text-align: center;
  margin-bottom: 3rem;
}

/* Grid Layouts */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.grid-6 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

/* Cards */
.card {
  background: rgba(15, 23, 42, 0.4);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 2rem;
  transition: all 0.3s ease;
}

.card:hover {
  border-color: var(--primary-color);
  background: rgba(15, 23, 42, 0.6);
  transform: translateY(-4px);
}

.card h3 {
  margin-bottom: 1rem;
  font-size: 1.3rem;
}

.card p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

/* Card link styling removed - cards are fully clickable */

/* FAQ Accordion */
.faq-section {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  margin-bottom: 1.5rem;
  overflow: hidden;
}

.faq-question {
  padding: 1.5rem;
  background: rgba(15, 23, 42, 0.3);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
  transition: background 0.3s ease;
  font-weight: 600;
  font-size: 1rem;
}

.faq-question:hover {
  background: rgba(15, 23, 42, 0.5);
}

.faq-toggle {
  font-size: 1.5rem;
  transition: transform 0.3s ease;
}

.faq-item.active .faq-toggle {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
  max-height: 1000px;
}

.faq-answer-content {
  padding: 1.5rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border-subtle);
}

/* Form Styles */
.form-group {
  margin-bottom: 1.5rem;
}

label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  font-size: 0.95rem;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
select,
textarea {
  width: 100%;
  padding: 12px 16px;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  color: var(--text-main);
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  transition: border-color 0.3s ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
input[type="number"]:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  background: rgba(15, 23, 42, 0.8);
}

textarea {
  resize: vertical;
  min-height: 120px;
}

select option {
  background: #020617;
  color: var(--text-main);
}

/* Trust Bar */
.trust-bar {
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 3rem 0;
  flex-wrap: wrap;
  gap: 2rem;
  text-align: center;
}

.trust-item {
  flex: 1;
  min-width: 150px;
}

.trust-item p {
  color: var(--text-muted);
  margin-bottom: 0;
  font-size: 0.95rem;
}

/* Practice Area Grid */
.practice-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

/* CTA Section */
.cta-section {
  text-align: center;
  padding: 4rem 0;
}

.cta-section h2 {
  margin-bottom: 2rem;
}

/* Lists & Content */
ul, ol {
  margin-left: 1.5rem;
  margin-bottom: 1.5rem;
}

li {
  margin-bottom: 0.75rem;
  color: var(--text-muted);
}

strong {
  color: var(--text-main);
  font-weight: 600;
}

/* Footer */
footer {
  border-top: 1px solid var(--border-subtle);
  padding: 3rem 0;
  text-align: center;
  margin-top: 2rem;
}

footer p {
  color: var(--text-soft);
  margin-bottom: 0;
  font-size: 0.9rem;
}

/* Case Types Section */
.case-types-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-bottom: 3rem;
}

.case-type {
  padding: 1.5rem;
  border-left: 3px solid var(--primary-color);
  background: rgba(15, 23, 42, 0.3);
  border-radius: 4px;
}

.case-type h4 {
  color: var(--text-main);
  margin-bottom: 0.75rem;
}

.case-type p {
  color: var(--text-muted);
  margin-bottom: 0;
  font-size: 0.95rem;
}

/* Section Subtitle */
.section-subtitle {
  color: var(--text-muted);
  font-size: 1.1rem;
  margin-bottom: 2rem;
  text-align: center;
}

/* Disclaimer */
.disclaimer {
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 1.5rem;
  margin-top: 2rem;
  font-size: 0.85rem;
  color: var(--text-soft);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .grid-3,
  .grid-6 {
    grid-template-columns: repeat(2, 1fr);
  }

  .practice-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  h1 {
    font-size: 2.5rem;
  }

  h2 {
    font-size: 1.875rem;
  }

  h3 {
    font-size: 1.5rem;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  header {
    padding: 0.75rem 0;
  }

  nav {
    height: auto;
  }

  .container {
    padding: 0 16px;
  }

  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  h3 {
    font-size: 1.25rem;
  }

  .hero {
    padding: 100px 0 60px;
    margin-top: 60px;
  }

  .grid-2,
  .grid-3,
  .grid-6,
  .practice-grid,
  .case-types-grid {
    grid-template-columns: 1fr;
  }

  section {
    padding: 50px 0;
  }

  .trust-bar {
    flex-direction: column;
    gap: 1.5rem;
  }

  .dropdown-menu {
    position: static;
    display: none;
    background: rgba(15, 23, 42, 0.6);
    margin-top: 0;
    border: none;
    border-top: 1px solid var(--border-subtle);
    border-radius: 0;
  }

  .dropdown.active .dropdown-menu {
    display: block;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 1.5rem;
  }

  h2 {
    font-size: 1.25rem;
  }

  h3 {
    font-size: 1.1rem;
  }

  .hero h1 {
    margin-bottom: 0.75rem;
  }

  .container {
    padding: 0 12px;
  }

  .btn {
    padding: 10px 24px;
    font-size: 0.9rem;
  }

  /* Footer responsive */
  footer .container > div:first-child {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
    text-align: center !important;
  }
}

/* ================================================
   Sticky Mobile CTA Bar
   ================================================ */
.mobile-cta-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(2, 6, 23, 0.98);
  backdrop-filter: blur(18px);
  border-top: 1px solid var(--border-subtle);
  padding: 12px 16px;
  z-index: 999;
  gap: 10px;
  justify-content: center;
  align-items: center;
}

.mobile-cta-bar a {
  flex: 1;
  text-align: center;
  padding: 12px 16px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
}

.mobile-cta-bar .cta-call {
  background: var(--primary-color);
  color: white;
  border: 2px solid var(--primary-color);
}

.mobile-cta-bar .cta-consult {
  background: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

@media (max-width: 768px) {
  .mobile-cta-bar {
    display: flex;
  }

  /* Add padding at the bottom of the page so content isn't hidden behind the bar */
  body {
    padding-bottom: 70px;
  }

  /* Hide phone in nav on mobile since it's in the CTA bar */
  .nav-phone {
    display: none !important;
  }
}

/* ================================================
   Scroll Animations
   ================================================ */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ================================================
   Practice Area Card Icons
   ================================================ */
.card-icon {
  font-size: 1.75rem;
  margin-bottom: 0.75rem;
  display: block;
}
