/*
Theme Name: Moira Labs
Theme URI: https://example.com/moira-labs
Author: Moira Labs
Description: AI-first editorial block theme for Moira Labs.
Version: 1.3.0
Requires at least: 6.6
Requires PHP: 8.1
Text Domain: moira-labs
License: GNU General Public License v2 or later
*/

/* Compact footer after removing its lead CTA. */
.site-footer {
  padding: clamp(2.5rem, 5vw, 4rem) max(1rem, 4vw);
}

.site-footer .wp-block-columns {
  margin-block: 0 clamp(1.5rem, 3vw, 2.5rem);
}

.site-footer .wp-block-column > p:first-child {
  margin-top: 0;
}

.site-footer .wp-block-column > p:last-child,
.site-footer .legal {
  margin-bottom: 0;
}

@media (max-width: 899px) {
  .site-footer {
    padding-block: 2.5rem;
  }

  .site-footer .wp-block-column {
    margin-block: 1rem;
  }
}

/* Align the closing Home CTA to the right without affecting mobile flow. */
.home-closing .home-button--large {
  display: inline-flex;
  width: fit-content;
  min-width: 14rem;
  max-width: 100%;
  flex: 0 0 auto;
  margin-left: auto;
}

@media (max-width: 480px) {
  .home-closing .home-button--large {
    min-width: 0;
  }
}

/* Give the pinned Capabilities heading more breathing room above. */
.home-services .home-section-head {
  margin-top: clamp(2.5rem, 5vw, 5rem);
}

@media (max-width: 720px) {
  .home-services .home-section-head {
    margin-top: 2rem;
  }
}

/* Compact bilingual selector appended to the primary navigation. */
.language-switcher {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  margin-left: .15rem;
}

.language-switcher a {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  font-size: 1.1rem;
  line-height: 1;
  text-decoration: none;
  opacity: .55;
}

.language-switcher a:first-child {
  width: 2.45rem;
  padding-right: .45rem;
  border-right: 1px solid currentColor;
  border-radius: 0;
}

.language-switcher a:hover,
.language-switcher a:focus-visible,
.language-switcher a[aria-current="page"] {
  opacity: 1;
  outline-offset: 3px;
}

@media (max-width: 899px) {
  .language-switcher {
    flex-direction: row !important;
    align-self: flex-start;
    margin: .5rem 0 0;
    padding: 0;
  }
}

/* Keep the pinned Capabilities composition lighter and off the lower edge. */
@media (min-width: 900px) {
  .home-services > .home-frame {
    justify-content: flex-start;
    padding-top: clamp(5.75rem, 10vh, 7.5rem);
    padding-bottom: clamp(3rem, 6vh, 5rem);
  }

  .home-services .home-section-head {
    margin-top: 0;
    margin-bottom: clamp(2rem, 4vh, 3.5rem);
  }

  .home-services__track {
    margin-bottom: 0;
  }

  .home-service-card {
    width: min(31vw, 28rem);
    min-height: clamp(18rem, 42vh, 23rem);
    padding: clamp(1.4rem, 2.3vw, 2.35rem);
  }

  .home-service-card h3 {
    font-size: clamp(1.8rem, 2.45vw, 3rem);
  }
}

@media (max-width: 899px) {
  .home-services__track {
    margin-bottom: 3rem;
  }

  .home-service-card {
    min-height: 20rem;
  }
}
