/*
	Abstracts are helpers, variables and functions
	for scss compliation.
*/
/*
	@TODO: Add to theme: new division fix for updated sass package.
*/
/**==================================================================================================================================
BREAKPOINT
@TODO: remove? What is use case?? either use simple global points or write custom line. why does first breakpoint have to be 0?
 ==================================================================================================================================*/
/**==================================================================================================================================
BREAKPOINT ENDS
==================================================================================================================================*/
span.edit-link {
  display: inline-block;
  background-color: yellow;
  font-weight: 700;
  position: fixed;
  left: 0;
  bottom: 3.125rem;
  transform: translateX(-45px);
  transition: all 0.2s;
}

span.edit-link a {
  display: block;
  padding: 0.9375rem;
}

span.edit-link:hover {
  transform: translateX(0);
}

/*
	Variables for compliation
	NB! Colors should be added to base/config file as css root variable.
*/
/**
 * Block section background colors.
 * Include the background options ACF fields group to use these.
 */
/*
 * makes ul/ol as a dropdown select (normaly in mobile)
 * Structure: div > title > list > li > a
*/
/*
	Variables for legacy dc plugins
*/
section.block-grid-offices {
  width: 100%;
}

section.block-grid-offices .offices-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

section.block-grid-offices .office-card {
  background: var(--color__white);
  border-radius: 24px;
  border: 1px solid rgba(192, 194, 195, 0.45);
  padding: 2.5rem;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 398px;
}

section.block-grid-offices .office-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

section.block-grid-offices .office-country {
  color: var(--color__blue);
}

section.block-grid-offices .office-location {
  color: var(--color__grey);
  margin: 0.75rem 0 2rem;
  text-align: center;
  text-wrap: balance;
  max-width: 80%;
}

section.block-grid-offices .office-services {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0.625rem;
}

section.block-grid-offices .office-services .services-header {
  color: var(--color__dark-grey);
}

section.block-grid-offices .office-services .services-list {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: center;
}

section.block-grid-offices .office-services .services-list li {
  color: var(--color__dark-grey);
  margin-bottom: 0.2rem;
}

section.block-grid-offices .office-services .services-list li:last-child {
  margin-bottom: 0;
}

@media screen and (max-width: 1210px) {
  section.block-grid-offices .offices-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media screen and (max-width: 850px) {
  section.block-grid-offices .offices-grid {
    grid-template-columns: 1fr;
  }
  section.block-grid-offices .office-card {
    padding: 3rem 1.5rem;
  }
}
