/* =========================
   Solo Studios locations landing page
   Shared: assets/css/locations-index.css
   ========================= */

.locations-index-page {
  --loc-teal-900: #0f4f56;
  --loc-teal-800: #13636b;
  --loc-teal-700: #1b7b84;
  --loc-teal-500: #38b7c2;
  --loc-text: #18343a;
  --loc-text-soft: #5b7277;
  --loc-border: rgba(15, 79, 86, 0.1);
  --loc-shadow-sm: 0 8px 18px rgba(15, 79, 86, 0.08), 0 3px 8px rgba(15, 79, 86, 0.04);
  --loc-shadow-md: 0 14px 36px rgba(15, 79, 86, 0.1), 0 4px 10px rgba(15, 79, 86, 0.05);
  --loc-shadow-lg: 0 18px 42px rgba(15, 79, 86, 0.13), 0 6px 14px rgba(15, 79, 86, 0.07);
  --loc-radius-lg: 24px;
  --loc-radius-md: 18px;
  --loc-max-width: 1200px;

  max-width: var(--loc-max-width);
  margin: 0 auto;
  padding: clamp(1.25rem, 3vw, 2.5rem) 1rem 4rem;
  color: var(--loc-text);
  line-height: 1.65;
}

.locations-index-page h1,
.locations-index-page h2,
.locations-index-page h3 {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

.locations-index-eyebrow {
  margin: 0 0 0.55rem;
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--loc-teal-700);
}

.locations-index-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1.05fr);
  gap: clamp(1.5rem, 4vw, 2.4rem);
  align-items: center;
  margin-top: clamp(1rem, 3vw, 2rem);
}

.locations-index-hero__content h1 {
  max-width: 620px;
  margin: 0;
  color: var(--loc-teal-900);
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  line-height: 1.04;
  letter-spacing: -0.045em;
}

.locations-index-hero__content h1::after {
  content: "";
  display: block;
  width: 88px;
  height: 4px;
  margin: 0.9rem 0 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--loc-teal-800), var(--loc-teal-500));
}

.locations-index-hero__content p {
  max-width: 42rem;
  margin: 1.15rem 0 0;
  color: var(--loc-text-soft);
  font-size: 1.04rem;
  line-height: 1.75;
}

.locations-index-hero__image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: #dceeee;
  border: 1px solid var(--loc-border);
  border-radius: var(--loc-radius-md);
  box-shadow: var(--loc-shadow-md);
}

.locations-index-hero__image::before,
.locations-index-group::before,
.locations-index-cta::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, var(--loc-teal-800), var(--loc-teal-500));
  z-index: 2;
  pointer-events: none;
}

.locations-index-hero__image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.locations-index-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.35rem;
}

.locations-index-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.82rem 1.25rem;
  border-radius: 999px;
  text-decoration: none !important;
  font-weight: 800;
  line-height: 1.15;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.locations-index-button--primary {
  background: var(--loc-teal-900);
  color: #ffffff !important;
  box-shadow: 0 8px 18px rgba(15, 79, 86, 0.22);
}

.locations-index-button--secondary {
  background: #ffffff;
  color: var(--loc-teal-900) !important;
  border: 1px solid rgba(15, 79, 86, 0.14);
  box-shadow: var(--loc-shadow-sm);
}

.locations-index-button:hover,
.locations-index-button:focus {
  transform: translateY(-2px);
}

.locations-index-button--primary:hover,
.locations-index-button--primary:focus {
  background: var(--loc-teal-800);
  color: #ffffff !important;
  box-shadow: 0 12px 24px rgba(15, 79, 86, 0.28);
}

.locations-index-button--secondary:hover,
.locations-index-button--secondary:focus {
  background: rgba(244, 251, 251, 0.96);
  border-color: rgba(15, 79, 86, 0.24);
  color: var(--loc-teal-900) !important;
}

.locations-index-intro {
  max-width: 780px;
  margin: clamp(3rem, 5vw, 4rem) auto 1.65rem;
  text-align: center;
}

.locations-index-intro h2,
.locations-index-cta h2,
.locations-index-group h2 {
  margin: 0;
  color: var(--loc-teal-900);
  line-height: 1.14;
  letter-spacing: -0.025em;
}

.locations-index-intro h2 {
  font-size: clamp(1.8rem, 4vw, 2.45rem);
}

.locations-index-intro p,
.locations-index-cta p {
  margin: 0.85rem auto 0;
  color: var(--loc-text-soft);
  font-size: 1.02rem;
  line-height: 1.7;
}

.locations-index-groups {
  display: grid;
  gap: 1.5rem;
  margin-top: 2rem;
}

.locations-index-group {
  position: relative;
  overflow: hidden;
  padding: clamp(1.25rem, 3vw, 1.75rem);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(244, 251, 251, 0.96));
  border: 1px solid var(--loc-border);
  border-radius: var(--loc-radius-lg);
  box-shadow: var(--loc-shadow-md);
}

.locations-index-group h2 {
  font-size: clamp(1.35rem, 3vw, 1.75rem);
}

.locations-index-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 1rem;
}

.locations-index-grid a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 48px;
  padding: 0.75rem 0.9rem;
  border: 1px solid rgba(15, 79, 86, 0.12);
  border-radius: 999px;
  background: #ffffff;
  color: var(--loc-teal-900);
  font-weight: 800;
  text-decoration: none;
  box-shadow: var(--loc-shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease, background-color 0.25s ease;
}

.locations-index-grid a::after {
  content: "›";
  margin-left: 0.75rem;
  color: var(--loc-teal-700);
  font-size: 1.15rem;
  line-height: 1;
}

.locations-index-grid a:hover,
.locations-index-grid a:focus {
  transform: translateY(-2px);
  border-color: rgba(15, 79, 86, 0.22);
  background: rgba(244, 251, 251, 0.96);
  box-shadow: var(--loc-shadow-md);
}

.locations-index-cta {
  position: relative;
  overflow: hidden;
  margin-top: clamp(2rem, 4vw, 3rem);
  padding: clamp(1.35rem, 3vw, 2.1rem);
  text-align: center;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(244, 251, 251, 0.96));
  border: 1px solid var(--loc-border);
  border-radius: var(--loc-radius-lg);
  box-shadow: var(--loc-shadow-md);
}

.locations-index-cta h2 {
  font-size: clamp(1.65rem, 3.5vw, 2.3rem);
}

.locations-index-cta .locations-index-button {
  margin-top: 1.25rem;
}

.locations-index-button:focus-visible,
.locations-index-grid a:focus-visible {
  outline: 3px solid rgba(56, 183, 194, 0.65);
  outline-offset: 4px;
}

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

  .locations-index-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .locations-index-page {
    padding: 1.25rem 0.75rem 2.75rem;
  }

  .locations-index-hero__content {
    text-align: center;
  }

  .locations-index-hero__content h1::after {
    margin-left: auto;
    margin-right: auto;
  }

  .locations-index-actions {
    width: 100%;
  }

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

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

@media (prefers-reduced-motion: reduce) {
  .locations-index-button,
  .locations-index-grid a {
    transition: none;
  }
}
