:root {
  --brand-blue: #1b50b3;
  --brand-sky: #52ade5;
  --ink: #1f2a44;
  --muted: #6b7280;
  --bg: #f6f8fb;
  --white: #ffffff;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-800: #1f2937;
}

/* Reset and base styles */

*:focus-visible {
  outline: 3px solid var(--brand-sky);
  outline-offset: 2px;
}

.locations-hero {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding: 120px 20px;
  background: radial-gradient(circle at top right, rgba(27, 80, 179, 0.9), rgba(16, 33, 75, 0.95));
  color: var(--white);
}

.locations-hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  gap: 60px;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  align-items: center;
}

.locations-hero-content h1 {
  font-size: clamp(42px, 5vw, 56px);
  font-weight: 800;
  line-height: 1.1;
  margin: 16px 0 24px;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.12);
  padding: 8px 14px;
  border-radius: 999px;
}

.section-tag::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand-sky);
}

.locations-hero-content p {
  font-size: 18px;
  line-height: 1.7;
  margin: 0 0 32px;
  opacity: 0.92;
}

.locations-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.locations-page .button {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 24px !important;
  border-radius: 999px !important;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  text-decoration: none !important;
  border: none !important;
}

.locations-page .button svg {
  width: 16px;
  height: 16px;
}

.locations-page .button.primary {
  background: var(--white) !important;
  color: var(--brand-blue) !important;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2) !important;
}

.locations-page .button.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.25);
}

.locations-page .button.ghost {
  background: transparent !important;
  color: var(--white) !important;
  border: 1px solid rgba(255, 255, 255, 0.5) !important;
}

.locations-page .button.ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.locations-hero-stats {
  display: grid;
  gap: 20px;
}

.locations-stat-card {
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 18px;
  padding: 24px;
  backdrop-filter: blur(8px);
  min-height: 140px;
}

.locations-stat-card h2 {
  font-size: clamp(32px, 4vw, 48px);
  margin: 0;
  font-weight: 800;
}

.locations-stat-card h2 span {
  font-size: 0.6em;
  font-weight: 600;
  opacity: 0.9;
}

.locations-stat-card p {
  margin: 12px 0 0;
  font-size: 16px;
  line-height: 1.6;
  opacity: 0.85;
}

.locations-overview {
  background: var(--white);
  padding: 100px 20px 80px;
}

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

.locations-section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 60px;
}

.locations-section-header h2 {
  font-size: clamp(36px, 4vw, 48px);
  font-weight: 800;
  margin-bottom: 16px;
  color: var(--ink);
}

.locations-section-header p {
  margin: 0;
  font-size: 18px;
  color: var(--muted);
  line-height: 1.6;
}

.locations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.location-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 24px;
  border-radius: 18px;
  border: 1px solid var(--gray-200);
  background: var(--white);
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border 0.2s ease;
  height: 100%;
}

.location-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
  border-color: transparent;
}

.location-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.location-card h4 {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  color: var(--ink);
}

.location-card-tag {
  font-size: 13px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(82, 173, 229, 0.15);
  color: var(--brand-blue);
  white-space: nowrap;
  flex-shrink: 0;
}

.location-card p {
  margin: 0;
  font-size: 16px;
  color: var(--muted);
  line-height: 1.6;
}

.location-card-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--brand-blue);
  margin-top: auto;
  transition: gap 0.2s ease;
}

.location-card:hover .location-card-link {
  gap: 12px;
}

.location-card-link svg {
  width: 16px;
  height: 16px;
  transition: transform 0.2s ease;
}

.location-card:hover .location-card-link svg {
  transform: translateX(2px);
}

.locations-cta {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding: 100px 20px;
  background: linear-gradient(135deg, rgba(27, 80, 179, 0.95), rgba(82, 173, 229, 0.9));
}

.locations-cta-card {
  margin: 0 auto;
  color: var(--white);
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 40px;
  align-items: center;
}

.locations-cta-text h2 {
  font-size: clamp(32px, 4vw, 44px);
  margin-bottom: 16px;
  font-weight: 800;
}

.locations-cta-text p {
  margin: 0;
  font-size: 18px;
  line-height: 1.6;
  opacity: 0.9;
}

.locations-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: flex-end;
}

@media (max-width: 1024px) {
  .locations-hero-inner {
    grid-template-columns: 1fr;
  }

  .locations-hero {
    padding: 100px 20px 80px;
  }

  .locations-cta-card {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .locations-cta-actions {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .locations-grid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  }

  .locations-cta-card {
    padding: 40px 28px;
  }
  
  .locations-overview {
    padding: 80px 20px 40px;
  }
  
  .locations-section-header {
    margin-bottom: 48px;
  }
}

@media (max-width: 600px) {
  .locations-hero {
    padding: 80px 16px 60px;
  }

  .locations-hero-content p {
    font-size: 16px;
  }

  .locations-page .button {
    width: 100%;
  }

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

  .locations-cta-card {
    padding: 32px 24px;
  }
  
  .locations-section-header h2 {
    font-size: 32px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
