/* Google Antigravity - Professional Legal Design System */

/* ============================================================================
   IMPORTS & FONTS
   ============================================================================ */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600;700;800;900&family=Inter:wght@300;400;500;600;700&display=swap');

/* ============================================================================
   CSS VARIABLES - Professional Legal Palette
   ============================================================================ */
:root {
  /* Primary Colors - Professional Legal */
  --color-navy: #1a365d;
  --color-navy-dark: #0f2744;
  --color-navy-light: #2d4a73;
  --color-gold: #d4af37;
  --color-gold-dark: #b8941f;
  --color-gold-light: #e6c966;

  /* Neutrals - Clean & Professional */
  --color-white: #ffffff;
  --color-off-white: #f8f9fa;
  --color-gray-100: #f1f3f5;
  --color-gray-200: #e9ecef;
  --color-gray-300: #dee2e6;
  --color-gray-400: #ced4da;
  --color-gray-500: #adb5bd;
  --color-gray-600: #6c757d;
  --color-gray-700: #495057;
  --color-gray-800: #343a40;
  --color-gray-900: #212529;

  /* Semantic Colors */
  --color-success: #28a745;
  --color-warning: #ffc107;
  --color-error: #dc3545;
  --color-info: #17a2b8;

  /* Text Colors - Optimized for Contrast */
  --text-primary: #212529;
  --text-secondary: #6c757d;
  --text-on-dark: #ffffff;
  /* WCAG AAA on navy */
  --text-on-dark-muted: rgba(255, 255, 255, 0.85);
  --text-on-dark-subtle: rgba(255, 255, 255, 0.7);
  --text-on-light: #1a365d;
  --text-on-gold: #1a365d;
  /* Dark text on gold background */

  /* Typography */
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;
  --spacing-2xl: 4rem;
  --spacing-3xl: 6rem;

  /* Border */
  --border-width: 1px;
  --border-color: var(--color-gray-300);
  --border-radius: 4px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 20px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.15);

  /* Transitions */
  --transition: 300ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================================================
   RESET & BASE
   ============================================================================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  background: var(--color-white);
  color: var(--color-gray-900);
  line-height: 1.7;
  overflow-x: hidden;
}

/* ============================================================================
   TYPOGRAPHY
   ============================================================================ */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-serif);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: var(--spacing-md);
  color: var(--color-navy);
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
}

h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 600;
}

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

p {
  margin-bottom: var(--spacing-sm);
  color: var(--color-gray-700);
}

.text-gold {
  color: var(--color-gold);
}

.text-navy {
  color: var(--color-navy);
}

/* ============================================================================
   LAYOUT
   ============================================================================ */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

.container-wide {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

.section {
  padding: var(--spacing-3xl) 0;
}

.section-alt {
  background: var(--color-off-white);
}

.grid {
  display: grid;
  gap: var(--spacing-lg);
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.grid-4 {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

/* ============================================================================
   NAVIGATION
   ============================================================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--color-white);
  border-bottom: 1px solid var(--color-gray-200);
  padding: var(--spacing-sm) 0;
  transition: var(--transition);
}

.navbar-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--color-navy);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
  letter-spacing: -0.02em;
}

.logo-icon {
  font-size: 1.75rem;
  color: var(--color-gold);
}

.nav-links {
  display: flex;
  gap: var(--spacing-md);
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: var(--color-gray-700);
  font-weight: 500;
  font-size: 0.95rem;
  transition: var(--transition);
  position: relative;
}

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

.nav-links a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 0;
  background-color: var(--color-gold);
  transition: var(--transition);
}

.nav-links a:hover::after {
  width: 100%;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--border-radius);
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
  cursor: pointer;
  border: none;
  font-size: 1rem;
}

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

.btn-primary:hover {
  background: var(--color-gold-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background: transparent;
  color: var(--color-navy);
  border: 2px solid var(--color-navy);
}

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

/* ============================================================================
   HERO SECTION
   ============================================================================ */
.hero {
  padding-top: var(--spacing-3xl);
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--color-navy) 0%, var(--color-navy-dark) 100%);
  position: relative;
  overflow: hidden;
  color: var(--color-white);
}

.hero-content {
  max-width: 800px;
  position: relative;
  z-index: 2;
  text-align: center;
  margin: 0 auto;
}

.hero h1, .hero p, .hero .subtitle {
    color: var(--color-white);
}

.hero-subtitle {
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-gold-dark);
  font-weight: 700;
  font-size: 0.875rem;
  margin-bottom: var(--spacing-sm);
  display: block;
}

.hero-image {
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  object-fit: cover;
  clip-path: polygon(15% 0, 100% 0, 100% 100%, 0% 100%);
  opacity: 0.9;
}

/* ============================================================================
   CARDS & FEATURES
   ============================================================================ */
.card {
  background: var(--color-white);
  padding: var(--spacing-lg);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid var(--color-gray-200);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-gold);
}

.feature-icon {
  width: 3rem;
  height: 3rem;
  background: var(--color-navy);
  color: var(--color-gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: var(--spacing-md);
}

/* ============================================================================
   FORMS
   ============================================================================ */
.form-group {
  margin-bottom: var(--spacing-md);
}

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--color-gray-700);
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--color-gray-300);
  border-radius: var(--border-radius);
  font-family: inherit;
  font-size: 1rem;
  transition: var(--transition);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--color-navy);
  box-shadow: 0 0 0 3px rgba(26, 54, 93, 0.1);
}

/* ============================================================================
   UTILITIES
   ============================================================================ */
.text-center {
  text-align: center;
}

.mb-lg {
  margin-bottom: var(--spacing-lg);
}

.hidden {
  display: none !important;
}

/* ============================================================================
   RESPONSIVE DESIGN
   ============================================================================ */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .hero {
    min-height: 70vh;
  }

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

  .section {
    padding: var(--spacing-2xl) 0;
  }
}

/* ============================================================================
   PRACTICE AREA PAGE (HOMEPAGE & GLOBAL) STYLES
   ============================================================================ */
.country-filter-container {
  margin-top: 2rem;
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.filter-btn {
  background: transparent;
  border: 1px solid var(--color-gray-300);
  color: var(--color-gray-700);
  padding: 0.5rem 1.25rem;
  border-radius: 99px;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.2s;
  font-family: var(--font-sans);
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--color-gold);
  border-color: var(--color-gold);
  color: var(--color-navy);
  font-weight: 600;
  box-shadow: var(--shadow-sm);
}

.practice-card-new {
  background: white;
  border-radius: var(--border-radius);
  padding: 2rem;
  border: 1px solid var(--color-gray-200);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.practice-card-new:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-gold);
}

.card-header-flex {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--color-gray-100);
  padding-bottom: 1rem;
}

.icon-box {
  font-size: 2rem;
  line-height: 1;
  background: var(--color-off-white);
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.card-title {
  color: var(--color-navy);
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.2;
}

.card-subtitle {
  color: var(--color-gray-600);
  margin: 0;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.card-desc {
  color: var(--color-gray-700);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.product-list-container {
  background: var(--color-off-white);
  padding: 1.25rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  flex-grow: 1;
  border: 1px solid var(--color-gray-100);
}

.list-title {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.list-title::before {
  content: '⚡';
  font-size: 0.8rem;
}

.product-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.prod-item {
  font-size: 0.9rem;
  color: var(--color-gray-800);
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(0,0,0,0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.2s;
}

.prod-item:last-child {
  border-bottom: none;
}

.prod-item:hover {
  background: rgba(255,255,255,0.5);
  padding-left: 0.5rem;
  padding-right: 0.5rem;
  margin-left: -0.5rem;
  margin-right: -0.5rem;
  border-radius: 4px;
}

.price-badge {
  font-size: 0.75rem;
  background: var(--color-gray-200);
  color: var(--color-gray-800);
  padding: 0.15rem 0.5rem;
  border-radius: 99px;
  font-weight: 600;
}

.card-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: auto;
}

.btn-link {
  display: block;
  text-align: center;
  background: var(--color-navy);
  color: white;
  padding: 0.75rem;
  border-radius: var(--border-radius);
  font-weight: 600;
  text-decoration: none;
  font-size: 0.95rem;
  transition: all 0.2s;
}

.btn-link:hover {
  background: var(--color-navy-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
  color: white;
  text-decoration: none;
}

.btn-link-secondary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: var(--color-gray-600);
  font-size: 0.9rem;
  text-decoration: none;
  padding: 0.5rem;
  border-radius: var(--border-radius);
  transition: all 0.2s;
  border: 1px solid transparent;
}

.btn-link-secondary:hover {
  color: var(--color-navy);
  background: var(--color-gray-100);
  border-color: var(--color-gray-200);
}

/* ============================================================================
   PRACTICE AREAS PAGE SPECIFIC (NEW)
   ============================================================================ */
.country-selector-section {
  padding: 4rem 0;
  margin-top: 70px;
  text-align: center;
  background: linear-gradient(135deg, var(--color-navy) 0%, var(--color-navy-dark) 100%);
  color: var(--color-white);
  min-height: 60vh;
}

.country-selector-section h1 {
  color: var(--color-white);
  font-size: 3rem;
  margin-bottom: 1rem;
}

.country-selector-section p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.2rem;
}

.country-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

.country-card-page {
  background: var(--color-white);
  border: 1px solid var(--color-gray-200);
  border-radius: 12px;
  padding: 2rem 1rem;
  cursor: pointer;
  transition: all 0.3s;
  text-align: center;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 180px;
}

.country-card-page:hover {
  border-color: var(--color-gold);
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.country-code {
  font-size: 3rem;
  font-weight: 900;
  color: var(--color-white);
  background: linear-gradient(135deg, var(--color-navy) 0%, var(--color-navy-light) 100%);
  width: 120px;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  margin: 0 auto 1.5rem auto;
  box-shadow: 0 4px 12px rgba(26, 54, 93, 0.3);
  font-family: var(--font-sans);
  letter-spacing: 0.1em;
}

.country-name-page {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-navy);
  margin: 0;
  font-family: var(--font-serif);
}

.practice-area-page-card {
  background: white;
  border-radius: 12px;
  padding: 3rem;
  border: 1px solid var(--color-gray-200);
  margin-bottom: 3rem;
  box-shadow: var(--shadow-sm);
}

.area-page-header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--color-gray-200);
  margin-bottom: 2rem;
}

.area-page-icon {
  font-size: 3.5rem;
  background: var(--color-off-white);
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.area-page-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 3rem;
}

.page-content-section h4 {
  color: var(--color-navy);
  font-size: 1.1rem;
  border-bottom: 2px solid var(--color-gold);
  padding-bottom: 0.5rem;
  margin-bottom: 1.5rem;
  display: inline-block;
  font-weight: 700;
}

.divider-gold {
    height: 3px;
    width: 60px;
    background: var(--color-gold);
    margin: 1.5rem auto;
}

/* ============================================================================
   RESTORED HOMEPAGE STYLES (HERO & JURISDICTIONS)
   ============================================================================ */
.hero-accent {
  color: var(--color-gold);
  position: relative;
  display: inline-block;
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--color-navy);
  color: var(--color-navy);
  padding: 0.5rem 1.25rem;
  font-weight: 500;
  transition: all 0.3s;
}

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

.btn-large {
  padding: 1rem 2rem;
  font-size: 1.1rem;
}

/* Jurisdiction Cards */
.jurisdiction-card {
  background: white;
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  border: 1px solid var(--color-gray-200);
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
}

.jurisdiction-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-gold);
}

.jurisdiction-flag {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  display: block;
}

.jurisdiction-name {
  font-size: 1.5rem;
  color: var(--color-navy);
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.jurisdiction-subtitle {
  color: var(--color-gray-600);
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.jurisdiction-stats {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--color-gray-100);
  width: 100%;
  font-size: 0.9rem;
  color: var(--color-navy);
  font-weight: 500;
}
