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

:root {
  --primary-50: #f0f9ff;
  --primary-100: #e0f2fe;
  --primary-200: #bae6fd;
  --primary-300: #7dd3fc;
  --primary-400: #38bdf8;
  --primary-500: #0ea5e9;
  --primary-600: #0284c7;
  --primary-700: #0369a1;
  --primary-800: #075985;
  --primary-900: #0c4a6e;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: #111827;
  background: #ffffff;
  line-height: 1.6;
}

/* Navigation */
nav {
  background: white;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 50;
}

.nav-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}

.nav-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 4rem;
}

.nav-logo {
  font-size: 1.25rem;
  font-weight: bold;
  color: var(--primary-700);
  text-decoration: none;
}

.nav-links {
  display: none;
}

.nav-links a {
  color: #374151;
  padding: 0.5rem 0.75rem;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: 0.375rem;
  transition: color 0.2s;
}

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

.mobile-menu-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  border-radius: 0.375rem;
  color: #374151;
  background: none;
  border: none;
  cursor: pointer;
}

.mobile-menu-btn svg {
  width: 1.5rem;
  height: 1.5rem;
}

.mobile-menu {
  display: none;
  padding: 0.5rem;
  background: white;
  border-top: 1px solid #e5e7eb;
}

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

.mobile-menu a {
  display: block;
  color: #374151;
  padding: 0.75rem;
  text-decoration: none;
  font-weight: 500;
  border-radius: 0.375rem;
}

.mobile-menu a:hover {
  color: var(--primary-600);
}

@media (min-width: 768px) {
  .nav-links {
    display: flex;
    gap: 1rem;
    align-items: baseline;
  }
  .mobile-menu-btn {
    display: none;
  }
}

/* Hero Section */
.hero-section {
  position: relative;
  min-height: 100vh;
}

.hero-carousel {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-overlay {
  position: relative;
  z-index: 10;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(4px);
}

.hero-content {
  max-width: 1280px;
  margin: 0 auto;
  padding: 6rem 1rem;
  text-align: center;
}

.hero-title {
  font-size: 2.25rem;
  font-weight: bold;
  margin-bottom: 1.5rem;
  color: white;
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.hero-subtitle {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  color: white;
  text-shadow: 0 1px 2px rgba(0,0,0,0.5);
  max-width: 48rem;
  margin-left: auto;
  margin-right: auto;
}

.hero-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 1.5rem;
}

@media (min-width: 640px) {
  .hero-buttons {
    flex-direction: row;
  }
  .hero-title {
    font-size: 3.75rem;
  }
  .hero-subtitle {
    font-size: 1.5rem;
  }
}

.btn {
  padding: 1rem 2rem;
  border-radius: 0.5rem;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  transition: all 0.2s;
  border: none;
  cursor: pointer;
}

.btn-primary {
  background: var(--primary-600);
  color: white;
  border: 2px solid white;
}

.btn-primary:hover {
  background: var(--primary-500);
  transform: scale(1.05);
}

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

.btn-secondary:hover {
  background: var(--primary-50);
  transform: scale(1.05);
}

/* Image Carousel */
.carousel-container {
  position: relative;
  width: 100%;
  height: 500px;
  overflow: hidden;
  border-radius: 0.5rem;
  box-shadow: 0 25px 50px rgba(0,0,0,0.25);
}

.carousel-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s;
  z-index: 0;
}

.carousel-slide.active {
  opacity: 1;
  z-index: 10;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.carousel-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.6), rgba(0,0,0,0.2), transparent);
}

.carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 20;
  background: rgba(255,255,255,0.2);
  backdrop-filter: blur(4px);
  color: white;
  padding: 0.75rem;
  border-radius: 9999px;
  border: none;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.2s;
}

.carousel-container:hover .carousel-nav {
  opacity: 1;
}

.carousel-nav.prev {
  left: 1rem;
}

.carousel-nav.next {
  right: 1rem;
}

.carousel-dots {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  display: flex;
  gap: 0.5rem;
}

.carousel-dot {
  height: 0.5rem;
  border-radius: 9999px;
  transition: all 0.3s;
  border: none;
  cursor: pointer;
  background: rgba(255,255,255,0.5);
  width: 0.5rem;
}

.carousel-dot.active {
  width: 2rem;
  background: white;
}

.carousel-counter {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 20;
  background: rgba(255,255,255,0.2);
  backdrop-filter: blur(4px);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
}

/* Sections */
.section {
  padding: 5rem 1rem;
}

.section-white {
  background: white;
}

.section-gray {
  background: #f9fafb;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
}

.section-title {
  font-size: 1.875rem;
  font-weight: bold;
  text-align: center;
  margin-bottom: 3rem;
  color: #111827;
}

.section-subtitle {
  font-size: 1.125rem;
  color: #4b5563;
  max-width: 42rem;
  margin: 0 auto 3rem;
  text-align: center;
}

/* Grid Layouts */
.grid {
  display: grid;
  gap: 2rem;
}

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

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

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

@media (min-width: 768px) {
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .grid-4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Feature Cards */
.feature-card {
  text-align: center;
  padding: 1.5rem;
}

.feature-icon {
  background: var(--primary-100);
  width: 4rem;
  height: 4rem;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}

.feature-icon svg {
  width: 2rem;
  height: 2rem;
  color: var(--primary-700);
}

.feature-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.feature-text {
  color: #4b5563;
}

/* Quick Links */
.quick-link-card {
  background: white;
  padding: 1.5rem;
  border-radius: 0.5rem;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  transition: box-shadow 0.2s;
  text-decoration: none;
  color: inherit;
  display: block;
  border-left: 4px solid var(--primary-600);
}

.quick-link-card:hover {
  box-shadow: 0 10px 15px rgba(0,0,0,0.1);
}

.quick-link-title {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #111827;
}

.quick-link-text {
  color: #4b5563;
  font-size: 0.875rem;
}

/* Arbitrators Page */
.arbitrators-header {
  text-align: center;
  margin-bottom: 3rem;
  padding: 3rem 1rem 0;
}

.arbitrators-title {
  font-size: 2.25rem;
  font-weight: bold;
  margin-bottom: 1rem;
  color: #111827;
}

.arbitrators-subtitle {
  font-size: 1.25rem;
  color: #4b5563;
  max-width: 48rem;
  margin: 0 auto;
}

.filters {
  background: white;
  border-radius: 0.5rem;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.filters-row {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

@media (min-width: 768px) {
  .filters-row {
    flex-direction: row;
  }
}

.filter-input {
  flex: 1;
  padding: 0.5rem 1rem;
  border: 1px solid #d1d5db;
  border-radius: 0.5rem;
  font-size: 1rem;
}

.filter-select {
  width: 100%;
  padding: 0.5rem 1rem;
  border: 1px solid #d1d5db;
  border-radius: 0.5rem;
  font-size: 1rem;
}

@media (min-width: 768px) {
  .filter-select {
    width: 16rem;
  }
}

.filter-count {
  margin-top: 1rem;
  font-size: 0.875rem;
  color: #4b5563;
}

/* Arbitrator Cards */
.region-group {
  background: white;
  border-radius: 0.5rem;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  overflow: hidden;
  margin-bottom: 2rem;
}

.region-header {
  background: var(--primary-700);
  color: white;
  padding: 1rem 1.5rem;
}

.region-title {
  font-size: 1.5rem;
  font-weight: bold;
}

.region-count {
  color: var(--primary-100);
  font-size: 0.875rem;
}

.region-content {
  padding: 1.5rem;
}

.arbitrator-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .arbitrator-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.arbitrator-card {
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  padding: 1.5rem;
  transition: box-shadow 0.2s;
}

.arbitrator-card:hover {
  box-shadow: 0 10px 15px rgba(0,0,0,0.1);
}

.arbitrator-header {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
}

.arbitrator-avatar {
  flex-shrink: 0;
  width: 6rem;
  height: 6rem;
  border-radius: 9999px;
  overflow: hidden;
  background: #e5e7eb;
  border: 2px solid var(--primary-200);
  display: flex;
  align-items: center;
  justify-content: center;
}

.arbitrator-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.arbitrator-avatar-placeholder {
  background: linear-gradient(to bottom right, var(--primary-400), var(--primary-600));
  color: white;
  font-weight: 600;
  font-size: 1.125rem;
}

.arbitrator-info {
  flex: 1;
  min-width: 0;
}

.arbitrator-name {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
  color: #111827;
}

.arbitrator-location {
  color: var(--primary-600);
  font-weight: 500;
  margin-bottom: 0.25rem;
}

.arbitrator-firm {
  color: #4b5563;
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.arbitrator-field {
  margin-bottom: 0.75rem;
}

.field-label {
  font-size: 0.875rem;
  color: #6b7280;
  margin-bottom: 0.25rem;
}

.field-value {
  font-size: 0.875rem;
  color: #111827;
}

.bio-toggle {
  color: var(--primary-600);
  font-size: 0.875rem;
  font-weight: 500;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0;
}

.bio-toggle:hover {
  color: var(--primary-700);
}

.bio-content {
  margin-top: 0.75rem;
  font-size: 0.875rem;
  color: #111827;
  white-space: pre-line;
  display: none;
}

.bio-content.show {
  display: block;
}

.bio-arrow {
  width: 1rem;
  height: 1rem;
  transition: transform 0.2s;
}

.bio-arrow.rotated {
  transform: rotate(180deg);
}

/* Footer */
footer {
  background: #111827;
  color: white;
  margin-top: 5rem;
  padding: 3rem 1rem;
}

.footer-content {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .footer-content {
    grid-template-columns: repeat(4, 1fr);
  }
}

.footer-section h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.footer-section h4 {
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.footer-section p {
  color: #9ca3af;
  font-size: 0.875rem;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 0.5rem;
}

.footer-section a {
  color: #9ca3af;
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.2s;
}

.footer-section a:hover {
  color: white;
}

.footer-bottom {
  border-top: 1px solid #1f2937;
  margin-top: 2rem;
  padding-top: 2rem;
  text-align: center;
  font-size: 0.875rem;
  color: #9ca3af;
}

/* Utility Classes */
.text-center {
  text-align: center;
}

.mt-6 {
  margin-top: 1.5rem;
}

.link {
  color: white;
  text-decoration: underline;
  font-size: 0.875rem;
}

.link:hover {
  color: var(--primary-100);
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #555;
}
