/* Shared Figma mobile-first components (home + what-we-do) */

.fg-page {
  --fg-pink: #ce0058;
  --fg-dark: #414141;
  --fg-grey: #f4f4f4;
  --fg-text: #2f3038;
  --fg-radius-lg: 22px;
  --fg-radius-card: 18px;
}

.fg-show-mobile {
  display: block;
}

.fg-show-desktop {
  display: none;
}

/* Hero */
.fg-hero {
  position: relative;
}

.fg-hero__image {
  height: 211px;
  overflow: hidden;
}

.fg-hero__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.fg-hero__panel {
  position: relative;
  margin-top: -72px;
  background: #fff;
  border-radius: var(--fg-radius-lg) var(--fg-radius-lg) 0 0;
  padding: 28px 27px 32px;
  z-index: 1;
}

.fg-hero__panel h1,
.fg-hero__panel .fg-hero__tagline {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--fg-text);
  line-height: 1.35;
  margin: 0;
}

.fg-hero__panel .fg-hero__subtitle {
  font-size: 1rem;
  font-weight: 600;
  color: var(--fg-text);
  margin: 0 0 12px;
}

.fg-hero__panel .fg-hero__lead {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: #000;
  margin: 0;
}

/* Sections */
.fg-section {
  scroll-margin-top: 72px;
}

.fg-anchor {
  display: block;
  height: 0;
  scroll-margin-top: 72px;
}

.fg-section--light {
  background: var(--fg-grey);
  padding: 0 0 48px;
}

/* Home entry cards — stacked on mobile, grid on desktop */
.fg-home-entries {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 0 13px;
}

.fg-home-entries .fg-card {
  flex: none;
  width: 100%;
}

.fg-home-entries .fg-card__stack {
  background: #fff;
  border-radius: var(--fg-radius-card);
  overflow: hidden;
}

.fg-home-entries .fg-card__media {
  border-radius: 0;
}

.fg-home-entries .fg-card__body {
  margin-top: 0;
  border-radius: 0;
  background: #fff;
  color: #000;
}

.fg-home-entries .fg-card__body h3 {
  color: #000;
}

.fg-home-entries .fg-card__body p {
  color: #000;
}

.fg-section--dark,
.fg-site-bottom {
  background-color: #414141;
  color: #fff;
  padding: 48px 0 56px;
}

.fg-section__title {
  font-size: 1.75rem;
  font-weight: 600;
  margin: 0 0 24px;
  padding: 0 16px;
  color: inherit;
}

.fg-section__title--center {
  text-align: center;
  padding: 0;
}

/* Cards (Figma stack style) */
.fg-card {
  flex: 0 0 calc(100% - 26px);
  scroll-snap-align: center;
}

.fg-card__link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.fg-card__stack {
  position: relative;
}

.fg-card__media {
  height: 273px;
  border-radius: 28px 28px 0 0;
  overflow: hidden;
}

.fg-card__media--tall {
  height: 304px;
}

.fg-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.fg-card__body {
  position: relative;
  z-index: 1;
  background: #fff;
  border-radius: 24px;
  margin-top: -48px;
  padding: 28px 30px 24px;
  color: #000;
}

.fg-card__body h3 {
  font-size: 1.375rem;
  font-weight: 600;
  color: var(--fg-text);
  margin: 0 0 10px;
}

.fg-card__body p {
  font-size: 1rem;
  line-height: 1.55;
  margin: 0;
}

.fg-card__link:hover h3 {
  color: var(--fg-pink);
}

/* Biz intro — two carousel rows */
.fg-biz-rows {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.fg-biz-carousel .fg-carousel__track,
.fg-biz-carousel .wwa-carousel__track {
  gap: 16px;
  padding: 0 13px 8px;
}

.fg-biz-carousel .fg-card {
  flex: 0 0 calc(100% - 26px);
  scroll-snap-align: center;
}

.fg-biz-carousel .fg-carousel__dots,
.fg-biz-carousel .wwa-carousel__dots {
  gap: 10px;
  margin-top: 20px;
}

.fg-biz-rows-desktop {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

/* Service cards (what-we-do) */
.fg-service-card {
  flex: 0 0 calc(100% - 26px);
  scroll-snap-align: center;
}

.fg-service-card__media {
  height: 273px;
  border-radius: 28px 28px 0 0;
  overflow: hidden;
}

.fg-service-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.fg-service-card__body {
  background: #fff;
  border-radius: 24px;
  margin-top: -48px;
  padding: 28px 30px 32px;
  position: relative;
  z-index: 1;
}

.fg-service-card__body h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0 0 12px;
  color: var(--fg-text);
}

.fg-service-card__body p {
  font-size: 0.9375rem;
  line-height: 1.6;
  margin: 0;
  color: #000;
}

/* Carousel (reuse who-we-are dot pattern) */
.fg-carousel__track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 0 13px 8px;
}

.fg-carousel__track::-webkit-scrollbar {
  display: none;
}

.fg-carousel__dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
}

.fg-site-bottom .fg-carousel__dot,
.fg-site-bottom .wwa-carousel__dot {
  display: block;
  box-sizing: border-box;
  flex-shrink: 0;
  width: 10px;
  height: 10px;
  min-width: 10px;
  min-height: 10px;
  border: 0;
  border-radius: 50%;
  padding: 0;
  margin: 0;
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  cursor: pointer;
  transition: background-color 0.2s, box-shadow 0.2s;
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.65);
}

.fg-site-bottom .fg-carousel__dot.is-active,
.fg-site-bottom .wwa-carousel__dot.is-active {
  background-color: #ce0058;
  box-shadow: none;
}

/* Light background carousels (e.g. what-we-do services) */
.fg-section--light .fg-carousel__dot,
.fg-section--light .wwa-carousel__dot {
  display: block;
  box-sizing: border-box;
  flex-shrink: 0;
  width: 10px;
  height: 10px;
  min-width: 10px;
  min-height: 10px;
  border: 0;
  border-radius: 50%;
  padding: 0;
  margin: 0;
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  cursor: pointer;
  transition: background-color 0.2s, box-shadow 0.2s;
  box-shadow: inset 0 0 0 1.5px rgba(0, 0, 0, 0.25);
}

.fg-section--light .fg-carousel__dot.is-active,
.fg-section--light .wwa-carousel__dot.is-active {
  background-color: var(--fg-pink);
  box-shadow: none;
}

/* Subnav */
.fg-subnav.subnav--container {
  z-index: 100;
}

/* Capability block */
.fg-capability {
  padding: 40px 16px;
  background: var(--fg-dark);
}

.fg-capability h2 {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0 0 20px;
  color: #fff;
}

.fg-capability__image {
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 20px;
}

.fg-capability__image img {
  width: 100%;
  display: block;
}

.fg-capability p {
  font-size: 0.9375rem;
  line-height: 1.65;
  margin: 0;
  color: rgba(255, 255, 255, 0.95);
}

/* About CTA block */
.fg-about-cta {
  padding: 40px 16px 48px;
  background: var(--fg-dark);
  color: #fff;
}

.fg-about-cta__label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--fg-pink);
  margin-bottom: 8px;
}

.fg-about-cta__label span {
  border-bottom: 2px solid var(--fg-pink);
  padding-bottom: 4px;
}

.fg-about-cta h2 {
  font-size: 1.375rem;
  font-weight: 600;
  line-height: 1.4;
  margin: 0 0 24px;
}

.fg-about-cta__banner {
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 24px;
}

.fg-about-cta__banner img {
  width: 100%;
  display: block;
}

.fg-about-cta .btn {
  min-width: 162px;
}

/* Overview */
.fg-overview {
  padding: 40px 16px 48px;
  background: #fff;
}

.fg-overview h2 {
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0 0 8px;
  color: var(--fg-text);
}

.fg-overview .fg-overview__subtitle {
  font-size: 1.125rem;
  font-weight: 600;
  margin: 0 0 20px;
  color: var(--fg-text);
}

.fg-overview p {
  font-size: 0.9375rem;
  line-height: 1.65;
  margin: 0;
  color: #000;
}

/* Desktop */
@media (min-width: 992px) {
  .fg-show-mobile {
    display: none !important;
  }

  .fg-show-desktop {
    display: block !important;
  }

  .fg-hero--desktop {
    position: relative;
    min-height: 420px;
  }

  .fg-hero--desktop .fg-hero__image {
    position: absolute;
    inset: 0;
    height: auto;
  }

  .fg-hero--desktop .fg-hero__panel {
    position: relative;
    margin-top: 0;
    max-width: 480px;
    margin-left: max(15px, calc((100% - 1140px) / 2 + 15px));
    margin-top: 80px;
    border-radius: var(--fg-radius-lg);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
  }

  .fg-home-entries {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 15px 64px;
  }

  .fg-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
  }

  .fg-grid-4 .fg-card {
    flex: none;
  }

  .fg-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 15px 64px;
  }

  .fg-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 15px 64px;
  }

  .fg-grid-2 .fg-card,
  .fg-grid-3 .fg-service-card {
    flex: none;
  }

  .fg-section--dark .fg-section__inner {
    max-width: 1140px;
    margin: 0 auto;
    padding: 64px 15px;
  }

  .fg-capability--desktop {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
    padding: 64px 15px;
    max-width: 1140px;
    margin: 0 auto;
  }

  .fg-about-cta--desktop {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
    max-width: 1140px;
    margin: 0 auto;
    padding: 64px 15px;
  }

  .fg-overview--desktop {
    max-width: 800px;
    margin: 0 auto;
    padding: 64px 15px;
    text-align: center;
  }

  .fg-section {
    scroll-margin-top: 64px;
  }
}
